Tuesday, May 13, 2014

How to format USB , external HD with terminal

Say we have a usb device and now we need to formate it with terminal

open terminal type "sudo fdisk -l"







this will show your usb device for me its /dev/sdd1

see whether its mounted or not by "df" command

if mounted unmount it with "sudo umount  /dev/sdd1 "

now type "sudo mkfs.vfat -n 'anuj1'  -I /dev/sdd1" 

you can use mkfs.bfs, mkfs.ext2, mkfs.ext3, mkfs.ext4, mkfs.minix, mkfs.msdos, mkfs.vfat, mkfs.xfs, mkfs.xiafs etc also instead of mkfs.vfat

anuj1 is name of usb device as i like to see.

dats all 

how-to-format-usb device in linux

how-to-format-usb-external-hd in ubuntu

No comments:

Post a Comment