LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to format a USB drive? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-format-a-usb-drive-707259/)

JeffC1 02-24-2009 06:23 PM

How to format a USB drive?
 
Simple question.

I'd like to format a NTFS drive to EXT3.

Is there a simple way to do this?

All of the documentation I find is far too complex for the task at hand.

Please help?

linus72 02-24-2009 06:32 PM

Gparted!
 
Use Gparted, after opening-goto "gparted menu and pick your USB-see screenshot.
Next, right click on the USB in gparted and unmount it-see screenshot.
Now, right-click again on it and choose either DELETE or FORMAT TO...FAT16 or FAT32-your choice, or EXT3.
Now hit apply and your done!

JeffC1 02-24-2009 06:41 PM

Sorry i Should have clarified

This is for a Redhat based system

command line only

fdisk may be my only option..

theNbomr 02-24-2009 06:52 PM

Assuming the partition already exists,
Code:

mkfs.ext3 /dev/sdc1
Replace sdc1 with the appropriate partition name for your thumbdrive.

man mke2fs


--- rod.

amani 02-24-2009 06:57 PM

Use parted

or mkfs.ext3 mkfs.... for the task

mkfs gives you more control

#man mkfs

parted lets you manipulate the partitions and do lot more

gergely89 02-24-2009 07:24 PM

Assuming that you know the device name of your hard disk and the partition name of the part that needs formatting. First step is to unmount that volume from it's mount directory (if it is mounted).
Quote:

umount /mnt
Then you can format your partition on the unmounted device (needs to be root for this)
Quote:

/sbin/mkfs.ext3 /dev/sda1
Of course replace my samples with your device and mountpoint.

The formatting tool is actually mke2fs, but some distributions provide script or binaries for specific filesystem formatting. mkfs.ext3 is typical on Fedora. Read man mke2fs for details.

The above information actually only overwrites the filesystem. For full hard disk formatting and repartitionaing you need /sbin/fdisk (type m for help info).

linux

JeffC1 02-25-2009 12:15 PM

Thanks!


All times are GMT -5. The time now is 05:38 AM.