Help - Search - Members - Calendar
Full Version: How To Make Sd 2nd Partition Auto-mount?
OESF Forums > Distros, Development, and Model Specific Forums > Model Specific Forums > C1000/3x00 General discussions
dougeeebear
Here's my scenario:

I fdisk'd my SD Card to make two partitions.
> Partition 1 - formatted as fat16 ( fdisk type 6 -- mkfs.msdos /dev/mmcda1 )
> Partition 2 - formatted as ext2 ( fdisk type 83 -- mkfs.ext2 /dev/mmcda2 )

I created /mnt/card2

In /etc/fstab I have these entries for the sd card:
(the first line is original, the second line I added)
CODE
/dev/mmcda1  /mnt/card  auto  noauto,owner 0 0
/dev/mmcda2  /mnt/card2  auto  noauto,owner 0 0

When the card is inserted, partition 1 auto-mounts fine, but partition 2 will not auto-mount.

But in console
CODE
# mount /dev/mmcda2 /mnt/card2
will mount partition 2.

So obviously there is something else I have to do to make partition 2 auto-mount.

Also when I remove the card, Partition 1 auto-unmounts, but I have to unmount partition 2 using the console.

If anyone can help with this, I would greatly appreciate it.

Thanks,
Doug
Antikx
hmm... what if you specify that it is an ext2 ppartition.
This link might help you: http://www.tuxfiles.org/linuxhelp/fstab.html
dougeeebear
Antikx,
Thanks for the link... it's very informative.

I've tried some of the different combinations listed there, but nothing yet.
Meanie
/etc/card/sd_mem_ctrl and /etc/card/sd.conf controls it
dougeeebear
Thanks, Meanie.
I'll take a look at them and see what I can come up with.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.