Thread
:
automount ext3 microSD
View Single Post
stair
2010-02-04 , 16:29
Posts: 1 | Thanked: 6 times | Joined on Feb 2010
#
16
I've managed to make the automount work for ext2 or ext3 on my N900 (PR1.1)
As usual any changes are at your own risk.....
The script
/usr/sbin/osso-mmc-mount.sh
is the one which seems to be responsible for doing the mounting for all partitions on MMC devices. It does some checks and then calls
/usr/sbin/mmc-mount
for each partition.
Looking at
/usr/sbin/osso-mmc-mount.sh
I found this section of code:
case "$PID" in
b | c | e | 4 | 6 | 14 | 16 | 1b | 1c | 1e)
logger "$0: $PDEV partition type is '$PID'"
;;
*)
logger "$0: $PDEV type '$PID' is not FAT32 or FAT16"
exit 1
;;
esac
What this is doing is looking at the Partition ID number (in hex) and checking it against a list of allowed values. If it is not an allowed value it falls through to the second case block and
exit
is called - meaning that the partition is not mounted.
The hex Partition ID for ext2 and ext3 is 83 - as you can see it is not on the list, and so this script will never attempt to mount ext2 or ext3 partitions. To fix this we simply need to add 83 to the list of allowed partition IDs in the case.
As normal - be very careful making changes as root. Having said that, here's how to change it:
1) Become root
2)
Back up
the file /usr/sbin/osso-mmc-mount.sh
3) Use vi or your favourite editor to edit /usr/sbin/osso-mmc-mount.sh
4) Make this change (it is line 46 for me on PR1.1)
Old:
b | c | e | 4 | 6 | 14 | 16 | 1b | 1c | 1e)
New:
b | c | e | 4 | 6 | 14 | 16 | 1b | 1c | 1e | 83)
5) Save the file
6) Reboot
You should now find that ext2 or ext3 partitions automount correctly.
Quote & Reply
|
The Following 6 Users Say Thank You to stair For This Useful Post:
angrycore
,
floffe
,
Patola
,
soeiro
,
sup
,
will177
stair
View Public Profile
Find all posts by stair