I use cfdisk to partition my disks. It comes with Gentoo but it can be installed on any Linux distro I think. It will work on Redhat just like any other distro. You can use fdisk but it makes my brain hurt when I use it. I just never did get that program. Almost like vi for a editer.
That is for the first drive. hdb for second drive, etc.
As to formating the disks, that depends on what file system you want to use. Here is some info pasted from the Gentoo install guide:
Quote:
Filesystems?
The Linux kernel supports various filesystems. We'll explain ext2, ext3, ReiserFS, XFS and JFS as these are the most commonly used filesystems on Linux systems.
ext2 is the tried and true Linux filesystem but doesn't have metadata journaling, which means that routine ext2 filesystem checks at startup time can be quite time-consuming. There is now quite a selection of newer-generation journaled filesystems that can be checked for consistency very quickly and are thus generally preferred over their non-journaled counterparts. Journaled filesystems prevent long delays when you boot your system and your filesystem happens to be in an inconsistent state.
ext3 is the journaled version of the ext2 filesystem, providing metadata journaling for fast recovery in addition to other enhanced journaling modes like full data and ordered data journaling. ext3 is a very good and reliable filesystem. It has an additional hashed b-tree indexing option that enables high performance in almost all situations. You can enable this indexing by adding -O dir_index to the mke2fs command. In short, ext3 is an excellent filesystem.
ReiserFS is a B*-tree based filesystem that has very good overall performance and greatly outperforms both ext2 and ext3 when dealing with small files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is solid and usable as both general-purpose filesystem and for extreme cases such as the creation of large filesystems, the use of many small files, very large files and directories containing tens of thousands of files.
|
Here is the commands to use:
Quote:
Filesystem Creation Command
ext2 mke2fs
ext3 mke2fs -j
reiserfs mkreiserfs
|
It usually goes something like this:
Code:
mke2fs /dev/hda1
mke2fs -j /dev/hda1
mkreiserfs /dev/hda1
Where a is the primary master drive and the 1 is the first partition. cfdisk should tell what they are when you partition the drive. If you use reiserfs then just use the proper command and the proper device.
That said, I usually boot from the CD to do this. If the drive is not mounted you do not usually have to reboot for the partition table to be written and re-read. I personally use reiserfs and have no trouble as of yet. I use a 2.6 kernel though. My /boot partition is ext2 because grub likes it that way. It works, I'm not complaining.
Oh, if you need to make one a swap partition, mkswap and then the partition info. Don't forget to add it to fstab so it will use it though.
I hope that helps a little.
Later