Tuesday, August 18, 2009

How to mount usb flash drives in linux.

Here is how to mount usb flash drives in linux.

1.Open a terminal in gnome or kde, and as user cd yourself to the mnt folder and become root to create usbflash directory.

[test@localhost imdeemvp]$ cd /mnt/
[test@localhost mnt]$ su
Password:
[root@localhost mnt]# mkdir usbflash

2.listed all my directories the mnt folder and mount flash card reader
[root@localhost mnt]# ls /mnt/
[root@localhost mnt]# mount /dev/sda1 /mnt/usbflash

3.listed all the info in my usb flash card:
[root@localhost mnt]# ls usbflash
bootex.log dns.bmp games and keys LinuxDocs01.21.04 pc's
dns2.bmp Documents programs

Now I can copy the files to my home folder.

How to unmount usb flash drives in linux:
unmounted my usb flash card
[root@localhost mnt]# umount /dev/sda1 /mnt/usbflash
umount: /dev/sda1: not mounted
[root@localhost mnt]# exit
[test@localhost mnt]$

No comments:

Post a Comment