Monday, 14 November 2011

How to mount USB drive using Linux Command Line

Use the following command to list drive in Linux. Please ensure you have root access
# fdisk -l 

Refer to the info and look for "sdb1" (This is normally the name for your usb)

#mkdir /mnt/sdb1

Edit /etc/fstab
Add the following line in fstab
/dev/sdb1       /mnt/sdb1           vfat    defaults        0       0 

Type the following command in Linux terminal
#mount -a

No comments:

Post a Comment