maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Mount mmc2 in ext3 using fstab (https://talk.maemo.org/showthread.php?t=18130)

salgua 2008-03-20 16:33

Mount mmc2 in ext3 using fstab
 
Hi,
hi I'm very confused about the automatic mount of mmc cards. I have formatted as ext3 the internal 2 gb card of my n810. Now I want to mount this card automatically at boot time, in a new mount point /Root, and I added this row on fstab file:
Code:

/dev/mmcblk0p1 /Root ext3 defaults,errors=remount-ro,noatime 0 0
When I boot up the sistem, if I give a mount command to see active mounted partition, I noticed that fstab row is ignored, and I have always this mount active:
Code:

/dev/mmcblk0p1 on /media/mmc2 type ext3
This isn't in fstab...
Maybe this is mounted automatically from the program ke-recv? There is a way to avoid that system mount automatically the /dev/mmcblk0p1 on /media/mmc2?

Thx in advance,
Salgua

cvmiller 2008-03-21 01:47

Re: Mount mmc2 in ext3 using fstab
 
The N800 does ignore fstab. I opened a bug a while ago on this, and was told that fstab was not flexible enough, so they have a script (osso-mmc-mount.sh) that runs when it detects the card is available.

I suppose you could hack the script to mount your card somewhere else. Or you could take a path of lesser resistance, and just simbolically link your /Root to /media/mmc2.

Hope this helps,

Craig...

salgua 2008-03-21 08:24

Re: Mount mmc2 in ext3 using fstab
 
Thx, I used a workaround using symlink.

Bye!

cdmackay 2008-03-24 04:25

Re: Mount mmc2 in ext3 using fstab
 
is ext3 recommended for flash cards? I'm using ext2 as I seem to remember that the ext3 journal isn't ideal for flash.

edit: and i use "noatime", too...

Bundyo 2008-03-24 05:22

Re: Mount mmc2 in ext3 using fstab
 
ext3 + noatime + writeback is closest to ext2, but at least has automatic fsck.

cdmackay 2008-03-25 11:14

Re: Mount mmc2 in ext3 using fstab
 
interesting. and I can easily convert to ext3 by just adding a journal to my ext2 fs. I might just do that, ta.

tz1 2008-03-26 13:54

Re: Mount mmc2 in ext3 using fstab
 
Flash cards are better these days, but I did ordinary ext3 (with noatime) and the sectors where the journal were at ended getting errors (burnout?) after a few months with my zaurus a few years ago. I'd do jffs2 if you really need journaled files.

locusf 2008-03-28 22:13

Re: Mount mmc2 in ext3 using fstab
 
Quote:

Originally Posted by cvmiller (Post 158055)
The N800 does ignore fstab. I opened a bug a while ago on this, and was told that fstab was not flexible enough, so they have a script (osso-mmc-mount.sh) that runs when it detects the card is available.

I suppose you could hack the script to mount your card somewhere else. Or you could take a path of lesser resistance, and just simbolically link your /Root to /media/mmc2.

Hope this helps,

Craig...

Btw,

osso-mmc-mount.sh resides in /usr/sbin and can be edited to support both noatime & writeback. Just look for the ext3 part in the file and then just add after the
Code:

-t ext3
to look like this:

Code:

-t ext3 -o noatime,data=writeback
Hope that this helps as well :)

linuxrebel 2008-03-28 22:50

Re: Mount mmc2 in ext3 using fstab
 
I dunno if fstab isn't flexible enough to do ext3 someone needs to tell RH real quick.

The real problem as I see it is that the ext3 modules aren't loadable by default. Not only do you need to have this in aliases and/or /etc/modprobe.d. but you also need depmod to create the depmod library so these can be loaded during startup.

This sounds like an interesting problem. I know how to get depmod etc in place. (did it for some other things) sounds like it's time to have fun, and work this one out.

cdmackay 2008-03-29 12:40

Re: Mount mmc2 in ext3 using fstab
 
the rpevious post explains why that isn't necessary: the script does it.

agreed that this is insane, and that they should be using fstab, but still, it works. I edited the script to add noatime for my ext2 partitions.


All times are GMT. The time now is 06:38.

vBulletin® Version 3.8.8