Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31199 - PCMCIA IDE script tries to mount wrong device
Summary: PCMCIA IDE script tries to mount wrong device
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 68964
  Show dependency tree
 
Reported: 2003-10-15 07:30 UTC by Antti-Veikko Rosti
Modified: 2005-05-21 14:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antti-Veikko Rosti 2003-10-15 07:30:23 UTC
I've just installed Gentoo from stage1 into my old laptop. In the past I've run
RedHat and Slackware but always compiled pcmcia-cs manually. I have the
following ide.opts settings

case "$ADDRESS" in
*,*,*)
    #INFO="Sample IDE setup"
    DO_FSTAB="y" ; DO_FSCK="n" ; DO_MOUNT="y"
    FSTYPE="vfat"
    OPTS="gid=100,umask=002"
    MOUNTPT="/mnt/ide"
    ;;
esac

As I insert the CF card into the PCMCIA slot the mount fails. The log entries are

Oct 15 15:24:34 i5000 cardmgr[769]: socket 0: ATA/IDE Fixed Disk
Oct 15 15:24:34 i5000 cardmgr[769]: executing: 'modprobe ide-cs'
Oct 15 15:24:36 i5000 hde: SanDisk SDCFB-64, ATA DISK drive
Oct 15 15:24:36 i5000 ide2 at 0x140-0x147,0x14e on irq 10
Oct 15 15:24:36 i5000 hde: 125440 sectors (64 MB) w/1KiB Cache, CHS=490/8/32
Oct 15 15:24:36 i5000 /dev/ide/host2/bus0/target0/lun0: p1
Oct 15 15:24:36 i5000 ide-cs: hde: Vcc = 3.3, Vpp = 0.0
Oct 15 15:24:36 i5000 cardmgr[769]: executing: './ide start hde'
Oct 15 15:24:36 i5000 /dev/ide/host2/bus0/target0/lun0: p1
Oct 15 15:24:36 i5000 /dev/ide/host2/bus0/target0/lun0: p1
Oct 15 15:24:36 i5000 FAT: bogus logical sector size 20487
Oct 15 15:24:36 i5000 VFS: Can't find a valid FAT filesystem on dev 21:00.
Oct 15 15:24:36 i5000 /dev/ide/host2/bus0/target0/lun0: p1
Oct 15 15:24:36 i5000 cardmgr[769]: + mount -v -o gid=100,umask=002 -t vfat
/dev/hde /mnt/ide
Oct 15 15:24:36 i5000 cardmgr[769]: + mount: wrong fs type, bad option, bad
superblock on /dev/hde,
Oct 15 15:24:36 i5000 cardmgr[769]: +        or too many mounted file systems

Apparently Gentoo's IDE script /etc/pcmcia/ide tries to mount the device hde
whereas it should be /dev/hde1 in this case. Running 'mount -t vfat /dev/hde1
/mnt/ide' manually works fine.

Reproducible: Always
Steps to Reproduce:
1. insert the CF card into the PCMCIA slot using the ide.opts given above
2.
3.

Actual Results:  
Mounting /dev/hde fails.

Expected Results:  
Mount /dev/hde1.
Comment 1 Henrik Brix Andersen 2005-04-25 05:16:29 UTC
Reporter, please check if sys-apps/pcmcia-3.2.8 fixes this issue.
Comment 2 Henrik Brix Andersen 2005-05-21 14:19:41 UTC
Closing due to lack of feedback.