PDA

View Full Version : automount with pendrive linux: everything mounts to /cdrom



Quixand
04-27-2007, 10:03 PM
So I'm booting the knoppix dvd 5.1.1 from an 8gig corsair flash drive with partitions as follows:
1: primary, bootable user data partition with the knoppix /boot/isolinux files in the root
2: primary, the rest of the knoppix dvd files + persistent home image

It boots fine (and also has the added value of the data partition being accessible on windows) but there are mounting issues.
I seem to have several instances of the /cdrom being mounted to the hard drives AND the flash drive, and all the desktop icons except for the first primary flash drive partition go to /cdrom. The primary flash drive partition opens fine.

I tried remounting, tried umounting the /cdrom from the devices, tried playing around with the desktop icons, and the control center options as well, but I can't seem to figure this out. I can mount all the drives except for the usb second partition from the root console, and then open them from /media with any browser (also as rw if I mount them as rw), but non of it sticks with the persistent home, and non of the desktop icons have anything to do with it. All the desktop icons lead to /cdrom with the exception of /sdb1 that actually opens /sdb1 (first primary partition on the usb flash drive).
I also tried the autofs restart command, which didn't help.

Any ideas?

/etc/fstab:
/proc /proc proc rw,nosuid,nodev,noexec 0 0
/sys /sys sysfs rw,nosuid,nodev,noexec 0 0
/dev/shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
/dev/pts /dev/pts devpts mode=0622 0 0
/dev/fd0 /dev/fd0 auto user,noauto,exec,umask=000 0 0
/dev/cdrom /media/cdrom auto user,noauto,exec,ro 0 0
/dev/hdc /media/hdc auto users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/sda2 /media/sda2 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
# Added by KNOPPIX
/dev/sda5 /media/sda5 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
# Added by KNOPPIX
/dev/sdb1 /media/sdb1 vfat noauto,users,exec,umask=000,shortname=winnt,uid=kn oppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/sdb2 /media/sdb2 vfat noauto,users,exec,umask=000,shortname=winnt,uid=kn oppix,gid=knoppix 0 0


/etc/mtab
/dev/root / ext2 rw 0 0
/dev/sda2 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
/dev/sda2 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
/ramdisk /ramdisk tmpfs rw,size=1029256k,mode=755 0 0
/UNIONFS /UNIONFS aufs rw,br:/ramdisk:/KNOPPIX:/KNOPPIX2 0 0
/dev/sdb2 /cdrom vfat ro,nodev,fmask=0022,dmask=0022,codepage=cp437,ioch arset=iso8859-1 0 0
/dev/cloop /KNOPPIX iso9660 ro 0 0
/dev/cloop2 /KNOPPIX2 iso9660 ro 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,devmode=0666 0 0
/dev/pts /dev/pts devpts rw 0 0
/dev/sdb1 /media/sdb1 vfat ro,nosuid,nodev,umask=000,shortname=winnt,uid=1000 ,gid=1000 0 0
automount (pid5049) /mnt/auto autofs rw,fd=4,pgrp=5049,minproto=2,maxproto=4 0 0

mount -l:
/dev/root on / type ext2 (rw)
/dev/sda2 on /cdrom type fuseblk (ro,nosuid,nodev,noatime,allow_other,blksize=4096)
/dev/sda5 on /cdrom type fuseblk (ro,nosuid,nodev,noatime,allow_other,blksize=4096)
/ramdisk on /ramdisk type tmpfs (rw,size=1029256k,mode=755)
/UNIONFS on /UNIONFS type aufs (rw,br:/ramdisk:/KNOPPIX:/KNOPPIX2)
/dev/sdb2 on /cdrom type vfat (ro,nodev,fmask=0022,dmask=0022,codepage=cp437,ioc harset=iso8859-1) [XAND]
/dev/cloop on /KNOPPIX type iso9660 (ro)
/dev/cloop2 on /KNOPPIX2 type iso9660 (ro) [KNOPPIX_FS]
/proc/bus/usb on /proc/bus/usb type usbfs (rw,devmode=0666)
/dev/pts on /dev/pts type devpts (rw)
/dev/sdb1 on /media/sdb1 type vfat (ro,nosuid,nodev,umask=000,shortname=winnt,uid=100 0,gid=1000) [USER]
automount (pid5049) on /mnt/auto type autofs (rw,fd=4,pgrp=5049,minproto=2,maxproto=4)


Hardware:
Dell Inspiron 6000 laptop with intel mobo
1: 100gig laptop hdd with two ntfs windows partitions (first primary, second extended and logical) /sda2 and /sda5
2: NEC dvdrw+-
3: usb flash drive corsair VoyagerGT 8 GB : two fat32 partitions (both primary, first bootable) /sdb1 and /sdb2