Author Topic: CF card fails to mount on OZ 3.5.1  (Read 2648 times)

Franky G

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://Arkana.de
CF card fails to mount on OZ 3.5.1
« on: October 15, 2004, 04:28:34 pm »
Hi there,

I have two cf cards which I both use on my 5500.

The first one is a 128 MB cf card formatted with fat32.
The other card is a 512 MB cf card formatted with ext2.

The 128 MB card works well for me. Automount on reboot etc.
The 512 MB used to work well for me under OZ 3.3.5.

But under OZ 3.5.1 I seem to not be able to mount the card neither automatically nor manually. I tried ext2 and ext3 -- no luck.

Interestingly formatting the card with fat32 the card mounts after reboot or by hand. Formatting with mkfs.minix this works, too (aside from giving me only 64 MB with minix which I assume is normal).

Is this known?

Frank

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
CF card fails to mount on OZ 3.5.1
« Reply #1 on: October 15, 2004, 05:22:14 pm »
install e2fsprogs-fsck

or turn off DO_FSCK line in /etc/pcmcia/ide.opts
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

Franky G

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://Arkana.de
CF card fails to mount on OZ 3.5.1
« Reply #2 on: October 16, 2004, 09:54:58 am »
Quote
install e2fsprogs-fsck

or turn off DO_FSCK line in /etc/pcmcia/ide.opts
Thanks Hrw,
installing e2fsprogs-fsck didn't help and DO_FSCK line in /etc/pcmcia/ide.opts was already disabled/commented out (#) by default on my 5500.
Funny thing is I cannot "mount /mnt/cf" (giving error "mount: Mounting /dev/hda1 on /mnt/cf failed: Invalid argument").
But I can "mount /dev/hda1 /mnt/cf".

Having NOT mounted the cf card
"# cat /etc/fstab" outputs:
Code: [Select]
/dev/mtdblock4  /       jffs2   defaults        1  1
proc            /proc   proc    defaults        0  0
/dev/hda1       /mnt/cf auto    defaults,sync,noatime,user,exec,suid,gid=100,umask=0002 0  0
/dev/mmcda1     /mnt/card       auto    defaults,sync,noauto,noatime,user,exec,suid     0  0
tmpfs           /var    tmpfs   defaults        0  0

# we use a non-volatile ramdisk, see /etc/init.d/ramdisk
#tmpfs          /mnt/ram        tmpfs   defaults        0  0

But having mounted the cf card
"# cat /etc/fstab" outputs:
Code: [Select]
/dev/mtdblock4  /       jffs2   defaults        1  1
proc            /proc   proc    defaults        0  0
/dev/hda1       /mnt/cf auto    defaults,sync,noatime,user,exec,suid,gid=100,umask=0002 0  0
/dev/mmcda1     /mnt/card       auto    defaults,sync,noauto,noatime,user,exec,suid     0  0
tmpfs           /var    tmpfs   defaults        0  0

# we use a non-volatile ramdisk, see /etc/init.d/ramdisk
#tmpfs          /mnt/ram        tmpfs   defaults        0  0
/dev/hda1  auto defaults 0 0
(note additional last line!)

"# logread" gives some additional info:
Code: [Select]
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.warn kernel: EXT2-fs: Unrecognized mount option user
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.err kernel: cramfs: wrong magic
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.warn kernel: VFS: Can't find a Minix or Minix V2 filesystem on device 03:01.
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.warn kernel: FAT: bogus logical sector size 0
Oct 16 13:50:27 collie user.warn kernel: VFS: Can't find a valid FAT filesystem on dev 03:01.
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.debug kernel: VFS: Disk change detected on device ide0(3,1)
Oct 16 13:50:27 collie user.info kernel:  hda1
Oct 16 13:50:27 collie user.debug kernel: jffs2: attempt to mount non-MTD device 03:01

So far so good. But how can I get the cf card to mount at boot time?  

Thanks,
Franky G

Franky G

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://Arkana.de
CF card fails to mount on OZ 3.5.1
« Reply #3 on: October 16, 2004, 02:49:46 pm »
Well, just to let you know and for others who also encountered this behaviour, I think I got it to work now.

Reading the messages that fly over the screen while booting (after buying myself a magnifier!), I stumbled across a message that read "invalid mount option: user" or the like.

So, I changed "/etc/fstab" to the following:
Code: [Select]
/dev/mtdblock4  /       jffs2   defaults        1  1
proc            /proc   proc    defaults        0  0
#/dev/hda1      /mnt/cf auto    defaults,sync,noatime,user,exec,suid,gid=100,umask=0002 0  0
/dev/mmcda1     /mnt/card       auto    defaults,sync,noauto,noatime,user,exec,suid     0  0
tmpfs           /var    tmpfs   defaults        0  0

# we use a non-volatile ramdisk, see /etc/init.d/ramdisk
#tmpfs          /mnt/ram        tmpfs   defaults        0  0

/dev/hda1       /mnt/cf         auto defaults 0 0
/dev/hda1  auto defaults 0 0

Original line 3 got commented out (/dev/hda1      /mnt/cf auto    defaults,sync,...). One of the options given at the end of this line caused the card to not get mounted. Dunno which one it was yet. After that I changed the last line of the old fstab (see above) to "/dev/hda1       /mnt/cf         auto defaults 0 0". Now, after rebooting or after re-inserting the cf card it automounts!

What I don't understand is why "/dev/hda1  auto defaults 0 0" is always appended to "/etc/fstab" after rebooting if it is not existing in the file. Again, it shows up in my fstab (last line above), but doesn't seem to cause any trouble.

Is this a bug? My problem only? Any one else experienced this?

Peace,
Frank

rstanchak

  • Newbie
  • *
  • Posts: 3
    • View Profile
CF card fails to mount on OZ 3.5.1
« Reply #4 on: November 14, 2004, 11:55:42 pm »
Thanks -- I was having the same problem and this fixed it for me.  However, sometimes when I insert my cf card it comes up as an "unsupported device" or "anonymouse memory device" instead of an ide drive.  ejecting and reinserting seemed to fix it, but its kind of annoying.