LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-18-2005, 01:39 PM   #1
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 443

Rep: Reputation: 30
mounting a thumbdrive


i have two thumb drives. i one thumb drive i can mount with the following command

Code:
mount -t vfat /dev/sda1 /mnt/usb
that command works fine, but when i plug in my other thumb drive (after i umount it)
i typed in that same command above and it fails by saying

Code:
mount: /dev/sda1 is not a valid block device
I don't understand why this is happening...is it because the thumb drive is bad, if so is there a way i can retreive the data from it, or i'm i screwed?


thanks,


djgerbavor3
 
Old 01-18-2005, 01:51 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,763

Rep: Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719
Look at the output of dmesg when you plug in the second drive. Are there errors?
 
Old 01-18-2005, 02:53 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
THe system keeps track of devices that are hot-plugged. I don't know all the specifics, but here's how it impacts you (as the user):

The first device you plug in will be referenced /dev/sda1
The second device you plug in will be referenced as /dev/sdb1

The system will maintain those associations regardless of whether one (or both) are unmounted. So it can get confusing if you're swapping pen drives constantly.

The only way around it (that I've heard of - emphasis: heard; not tried) is to use a 2.6 series kernel with udev. Supposedly you can configure udev to associate a specific device designation to a particular device. That way, you would always reference pendrive A with /dev/sdx1 and pendrive B with /dev/sdy1 (just as an example).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting a thumbdrive? linuxgeek13 Mandriva 7 10-13-2005 12:15 PM
USB thumbdrive mounting problem sashhoney Linux - Hardware 1 05-31-2005 06:06 AM
Mounting USB Thumbdrive as non-root? ernestteo Linux - Hardware 6 12-24-2004 09:49 AM
mounting usb thumbdrive and going in circles slackist Linux - Hardware 11 07-27-2004 08:30 PM
Partition and mounting problems w/ thumbdrive?? partimegeek Linux - Newbie 10 05-10-2004 05:09 PM


All times are GMT -5. The time now is 02:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration