29 May 2014

Linux & usb

Just a quick guite to mount usb drives via command line:

use fdisk to list all the drives your OS can see:
then simply mount the one you need.

$ sudo fdisk -l
$ sudo mount /dev/sdb1 /mnt/usb


in case you get the error: "special device does not exist"
it is most probably due to an error on the usb device, try formatting it may solve.


Tip: to format a usb drive, enter the followint command

$ mkfs.vfat -n "NEW_DRIVE_NAME" -I /dev/sdx1

(*) replace /dev/sdx1 with the device name of your pendrive (list all the drives using fdisk -l )



No comments: