LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 08-23-2004, 07:14 PM   #1
name_in_use450
Member
 
Registered: Jun 2004
Location: United States
Distribution: slackware 10.0 mostly; used many
Posts: 109

Rep: Reputation: 15
howto mount usb pen drive?


Many USB pen drive manufactures claim their drive will work on Windows/Mac/Linux. Can someone please tell me how to get it working in Linux. I run 2.4 and 2.6 kernels so it should be easy enough. Will it autodetect it and then i type mount /dev/usb0 or something?

thanks.
 
Old 08-23-2004, 07:53 PM   #2
Travers
Member
 
Registered: Jul 2004
Location: Des Moines
Distribution: Gentoo
Posts: 111

Rep: Reputation: 15
Assuming you only have one USB Flash drive, it should be named sda1 and be in /dev. If sda1 is not the name for your drive, use some fashion of hardware browser to find the name.

To do this the quick way type this in the terminal: mount -t auto /dev/sda1 /mnt
This automatically determines the file system and mounts the device sda1 in the folder /mnt. Just point Nautilus or Konquorer to that folder and the contens of the USB drive will be there.

You're going to need to edit the /etc/fstab file to make future mountings quick and easy. Use a edit program of your choosing. Add this line into fstab and click save. If you can't save the file due to lack of permissions, use this command in the terminal: chmod u=rwx /etc/fstab
/dev/sda1 /mnt/flashdrive auto defaults,users,noauto 00

/dev/sda1 is telliing the computer what device to mount.
/mnt/flashdrive is telling the computer where to mount it. In this case, you would have to use the mkdir command and create the flashdrive folder.
auto tells the computer to automatically figure out the file system.

defaults,users,noauto tells the computer to manage the USB drive in the usual fashion, make it avaliable to all users of the computer, and not automatically mount the drive on startup, as it may not be plugged in.

0 0 hell, I don't know what that means! It's complicated, I hear.

Now, in the terminal, use: mount -a
This command automatically mounts everything in the fstab file that isn't already mounted. If you want to unmount something use the command: umount /dev/sda1
If it says the device is busy, use: umount -l /dev/sda1
This makes the device unmount as soon as it is not busy.

Unmounting a USB storage device is a NECESSITY, or no changes to the device will be saved. Like new files you added, for example.

You can put an icon to the flash drive on your desktop. Just right click go to new, device, USB storage. You should probably be able to figure that one out. Enjoy. Feel free to ask questions if I'm not 100% clear or something dosen't work.
 
1 members found this post helpful.
Old 08-24-2004, 07:23 AM   #3
name_in_use450
Member
 
Registered: Jun 2004
Location: United States
Distribution: slackware 10.0 mostly; used many
Posts: 109

Original Poster
Rep: Reputation: 15
thanks for the information. I can probably figure it out now.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't mount usb pen drive with hotplug dori Slackware 8 03-02-2007 02:22 AM
unable to mount usb pen drive in redhat 9.0 zero79 Linux - Hardware 9 01-25-2007 09:07 PM
hey i am not able to mount usb pen drive amolgupta Linux - Hardware 1 05-07-2005 01:51 AM
Difficulty to mount USB Pen Drive fatra2 Linux - Hardware 5 09-10-2004 01:58 AM
Can't mount USB memory stick/pen drive wellmt Slackware 11 06-25-2004 02:10 AM


All times are GMT -5. The time now is 05:42 AM.

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