Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to format flash drive from shell in opens use 11.4?

user-image
Question added by saurabh mahi
Date Posted: 2013/09/22

For Pen Drive/Flash Drive Formatting:Use mkfs.ext3 -L "Label" /dev/sdx for ext3 file system or mke2fs -L 'Label'/dev/sdx for ex2, Replace Label with the name you want the pen/flash drive to haveand /dev/sdx with your drive.Ext3 file system: [root@ras ~]# mkfs.ext3 -L "KVMREDDY" /dev/sdb1mke2fs1.39 (29-May-2006)Filesystem label=KVMREDDYOS type: Linux.............................[root@ras ~]# ext2 file system: [root@ras ~]# mke2fs -L 'VENU' /dev/sdb1mke2fs1.39 (29-May-2006)Filesystem label=VENUOS type: Linux...........................[root@ras ~]# After formatting you will be returned to the prompt then remove and insert thepen/flash drive to have mounted again.

KASHIF ZEESHAN
by KASHIF ZEESHAN , Corporate Trainer , ORION EDUTECH PVT LTD

For Pen Drive/Flash Drive Formatting:Use mkfs.ext3 -L "Label" /dev/sdx for ext3 file system or mke2fs -L 'Label'/dev/sdx for ex2, Replace Label with the name you want the pen/flash drive to haveand /dev/sdx with your drive.Ext3 file system: [root@ras ~]# mkfs.ext3 -L "KVMREDDY" /dev/sdb1mke2fs1.39 (29-May-2006)Filesystem label=KVMREDDYOS type: Linux.............................[root@ras ~]# ext2 file system: [root@ras ~]# mke2fs -L 'VENU' /dev/sdb1mke2fs1.39 (29-May-2006)Filesystem label=VENUOS type: Linux...........................[root@ras ~]# After formatting you will be returned to the prompt then remove and insert thepen/flash drive to have mounted again.

Athanassios Staveris-Polykalas
by Athanassios Staveris-Polykalas , Secretary General of Telecommunications and Post - Hellenic Republic , General Secretariat of Telecommunications and Post - Hellenic Republic

i think the easiest way is to go to YAST-System-Partitioner  and format it to what ever you want

  • check first for the mount drive in the linux terminal to identify the exact drive partition you want to format.

sudo fdisk -l

  • or checking the device status by plugging in the drive

dmesg | tail

  • let's assume your flash drive is /dev/sda1
  • command on formatting drive using extended file system (ext3)

sudo mkfs.ext3 -L "label name" /dev/sda1

  • command on formatting drive using msdos/winxp

sudo mkfs.vfat -L "label name" /dev/sda1

YaST > System >  Plug in your memory stick. Click on the correct device partition, then 'Edit'. You can then format with the desired file system as required.

Ali Al-Attar
by Ali Al-Attar , Founder, Project Manager and Team Leader , Ubuntu

http://en.opensuse.org/Main_Page

 

http://www.linuxforums.org/forum/newbie/19316-how-format-usb-drive.html

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.