LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to format an external hard drive? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-format-an-external-hard-drive-792032/)

rgannon 02-27-2010 05:47 PM

How to format an external hard drive?
 
I have a 250 GB external hard drive formatted with Windows NTFS file type.
How do I format it to use linux and what file type is best. I'm done with Windows so that is not a concern.

reed9 02-27-2010 05:53 PM

Use gparted.

http://www.dedoimedo.com/computers/gparted.html

Best is always a relative term. Ext3 and Ext4 are probably the most used.
http://en.wikipedia.org/wiki/Comparison_of_file_systems

jschiwal 02-27-2010 06:04 PM

First decide whether you want this drive repartitioned. You can use gparted to repartition and reformat the drive. Or you can use "sudo /sbin/fdisk <device>" to do it from the console. Delete the original partition if you will be repartitioning it. Make sure that the partition isn't mounted first.

After partitioning, you need to create a filesystem on the partitions. I would stay away from reiserfs. I don't know how long it will be around. Ext3 or Ext4 are the defacto filesystems on Linux, and while ext3 isn't as fast as others, may be more robust which is important for an external drive. Ext3 has been around a lot longer than ext4 so it is proven.

On the other hand if you will be using this for large media files, another filesystem may be more suited.

Assuming one partition, ext3, and it's node is /dev/sdb1:
sudo mkfs -t ext3 -m0 /dev/sdb1

The -m0 is an optional option which doesn't reserve some space only for the root user. Since this an external drive, you don't need that spare space.

smeezekitty 02-27-2010 06:24 PM

ext3 is probably best.

pierre2 02-28-2010 07:27 AM

if you do want to partition the hdd, then try to use a usb2.0 port, as it could take a while.
its the format bit that may take some time, though.

use ext3.


All times are GMT -5. The time now is 01:45 AM.