LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   usb flash key mounts in knoppix live cd but not in mandriva 2010 (https://www.linuxquestions.org/questions/linux-hardware-18/usb-flash-key-mounts-in-knoppix-live-cd-but-not-in-mandriva-2010-a-822032/)

moshebagelfresser 07-25-2010 06:50 AM

usb flash key mounts in knoppix live cd but not in mandriva 2010
 
I am wondering if anyone has been through this problem. I cannot mount a USB Flash Key in Mandriva 2010.


I've tried with entering text into fstab and mtab. However it only mounts with a Live CD. It mounted successfully with Konoppix v5.1 Live CD without problems giving access and allowing writing.

The following is what the fstab of Knoppix shows:

/proc /proc proc rw,nosuid,nodev,nexec 0 0
/sys /sys sysfs rw,nosuid,nodev,nexec 0 0
/dev/shm /dev/shm tmpfs rwrw,nosuid,nodev,nexec 0 0
/dev/pts /dev/pts devpts mode=0622 0 0
/dev/fdo /media/fd0 auto user,noauto,exec,ro 0 0
/dev/cdrom /media/cdrom auto user, noauto,exec,ro 0 0
/dev/hdb /media/hdb auto users,noauto,exec,ro 0 0
/dev/hda /media/hda auto users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hdc1 /media/hdc1 ntfs noauto,users,exec,unmask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/hdc6 none swap defaults 0 0
/dev/hdd1 /media/hdd1 ntfs noauto,users,exec,unmask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/hdd5 /media/hdd5 ntfs ntfs noauto,users,exec,unmask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/sda1 /media/sda1 vfat noauto,users,exec,unmask=000,shortname=winnit,uid-knoppix,gid=knoppix 00

The following is the fstab in Mandriva 2010

# Entry for /dev/sda5 :
UUID=b8fe5d8d-3201-4bf0-9b2f-69406c135b4b / ext3 relatime 1 1
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/fd0 /media/floppy auto umask=0,users,iocharset=utf8,noauto,exec,flush 0 0
# Entry for /dev/sda1 :
UUID=62A0562CA05606C7 /media/hd ntfs-3g defaults,umask=000 0 0
# Entry for /dev/sdb1 :
UUID=148A2CE9E8C84B39 /media/hd2 ntfs-3g defaults,umask=000 0 0
# Entry for /dev/sdb5 :
UUID=7C48EF3748EEEF38 /media/hd3 ntfs-3g defaults,umask=000 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=3a8b6e9f-bc93-44b1-84fc-bc265290674c swap swap defaults 0 0


The following is in the mtab in Mandriva 2010

/dev/sda5 / ext3 rw,relatime 0 0
none /proc proc rw 0 0
/dev/sda1 /media/hd fuseblk rw,allow_other,blksize=4096 0 0
/dev/sdb1 /media/hd2 fuseblk rw,allow_other,blksize=4096 0 0
/dev/sdb5 /media/hd3 fuseblk rw,allow_other,blksize=4096 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
gvfs-fuse-daemon /home/moshe/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=moshe 0 0


Any ideas?

Moshe

Drakeo 07-25-2010 11:23 AM

please do not alter the /etc/fstab yet. boot the machine then open a terminal and type dmesg | grep usb
see where the kernel loaded it. then tell me what desk top. and what kde version if kde or kde4 version.
next you can also open a terminal assume root type fdisk -l check it out.
if kde4 Kmenu>system>system info
did you give the user plugdev permission

moshebagelfresser 07-25-2010 01:04 PM

Drakeo Many thanks for your reply.

I wanted to see why with a live CD either Mandriva 2009/2010 and Knoppix v5.1 how the fstab is shown. Mandriva 2010 which is installed on my computer isn't recognising and mounting the flash key. If with a Knoppix or Mandriva Live CD the key is recognised and mounted the key must be OK. (It mounts in WinXP.) I have formatted it twice as fat with WinXP.

In Mandriva I have already ticked plugdev permissions as group member, I also am member of a group called flash and usb_storage also.

The following in Mandriva 2010 Root:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3c207243

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6726 54026563+ 7 HPFS/NTFS
/dev/sda2 6727 9729 24121597+ f W95 Ext'd (LBA)
/dev/sda5 6727 9467 22017051 83 Linux
/dev/sda6 9468 9729 2104484+ 82 Linux swap / Solaris

Disk /dev/sdb: 122.9 GB 122941242880 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x149b5ae

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13342 107169583+ 7 HPFS/NTFS
/dev/sdb2 13343 14946 12884130+ f W95 Ext'd (LBA)
/dev/sdb5 13343 14946 12884098+ 7 HPFS/NTFS
[root@localhost ~]#

Drakeo 07-25-2010 01:50 PM

open a terminal and type dmesg | grep usb or just type dmesg and see where sdc or sdd etc is being loaded boot up mandivia then plug in the usb then type dmesg
this will show it being loaded and given a sdx place. this will also show if it failed always umount device before unplug.

moshebagelfresser 07-25-2010 03:16 PM

dmesg in Mandriva 2010 25-07-2010 at 23.19 pm.

usb 2-4: USB disconnect, address 5
usb 2-4: new high speed USB device using ehci_hcd and address 6
usb 2-4 New USB device found, id Vendor=1307, idProduct=0165
usb 2-4: Product: USB Mass Storage Device
usb 2-4: Manufacturer USBest
usb 2-4: SerialNumber:08052832b611bc
usb 2-4: configuration #1 chosen from 1 choice
usb_storage: 'ms' invalid for parameter 'swi_tru_install'
usb_storage: 'ms' invalid for parameter 'swi_tru_install'
usb_storage: 'ms' invalid for parameter 'swi_tru_install'
usb 2-4: USB disconnect, address 6
martian source 10.0.0.1 from 10.0.0.1, on dev eth0
llheader: 00:50:da4f:36:14:00:1b:9e:a7:4c:cb:8:00
zc3xx: probe 2wr ov vga 0x0000
zc3xx: probe 2wr ov vga 0x0000
usb 2-4: new high speed USB device using ehci_hcd and address 7
usb 2-4: New USB device found, id Vendor=1043, idProduct=8012
usb 2-4: Product: Flash Disk
usb 2-4: Manufacturer Generic
usb 2-4: configuration #1 chosen from 1 choice
usb_storage: 'ms' invalid for parameter 'swi_tru_install'
usb_storage: 'ms' invalid for parameter 'swi_tru_install'
[root@localhost ~]#

Brains 07-25-2010 05:44 PM

Not sure if this will help.
I think the last Mandriva I had was 2009.1, and if memory serves me correctly I allowed users to mount external drives through MCC as it was not allowed by default, which in turn modified the /etc/fstab file. Somewhere via "hardware", I think.

Drakeo 07-26-2010 10:29 AM

I could go through a ton of stuff to help you but being part of the mandriva team just to let you know that was a bug that was worked on. One question to you did you update your system after you installed it. Because the bug is a hal.conf problem that was addressed with 2009 and 2010. Update your system.
the other way to short term fix is to.
Quote:

I restart the HAL-deamon (/etc/init.d/haldaemon restart)
HAL deamon seems to run before alright (stop OK, start OK), but after restart
everything works alright.

So there seems to be something wrong with HAL-Start during boot.
Please let me know if this helps other wise we will do it the raw hard way and just make it mount.

moshebagelfresser 07-26-2010 10:46 PM

I actually got it to work! Many thanks to you I did a combination of things and it appears to have worked! Yes I did update it did that automatically.

I did # modprobe.d preload -r ehci_hcd
=======
(Torre 64 writes that this should be kept well away from the kernel as it clashes.

I had the same symtoms, and eventually solved the problem by removing the ehci_hcd module: "rmmod ehci_hcd". Afterwards the USB stick and USB drive worked fine.

It seems ehci_hcd is automatically activated although the related hardware is not present. The best thing would be if the module did not install itself with the wrong hardware, however as secondary solutions it would have been nice to disable ehci_hcd either by giving kernel boot parameters or a setting in modprobe.conf. Anyone know how to do this?

As a brute force solution I have moved ehci_hcd.ko away from /lib/modules/2.6.7-1.494.2.2/kernel/drivers/usb/host/ so that it is hidden from the kernel, however I would prefer a more elegant solution...
--
Tore
http://www.linuxquestions.org/questi...device-206358/ )
======
mkdir /dev/flash
mkdir /dev/sda0
mkdir /dev/sda1
mkdir /dev/sdb1
mkdir /mnt/flash

chmod o+rw /dev/sda0
chmod o+rw /dev/sda1
chmod o+rw /dev/sdb1

I have found that if in WinXP make sure that before shut down to left click safely remove devices to unmount first.

Many thanks and I do appreciate your help very much indeed. Sorry that there's been a bug in Mandriva.


All times are GMT -5. The time now is 08:05 AM.