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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
09-15-2003, 09:40 AM
|
#1
|
Member
Registered: May 2003
Location: PA
Posts: 82
Rep:
|
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
|
|
|
09-15-2003, 09:57 AM
|
#2
|
Member
Registered: Aug 2003
Location: Hershey, PA, USA
Distribution: Fedora/Knoppix3.2/Slack9.1
Posts: 34
Rep:
|
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.
|
|
|
09-15-2003, 12:14 PM
|
#3
|
Member
Registered: May 2003
Location: PA
Posts: 82
Original Poster
Rep:
|
it says that sda isn't found in fstab. Do i manually put it in there?
|
|
|
09-15-2003, 12:48 PM
|
#4
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
09-15-2003, 03:32 PM
|
#5
|
Member
Registered: Aug 2003
Location: Hershey, PA, USA
Distribution: Fedora/Knoppix3.2/Slack9.1
Posts: 34
Rep:
|
yes
yes, you have to put it in your fstab. i can help you with that if you like.
|
|
|
09-15-2003, 05:59 PM
|
#6
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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
|
|
|
09-15-2003, 06:11 PM
|
#7
|
Member
Registered: May 2003
Location: PA
Posts: 82
Original Poster
Rep:
|
Thanks guys, worked without a hitch.
|
|
|
09-15-2003, 06:21 PM
|
#8
|
Member
Registered: May 2003
Location: PA
Posts: 82
Original Poster
Rep:
|
one question though.
Why is is sda1 and not sda0? or doesn't it matter
|
|
|
09-15-2003, 06:57 PM
|
#9
|
Member
Registered: Aug 2003
Location: Hershey, PA, USA
Distribution: Fedora/Knoppix3.2/Slack9.1
Posts: 34
Rep:
|
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
|
|
|
09-15-2003, 11:28 PM
|
#10
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
I have no idea, my USB zip drive is sda4. Go figure.
|
|
|
11-18-2003, 11:45 PM
|
#11
|
Member
Registered: Sep 2003
Posts: 37
Rep:
|
Thanks for the info from this post. This helped me a lot also.
J
|
|
|
01-04-2004, 07:03 PM
|
#12
|
Member
Registered: Oct 2003
Distribution: slackware9.1
Posts: 44
Rep:
|
Yup, it helped me also, I was lost without this!
|
|
|
02-17-2004, 03:18 PM
|
#13
|
Member
Registered: Oct 2003
Location: Virginia, USA
Posts: 31
Rep:
|
How do you find your device if you already have a /dev/sda1?
|
|
|
02-18-2004, 09:34 PM
|
#14
|
Member
Registered: Aug 2003
Location: Hershey, PA, USA
Distribution: Fedora/Knoppix3.2/Slack9.1
Posts: 34
Rep:
|
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
|
|
|
03-02-2006, 12:36 PM
|
#15
|
LQ Newbie
Registered: Mar 2006
Location: Portland, OR US
Distribution: Debian
Posts: 1
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 10:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|