Custom Search

Ubuntu server mount usb drive

Ubuntu server automatically detect usb drive when you plug it in the usb port. Here is an example of how Ubuntu detected my usb drive or thumb drive when I plugged it:



Ubuntu automatically assign the usb drive as sdb. If your Ubuntu doesn't detect the usb drive, pull it out and try connect it again.

Before mount the usb drive, normally I would create a new directory called usb in /mnt to be a destination place for the mounted usb drive.

luzar@ubuntu:~$ sudo mkdir /mnt/usb

You can mount it in /mnt if you want, it doesn't matter. I created a special directory for usb drive because sometimes I need to mount several file systems and devices, so I need a mount point for each of them.

The mount syntax is mount device destination. Don't forget the sudo command. Here is an example of Ubuntu server mount usb drive:

luzar@ubuntu:~$ sudo mount /dev/sdb1 /mnt/usb/
luzar@ubuntu:~$ ls /mnt/usb/
logo.png usbthumbdrive.bmp
luzar@ubuntu:~$

That's it.

3 comments:

  1. I am very impress on your information , Its a really very impressive blog. I really got some another very nice information , so thanks for sharing these tips,USB Boot Drive .

    ReplyDelete

Please keep comment relevant and strictly no spam will be tolerated. Thank you.