How to Mount Pendrive In Linux: Mounting Commands in Linux

FREQUENTLY ASKED QUESTIONS (Linux)
Q: How to mount a USB pendrive in linux operating system?


In RPM based linux operating systems (Redhat, CentOS, Fedora, etc) you can use mount command to mount a USB Pendrive to a specified directory.



First of all Identify your USB pendrive in linux
[root@server ~]# fdisk -l
 Device Boot       Start         End         Blocks         Id       System
 /dev/sdb1           63        16354169    8177053+      b        W95 FAT32


Here my 8Gb pendrive is "/dev/sdb1"


Mount /dev/sdb1 to any directory
[root@server ~]# mount /dev/sdb1 /root/new

The above command will mound the 8GB USB flash pendrive to "/root/new" directory.
You can now access the files in the drive by accessing the /root/new directory.


How to UnMount USB pendrive /dev/sdb1
[root@server ~]# umount /dev/sdb1

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons