LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-15-2003, 09:40 AM   #1
stakhous
Member
 
Registered: May 2003
Location: PA
Posts: 82

Rep: Reputation: 15
How do you mount a usb thumb drive?


I'm running knoppix-std on a cd and I want to save my information onto my usb thumb drive. Does it have a /dev name?Ive read through a bunch of manual pages and found nothing.

thanks
 
Old 09-15-2003, 09:57 AM   #2
sclebo05
Member
 
Registered: Aug 2003
Location: Hershey, PA, USA
Distribution: Fedora/Knoppix3.2/Slack9.1
Posts: 34

Rep: Reputation: 15
your usb drive is probably /dev/sda1

on a usb drive, make sure you have sync in your options in fstab, so that the information is written to it immediately. if you don't and you pull the drive out, you might lose some data.
 
Old 09-15-2003, 12:14 PM   #3
stakhous
Member
 
Registered: May 2003
Location: PA
Posts: 82

Original Poster
Rep: Reputation: 15
it says that sda isn't found in fstab. Do i manually put it in there?
 
Old 09-15-2003, 12:48 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Make a directory, let say /mnt/thmb by using the command mkdir /mnt/thumb. Then change the permmisions to read/write for everbody buy using the command chmod 777 /mnt/thumb. Then to mount the drive use the command mount -t vfat /dev/sda1 /mnt/thumb. That should mount the drive under the /mnt/thumb directory.
 
Old 09-15-2003, 03:32 PM   #5
sclebo05
Member
 
Registered: Aug 2003
Location: Hershey, PA, USA
Distribution: Fedora/Knoppix3.2/Slack9.1
Posts: 34

Rep: Reputation: 15
yes

yes, you have to put it in your fstab. i can help you with that if you like.
 
Old 09-15-2003, 05:59 PM   #6
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Put this in your /etc/fstab. This will mount the drive with read/write permissions for everyone.

/dev/sda1 /mnt/thumb vfat uid=500,gid=500,umask=000,exec,dev,suid,rw 1 0
 
Old 09-15-2003, 06:11 PM   #7
stakhous
Member
 
Registered: May 2003
Location: PA
Posts: 82

Original Poster
Rep: Reputation: 15
Thanks guys, worked without a hitch.
 
Old 09-15-2003, 06:21 PM   #8
stakhous
Member
 
Registered: May 2003
Location: PA
Posts: 82

Original Poster
Rep: Reputation: 15
one question though.

Why is is sda1 and not sda0? or doesn't it matter
 
Old 09-15-2003, 06:57 PM   #9
sclebo05
Member
 
Registered: Aug 2003
Location: Hershey, PA, USA
Distribution: Fedora/Knoppix3.2/Slack9.1
Posts: 34

Rep: Reputation: 15
good question, but i don't know the answer. here is the line from my fstab:

/dev/sda1 /mnt/pendrive vfat noauto,user,sync,rw 0 0
 
Old 09-15-2003, 11:28 PM   #10
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
I have no idea, my USB zip drive is sda4. Go figure.
 
Old 11-18-2003, 11:45 PM   #11
jwjody
Member
 
Registered: Sep 2003
Posts: 37

Rep: Reputation: 15
Thanks for the info from this post. This helped me a lot also.

J
 
Old 01-04-2004, 07:03 PM   #12
cjdock
Member
 
Registered: Oct 2003
Distribution: slackware9.1
Posts: 44

Rep: Reputation: 16
Yup, it helped me also, I was lost without this!
 
Old 02-17-2004, 03:18 PM   #13
DurantDL
Member
 
Registered: Oct 2003
Location: Virginia, USA
Posts: 31

Rep: Reputation: 15
How do you find your device if you already have a /dev/sda1?
 
Old 02-18-2004, 09:34 PM   #14
sclebo05
Member
 
Registered: Aug 2003
Location: Hershey, PA, USA
Distribution: Fedora/Knoppix3.2/Slack9.1
Posts: 34

Rep: Reputation: 15
hmmm

trial and error my be the simplest way if you don't have too many devices.
/dev/sda1 , /dev/sdb1, /dev/sdc1 ......

linux orders devices in sequence. someone probably knows a way to check what is physically connected, but i always just tried each one till i found it
 
Old 03-02-2006, 12:36 PM   #15
Exide
LQ Newbie
 
Registered: Mar 2006
Location: Portland, OR US
Distribution: Debian
Posts: 1

Rep: Reputation: 0
One thing to keep in mind is SCSI/SATA devices are mapped to /dev/sdxx as well. I'm not sure which pulls precedence over one another if you have both SCSI and SATA involved, but im willing to bet they both are mapped prior to the USB hub even being processed.

For example in my situation i have 1 SATA HD and a USB Thumb drive. My devices look like this:

/dev/sda1 - boot volume
/dev/sda2 - swap
/dev/sdb1 - thumb drive
 
  


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
How to mount thumb drive? seattledaze Linux - Hardware 4 03-22-2006 12:50 PM
USB Thumb Drive Will Not Mount Unless Present During Boot. IamI Slackware 21 02-21-2006 02:40 PM
How do I mount my thumb drive on my Linux? FarAway Red Hat 1 04-01-2005 04:33 AM
Cannot mount thumb drive moxieman99 Linux - Newbie 4 10-09-2004 02:33 PM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration