Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-08-2003, 08:33 PM   #1
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Debian Stretch
Posts: 431

Rep: Reputation: 48
How do I format a partition

What command do I use to format a partition? I want to eleiminate my second distro and will prob takes it's two parts out and replace with 1.
Old 10-08-2003, 08:47 PM   #2
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
What you probably need is fdisk (or cfdisk more user-friendly version) to create and delete partitions.

To make a filesystem (can also called as formatting) in to the partition you can use the command
mkfs -t type /dev/hdXX
Where XX is a letter of the disk + correct partition and type is the filesystem type (like ext2, ext3 or reiserfs).

Be aware! You can destroy all your data with any of the tools mentioned here if not properly used.

Last edited by ToniT; 10-08-2003 at 08:48 PM.
Old 10-09-2003, 12:02 AM   #3
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
You can also use "mkfs.fstype /dev/hdXX " to format the partition. I advise you to try reiserfs, as its performance is very good.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best HD partition format for linux Cripple Linux - Newbie 3 11-09-2005 02:51 AM
How do I format a partition? rafaelandy Slackware - Installation 13 10-17-2005 02:26 PM
should i format X partition after creat Y partition No2002 Linux - General 3 07-16-2005 11:13 AM
Format a partition ar1 Linux - General 1 01-28-2004 12:05 PM
partition w/o format Netrack Linux - General 4 01-14-2003 08:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration