Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error: Failed to mount USB device filesystem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
davecs
Guru
Guru


Joined: 08 Nov 2003
Posts: 436
Location: Dagenham, GB

PostPosted: Fri Jun 25, 2004 9:16 pm    Post subject: Error: Failed to mount USB device filesystem Reply with quote

When I start Gentoo, I get the above error. I don't know if it is related, but when I plug in a USB storage device (I have two, one is a bog-standard 32Mb USB key, the other is a Compact Flash card reader, uses a SiiG driver in Windoze 98SE) the device is set up adhoc, and so I cannot mount it as user, only as root, and even if I mount it as root, I cannot read it as user. I do not have the same problem with my DVD-RW which I can mount / unmount using a KDE desktop icon with no trouble whatsoever.

Does anyone know what setup error I have to produce the above error? Do I need to add a module into /etc/modules.autoload.d/kernel-2.6 as hotplug is clearly picking it up further down the line...
_________________
Gentoo, PCLOS-pre-81a and Windows 98SE.
Shuttle SN41G2V2
Athlon XP2500+ o/c to 3200+, 2x256Mb Geil Value RAM, FX5200.
Ntlworld cable internet via ethernet
and PC-Chips Desknote Laptop (with PCLOS-pre-81a )
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Fri Jun 25, 2004 9:25 pm    Post subject: Reply with quote

What are the options for the USB key in /etc/fstab? For my mass-storage digital camera I have these: noauto,umask=022,user. user so I can mount it as a normal user, and the umask line sets up the permissions as 755.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Fri Jun 25, 2004 10:45 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
Back to top
View user's profile Send private message
davecs
Guru
Guru


Joined: 08 Nov 2003
Posts: 436
Location: Dagenham, GB

PostPosted: Sat Jun 26, 2004 12:38 am    Post subject: Reply with quote

Thanks!

That's one problem solved. I clearly did not understand the umask entry in fstab, as soon as I corrected it, all was fine.

OK, there is another problem here. When I plug in either USB storage device, it defaults to /dev/sda1, and if I then plug in the other whilst the first is still in, it becomes /dev/sda2. I want one of them to be /dev/sda1 and the other /dev/sda2 no matter what. They do have manufacturer numbers and device codes which I can get from KDE Info Centre. Is there a way of doing this?

Finally does anyone know how I can get rid of the error message at startup?
_________________
Gentoo, PCLOS-pre-81a and Windows 98SE.
Shuttle SN41G2V2
Athlon XP2500+ o/c to 3200+, 2x256Mb Geil Value RAM, FX5200.
Ntlworld cable internet via ethernet
and PC-Chips Desknote Laptop (with PCLOS-pre-81a )
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sat Jun 26, 2004 7:17 am    Post subject: Reply with quote

To get rid of the error message at startup, I removed the /proc/bus/usb line from my /etc/fstab... the Gentoo startup scripts seem to mount it anyway, so it then tries to mount it twice, which doesn't really work!

As for the other, I think it can be done with UDEV. Have a look here for a start: Decibel's UDEV Primer. There's also a great Gentoo tutorial about it, but for no apparent reason my computer can't connect to the main site at the moment, so I can't provide a link.

Edit: Found it: http://www.gentoo.org/doc/en/udev-guide.xml
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
davecs
Guru
Guru


Joined: 08 Nov 2003
Posts: 436
Location: Dagenham, GB

PostPosted: Sat Jun 26, 2004 1:48 pm    Post subject: Reply with quote

Maedhros wrote:
To get rid of the error message at startup, I removed the /proc/bus/usb line from my /etc/fstab... the Gentoo startup scripts seem to mount it anyway, so it then tries to mount it twice, which doesn't really work!


Spot on!

Now to let you into my little secret: I actually loaded Gentoo initially by making a small partition, loading Mandrake into it, then setting up a chrooted environment to load Gentoo. When I couldn't work out how to set up a configuration file, I simply copied over the Mandrake one, then tried to edit it if it didn't work.

This was OK for XF86Config, but fstab seems to be slightly different!

I might try the udev thing to set up my USB storage devices, but I am wondering whether it is too much like hard work, I really wanted two separate icons to mount/unmount for tidiness, but I cannot imagine ever needing them at the same time in practice...
_________________
Gentoo, PCLOS-pre-81a and Windows 98SE.
Shuttle SN41G2V2
Athlon XP2500+ o/c to 3200+, 2x256Mb Geil Value RAM, FX5200.
Ntlworld cable internet via ethernet
and PC-Chips Desknote Laptop (with PCLOS-pre-81a )
Back to top
View user's profile Send private message
davecs
Guru
Guru


Joined: 08 Nov 2003
Posts: 436
Location: Dagenham, GB

PostPosted: Sun Jun 27, 2004 1:13 am    Post subject: Reply with quote

Tried UDEV, could not start nvidia graphics and sound was buggered as well. Read documentation as Chuck Berry said "Too Much Monkey Business for me to get involved in".

I'll wait until UDEV is fully developed in the meantime I'll put up with DEVFS shortcomings!

Actually thought I'd b0rked my computer at one stage ...
_________________
Gentoo, PCLOS-pre-81a and Windows 98SE.
Shuttle SN41G2V2
Athlon XP2500+ o/c to 3200+, 2x256Mb Geil Value RAM, FX5200.
Ntlworld cable internet via ethernet
and PC-Chips Desknote Laptop (with PCLOS-pre-81a )
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1630
Location: U.S.A.

PostPosted: Sun Jun 27, 2004 2:55 am    Post subject: Reply with quote

If you have the correct nvidia-kernel and nvidia-glx versions they will create the devices, but you might find yourself with a timing problem. Have it on mine, no answer yet as to why.

If you boot up and don't get X, check if you have nvidia devices in your /dev folder. Try 'startx' after you log in. If have the devices and startx works, then probably just the timing problem. Add a sleep to your /etc/conf.d/local.start file. Your time may very a bit, but mine is set to '3'

Code:
sleep 3

_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum