O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  



USB Access Made Easy
Sometimes USB thumb drives or hard drives do not get auto mounted in the commmand line or GUI, here you will learn how to easily access such USB Storate media

Contributed by:
logic640
[04/12/06 | Discuss (0) | Link to this hack]

Plug in the disk drive in the USB connector, and after a few seconds launch the hardware browser in the GUI. It is available on the System Tools Menu (you will need the ROOT password) once the tool starts click on the section which says Hard Drives, there you should be able to see your usb drive. In my case it was displayed as "Drive /dev/sda". Scroll down till you see your USB drive in the list. Mine was shown as /Dev/Sda - Sda1.

Where SDA1 is my actual USB drive. Now open a terminal window. Execute the following commands in order -

1. mkdir /mnt/usb or in case of fedora core-3 mkdir /media/usb 2. mount -t vfat /dev/sda1 /mnt/usb or /media/usb 3. cd /mnt/usb or /media/usb 4. ls -l. To see your contents, at times you may not see your files. So try after a few seconds, or check if your thumb drive is empty 5. Umount /mnt/usb or /media/usb. Once you are finished with using the drive. -----------------------------------------------

Now every time you need to use the drive you need to run the lengthy command in STEP 2. To make it a bit more easier. edit /etc/fstab (Warning - you need root access) and follow the following steps to edit this file.

1. Under the first section the label section - add /dev/sda1 2. In the second section - mount point - add /mnt/usb or /media/usb (in case of FC3) 3. In the third section - file system - add vfat (This means fat 32 file system) 4. In the fourth section - mount options - add defaults,noauto 5. In the last section - DUMP / FSCK add 0 0 6. reboot the system

Next time you need to use your USB drive, plug your it in, and execute mount /media/usb or /mnt/usb.

To access it in the GUI, start your File Manager and navigate to /media/usb or /mnt/usb. Thats it. USB Access made easy.

See also: www.openminds.tk (For more articles / writeups)


O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.