RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Howto mount USB drive in Linux

Article Index
1. Example
2. Detecting USB hard drive
3. Creating mount point
4. Edit /etc/fstab

The Office Worker's Guide to a USB Thumb Drive

>FREE PDF DOWNLOAD<

1. Example

2. Detecting USB hard drive

After you plug in your USB device to your USB port, linux will add new block device into /dev/ directory. At this stage you are not able to use this device as the USB filesystem needs to be mouted before you are able to retrieve any data. To find out what name your block device file have you can run fdisk command:

# fdisk -l 

You will get output similar to this:

Disk /dev/sdb: 60.0 GB, 60060155904 bytes
255 heads, 63 sectors/track, 7301 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b2b03

Device Boot Start End Blocks Id System
/dev/sdb1 1 7301 58645251 b W95 FAT32

 

3. Creating mount point

Create directory where you want to mount your device:

mkdir /mnt/sdb1 

4. Edit /etc/fstab

To automate this process you can edit /etc/fstab file and add line similar to this:

/dev/sdb1       /mnt/sdb1           vfat    defaults        0       0 

Run mount command to mount all not yet mounted devices. Keep in mind that if you have more different USB devices in you system, device name can vary!!!

# mount -a 

Share this linux post:

Submit Howto mount USB drive in Linux in Delicious Submit Howto mount USB drive in Linux in Digg Submit Howto mount USB drive in Linux in FaceBook Submit Howto mount USB drive in Linux in Google Bookmarks Submit Howto mount USB drive in Linux in Stumbleupon Submit Howto mount USB drive in Linux in Technorati Submit Howto mount USB drive in Linux in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download