View previous topic :: View next topic |
Author |
Message |
Abedel_hady Tux's lil' helper
Joined: 12 Jul 2004 Posts: 139
|
Posted: Mon Sep 20, 2004 3:23 pm Post subject: How to format a partion? |
|
|
Now, I have agentoo 2004.1 and for some problems I want to format the Linux partion and install it again.
How I can format the partion ??
What is the format command and it's syntx? _________________ /aeh |
|
Back to top |
|
|
radonsg Apprentice
Joined: 26 Jun 2004 Posts: 257 Location: Singapore
|
Posted: Mon Sep 20, 2004 3:49 pm Post subject: |
|
|
format using fdisk.
It all inside the documentation.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1 _________________ Athlon64 3000+ on a MSI Neo2 Platinum (nVidia nForce3)
1 Sata Hitachi (HGST) 7K250
1 Sata Samsung SpinPoint
2 x 512MB TwinMos DDR400 Dual Channel
Geforce 5200 |
|
Back to top |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Mon Sep 20, 2004 3:50 pm Post subject: |
|
|
It depends on the filesystem you plan to use. For reiserfs, it would be
Code: | mkreiserfs /dev/hd? |
Fdisk does not format the partition. It only changes its size, number, ... in the partition table. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Mon Sep 20, 2004 3:51 pm Post subject: |
|
|
oumpah-pah wrote: | It depends on the filesystem you plan to use. For reiserfs, it would be
Code: | mkreiserfs /dev/hd? |
|
Note: do not actually copy that code directly, or you will overwrite all your partitions with reiserfs... _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Mon Sep 20, 2004 4:07 pm Post subject: |
|
|
That's right, I should have warned you. In fact, the command is not even correct. With it, you would create a filesystem on the whole disk, which you sure do not want. To create a filesystem on the first partition of the first hard disk, you should use:
Code: | mkreiserfs /dev/hda1 |
|
|
Back to top |
|
|
inode77 Veteran
Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Mon Sep 20, 2004 4:13 pm Post subject: |
|
|
It's like in DOS/Windows fdisk is used for partitioning and the mkfs.x (x => reiserfs, ext3, ext2, jfs, xfs, vfat......) commands are for formating the partition with a filesystem.
To make sure you format the correct partition use "fdisk -l /dev/hda" to see a list of your partitions. |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Mon Sep 20, 2004 4:36 pm Post subject: |
|
|
Moved to Duplicate Threads. |
|
Back to top |
|
|
|