Tuesday, February 2, 2010

Acessing USB drive in Linux(cli command)

Steps to access USB drive on Linux

1) Login as root

ex: Ubunto

linux/# sudo su

linux/# YOUR_login_PASSWORD:

2)Reset to appear a common linux prompt

linux/# reset

root@linux/#

3)Check if USB is detected

root@linux/# modprobe -i usb-storage

4)Make a directory for your USB drive

root@linux/# mkdir /mnt/usbstick

5) Check your drive partitions by issuing a cli command "df-l"

root@linux/# df -l

Note** Usually greping "sdb1" gives the right usb directory

6) Then mount that drive to the assigned directory for USB

root@linux/# mount /dev/sdb1 /mnt/usbstick

7)Goto the content of your USB directory

root@linux/# cd /mnt/usbstick

8) After all your work with USB unmount to remove the USB.

root@linux/# umount /dev/sdb1


Thanks


E^3

No comments:

Post a Comment