OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: dougeeebear on December 30, 2006, 01:41:14 pm

Title: How To Make Sd 2nd Partition Auto-mount?
Post by: dougeeebear on December 30, 2006, 01:41:14 pm
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: [Select]
/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: [Select]
# mount /dev/mmcda2 /mnt/card2will 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
Title: How To Make Sd 2nd Partition Auto-mount?
Post by: Antikx on December 30, 2006, 02:06:58 pm
hmm... what if you specify that it is an ext2 ppartition.
This link might help you: http://www.tuxfiles.org/linuxhelp/fstab.html (http://www.tuxfiles.org/linuxhelp/fstab.html)
Title: How To Make Sd 2nd Partition Auto-mount?
Post by: dougeeebear on December 30, 2006, 02:51:16 pm
Antikx,
Thanks for the link... it's very informative.

I've tried some of the different combinations listed there, but nothing yet.
Title: How To Make Sd 2nd Partition Auto-mount?
Post by: Meanie on December 30, 2006, 08:29:06 pm
/etc/card/sd_mem_ctrl and /etc/card/sd.conf controls it
Title: How To Make Sd 2nd Partition Auto-mount?
Post by: dougeeebear on December 31, 2006, 08:09:22 am
Thanks, Meanie.
I'll take a look at them and see what I can come up with.