AOA Forums AOA Forums AOA Forums Folding For Team 45 AOA Files Home Front Page Become an AOA Subscriber! UserCP Calendar Memberlist FAQ Search Forum Home


Go Back   AOA Forums > Software > OS, Software, Firmware, and BIOS


Reply
 
LinkBack Thread Tools Rate Thread
  #1 (permalink)  
Old 5th July, 2005, 05:12 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

USB Flash Drive under Gentoo

Help!

I'm trying to get my 2.6 kernel to recognize my USB flash drive, and I'm having some problems.

Here's what I've got:

The kernel is compiled with support for USB devices. I have an entry in FSTab that looks like:

none, /proc/bus/usb, usbfs, defaults, 1, 1

If I understand this right, then when I attach and mount a usb device, I should have it show up at /proc/bus/usb, right? There's nothing there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 5th July, 2005, 06:00 PM
Kaitain's Avatar
Member
Mars Rover Champion, Joust Champion
 
Join Date: September 2001
Location: MK10, UK.
Posts: 4,372
Send a message via MSN to Kaitain Send a message via Skype™ to Kaitain

Type "dmesg" (without quotes) into a console right after plugging the usb mass storage device in and it should tell you where it is.

Linux has some trouble with laptops btw.

You'll find that if it's a USB1.1 device then the device will be something like /dev/sda1
If it's USB2 then it'll probably be /dev/uba
If it's on a laptop then give up and go with /dev/discs/disc1/part1 (or whatever the highest disc number on the system is).

If you're going grey very fast, then remember to compile the next kernel to include supermount-ng or similar.
__________________
It is by coffee alone I set my mind in motion...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 6th July, 2005, 01:48 AM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Well, the device is /dev/sdc.

Unfortunately, I can't mount it. Linux doesn't seem to recognize the file system. It is a 256 Meg flash, and according to XP it is formatted as FAT, but neither

mount -t msdos /dev/sdc /mnt/usbstick

nor

mount -t vfat /dev/sdc /mnt/usbstick

work.

They all come back with
"Wrong fs type, bad option, bad superblock on /dev/sdc, or too many mounted file systems."

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 6th July, 2005, 01:51 AM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Sigh. Duh. Case of the terminal stupids.

mount -t vfat /dev/sdc1 /mnt/usbstick

works great. Helps when you specify the partition to mount.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 6th July, 2005, 09:04 AM
Kaitain's Avatar
Member
Mars Rover Champion, Joust Champion
 
Join Date: September 2001
Location: MK10, UK.
Posts: 4,372
Send a message via MSN to Kaitain Send a message via Skype™ to Kaitain

Linux's partition handling does suck quite spectacularly. If you ever try to mount a Zip disc, you need to mount partition 4 for some quite archane reasons...
__________________
It is by coffee alone I set my mind in motion...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 6th July, 2005, 10:16 AM
Chief Systems Administrator
 
Join Date: September 2001
Location: Europe
Posts: 13,075

Some USB flash devices are partitioned, some arn't. There seems to be some variation to the specs as to how it's handled.
__________________
Any views, thoughts and opinions are entirely my own. They don't necessarily represent those of my employer (BlackBerry).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
gentoo



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TINY Flash Drive fantomfreq Random Nonsense! 1 26th June, 2007 10:57 AM
RITEK Intros Flash Drive with Additional USB Ports Samuknow General Hardware Discussion 0 9th April, 2007 12:13 PM
usb flash drive probs gazzacbr General Hardware Discussion 7 9th June, 2005 09:11 PM
PQI Flash Drive Razorfish General Hardware Discussion 0 3rd July, 2004 08:59 PM
Geforce2 TV Out on Gentoo Áedán OS, Software, Firmware, and BIOS 7 15th February, 2004 07:32 PM


All times are GMT +1. The time now is 12:21 PM.


Copyright ©2001 - 2010, AOA Forums
Don't Click Here Don't Click Here Either

Search Engine Friendly URLs by vBSEO 3.3.0