Wednesday, October 10

Mounting USB device in linux

How to mount a usb device in linux.
e.g. Digital Camera, USB flash drive, mobilephone

1. Connect the usb cable to your linux computer.
2. Login as root.
#su - or sudo
#
3. Then type
# tail -f /var/log/messages


* This will show you the device you have connected like sda1, hdc, etc...


4. Type the following
mount /dev/devicename /mnt/flash
e.g. #mount /dev/sda1 /mnt/flash

*Format: mount devicename devicedestination

5. #cd /mnt/flash

6. Walah... your done.


Unmount the usb device:
1. Go back to main prompt
2. Type umount /mnt/flash
e.g #umount /mnt/devicedestination

3. Remove your usb device.

Note: You can unmount the device while your inside /mnt/flash

No comments: