Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to format a partion?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Abedel_hady
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2004
Posts: 139

PostPosted: Mon Sep 20, 2004 3:23 pm    Post subject: How to format a partion? Reply with quote

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
View user's profile Send private message
radonsg
Apprentice
Apprentice


Joined: 26 Jun 2004
Posts: 257
Location: Singapore

PostPosted: Mon Sep 20, 2004 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Sep 20, 2004 3:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Sep 20, 2004 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Sep 20, 2004 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Mon Sep 20, 2004 4:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Mon Sep 20, 2004 4:36 pm    Post subject: Reply with quote

radonsg wrote:
format using fdisk.
It all inside the documentation.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1


Moved to Duplicate Threads.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum