Search This Blog

Total Pageviews

Wednesday, 19 January 2011

How to format pen drive in Linux ?

command is

mkfs.vfat -I -n 'USB-name' /dev/sdb



apt-amd-02:/home/anujs/Downloads # umount /dev/sdb1

apt-amd-02:/home/anujs/Downloads # mkfs.vfat -I -n 'anuj' /dev/sdb1
mkfs.vfat 3.0.9 (31 Jan 2010)

now your drive will be

df -h


/dev/sdb1 7.6G 4.0K 7.6G 1% /media/anuj



List of these commands are as follows-

mkfs.bfs
mkfs.ext3
mkfs.ext4dev
mkfs.msdos
mkfs.reiserfs
mkfs.ext2
mkfs.ext4
mkfs.minix
mkfs.ntfs
mkfs.vfat

Oracle DBA

anuj blog Archive