Computing.Net > Forums > Linux > Linux format disk

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Linux format disk

Reply to Message Icon

Name: Karl
Date: October 9, 2002 at 04:08:52 Pacific
OS: Liux
CPU/Ram: 500Mhz 32Mb RAM
Comment:

What is the easiest way to format a hard disk in Linux. What command should I use?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Trip
Date: October 9, 2002 at 05:20:39 Pacific
Reply:

First you have to know what device it is, eg
/dev/hda1 for primary master partition1,
/dev/hdd2 for secondary slave partition2,
etc.

Use fdisk to create partitions if you
haven't already.

The format command varies depending on the
filesystem you want to use and partition you
want to format:
//ext2
mke2fs /dev/hda1

//ext3
mke2fs -j /dev/hda1

//xfs
mkfs.xfs /dev/hda1

//ReiserFS
mkreiserfs /dev/hda1


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Linux format disk

A linux boot disk designed to automatica www.computing.net/answers/linux/a-linux-boot-disk-designed-to-automatica/4665.html

how to boot linux using linux boot disk www.computing.net/answers/linux/how-to-boot-linux-using-linux-boot-disk/9920.html

corel linux boot disk www.computing.net/answers/linux/corel-linux-boot-disk/4220.html