Author Topic: How To Make Sd 2nd Partition Auto-mount?  (Read 3771 times)

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
How To Make Sd 2nd Partition Auto-mount?
« 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
« Last Edit: December 30, 2006, 07:14:38 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
How To Make Sd 2nd Partition Auto-mount?
« Reply #1 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
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
How To Make Sd 2nd Partition Auto-mount?
« Reply #2 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.
« Last Edit: December 30, 2006, 03:20:56 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
How To Make Sd 2nd Partition Auto-mount?
« Reply #3 on: December 30, 2006, 08:29:06 pm »
/etc/card/sd_mem_ctrl and /etc/card/sd.conf controls it
« Last Edit: December 30, 2006, 08:31:22 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
How To Make Sd 2nd Partition Auto-mount?
« Reply #4 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.
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)