![]() |
Re: automount ext3 microSD
Quote:
Relevant section: Code:
sfdisk --change-id /dev/mmcblk1 1 83 |
Re: automount ext3 microSD
Quote:
|
Re: automount ext3 microSD
ROFL! What are you guys doing wrong? I'm using ext3 on at least one of my cards, and it auto mounts without even batting an eye! :D
|
Re: automount ext3 microSD
Well my ext3 didn't automount either :-)
This is how I make it. Usual disclaimers, if this doesn't make sense to you, you probably shouldn't be trying it ... add these 4 lines to the bottom of /usr/sbin/mmc-mount if [ $? -ne 0 ] then mount -o $3,noatime,nodiratime "$1" "$2" > /dev/null fi |
Re: automount ext3 microSD
Quote:
So far. 1. I can use "mount" to mount my sd card. 2. /etc/fstab doesn't wipe on boot. I need to automount it on boot, lets say to /test. What am I missing?? |
Re: automount ext3 microSD
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. |
Re: automount ext3 microSD
Thanks for your recipe, stair. But I found that it didn't work quite correctly on mine. I did the following extra step:
I modified /usr/sbin/mmc-mount which is in fact a shell script. It contains: Code:
#!/bin/sh Code:
#!/bin/sh |
Re: automount ext3 microSD
I've made a wiki page containing the information found in that thread, you can check it here: http://wiki.maemo.org/Ext2_on_microSD_card
|
Re: automount ext3 microSD
just wrote this script while travelling by the subway:
Code:
#!/bin/sh I hope it will become alternative for those who don't want to mess with system files :) |
Re: automount ext3 microSD
Quote:
I'm asking just because i culdn't backing up rootfs and optfs to SD (ext3) since it wasn't automounted. Hope someone understand what i mean... Thanks. |
All times are GMT. The time now is 05:44. |
vBulletin® Version 3.8.8