![]() |
automount ext3 microSD
Hi,
I've formated my MicroSD card with ext3 to get permission and symlink/hardlink support but the card isn't mounted automatically while booting. Do I have to anything to get it mounted? |
Re: automount ext3 microSD
Quote:
Code:
mount -t ext3 -o noatime,nodiratime /dev/mmcblk1p1 /media/mmc1 |
Re: automount ext3 microSD
Eh, you shouldn't need to manually mount it. I formatted a couple cards as ext3 as an experiment and everything worked flawlessly for automount.
|
Re: automount ext3 microSD
Quote:
I only put podcasts on that partition and do not want the extra overhead, wear, and slower performance of a journaled file system. |
Re: automount ext3 microSD
ext3 is just an extended ext2 (added journaling).
|
Re: automount ext3 microSD
Quote:
|
Re: automount ext3 microSD
Quote:
|
Re: automount ext3 microSD
Quote:
If someone has a microSD card with only a single ext2 partition that automounts on the n900, please let me know. This is a little less surprising because of what has been learned about the camera application. Everyone thought that it would only write to a VFAT partition. It turns out that it creates the DCIM directory owned by root and VFAT does not have owner attribute and extN does, so the camera application can not write to the DCIM directory on a regular partition unless it has permissions 777 or owned by user:users. http://talk.maemo.org/showthread.php?t=35122&page=14 |
Re: automount ext3 microSD
Quote:
I've taken a look into the fstab and there is also no entry for the card and because this file is generated every boot again it doesn't matter if I add the entry myself. |
Re: automount ext3 microSD
Did you change the partition type of the microSD to be type 83 (used for Linux partitions) or did you leave it as a FAT partition type and just change the format of the file system on that microSD partition?
|
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. |
Re: automount ext3 microSD
Try pali's new ke-recv.
|
All times are GMT. The time now is 05:44. |
vBulletin® Version 3.8.8