Help - Search - Members - Calendar
Full Version: auto mount sd card
OESF Forums > General Forums > General Support and Discussion > General Discussion
sujainath
I tried my best to find a solution to this problem by searching through the forums but so far nothing has worked. I am trying to get two partitions mounted upon boot.

Here is the partition table for my sd card (SimpleTech ProX):

Disk /dev/mmcda: 255 MB, 255852544 bytes
16 heads, 32 sectors/track, 976 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/mmcda1 1 248 63472 82 Linux swap
/dev/mmcda2 249 976 186368 83 Linux

I can manually get things working by typing:
mount /dev/mmcda2 /mnt/card
swapon /dev/mmcda1

My /etc/fstab is currently:
root@collie:~# cat /etc/fstab
/dev/mtdblock4 / jffs2 defaults 1 1
proc /proc proc defaults 0 0
/dev/hda1 /mnt/cf auto defaults,sync,noauto,noatime,user,exec,suid,gid=100,umask=0002 0 0
/dev/mmcda2 /mnt/card auto defaults,noauto,owner 0 0
/dev/mmcda1 swap swap defaults 0 0
tmpfs /var tmpfs defaults 0 0

And what is mounted:
root@collie:~# mount
/dev/mtdblock4 on / type jffs2 (rw)
ramfs on /dev type ramfs (rw)
proc on /proc type proc (rw)
tmpfs on /var type tmpfs (rw)
devpts on /dev/pts type devpts (rw)

And finally part of dmesg:
Partition check:
mmcda: mmcda1 mmcda2
SD Driver Initialized.
sharp_mmcsd 0.21 27 Sep 2002
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
EXT2-fs: Unrecognized mount option quiet
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
cramfs: wrong magic
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Can't find a Minix or Minix V2 filesystem on device 3c:01.
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
MSDOS FS: IO charset utf8
FAT: bogus logical sector size 65535
VFS: Can't find a valid FAT filesystem on dev 3c:01.
FAT: freeing iocharset=utf8
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
jffs2: attempt to mount non-MTD device 3c:01
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Can't find ext2 filesystem on dev mmcd(60,1).
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
cramfs: wrong magic
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Can't find a Minix or Minix V2 filesystem on device 3c:01.
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
FAT: bogus logical sector size 65535
VFS: Can't find a valid FAT filesystem on dev 3c:01.
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
jffs2: attempt to mount non-MTD device 3c:01
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Can't find ext2 filesystem on dev mmcd(60,1).
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
cramfs: wrong magic
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Can't find a Minix or Minix V2 filesystem on device 3c:01.
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
FAT: bogus logical sector size 65535
VFS: Can't find a valid FAT filesystem on dev 3c:01.
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
VFS: Disk change detected on device mmcd(60,1)
mmcda: mmcda1 mmcda2
jffs2: attempt to mount non-MTD device 3c:01

Thanks for any help. This is enough to make me abandon the Zaurus.
iamasmith
I would check out the FAQs, I saw something on there a while ago.. people forget there's more to the site than the forums some times wink.gif
stupkid
Look at the script /etc/sdcontrol it currently only handles one partition. You could edit it to behave however you like.

Hope this helps.
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.