Partitioning a Cobalt Raq Mini-Howto
Partitioning the System drive

List harddrives:
fdisk -l

Select a disk with fdisk:
fdisk /dev/hda

Delete first partition:

(and so on)

Quit out of fdisk and save (destroys data!):

Create new partitions:
fdisk /dev/hda
(follow instructions - eg. for a 40 GB disk create a first primary partition with 39GB and then a second primary partition with 1 GB for later use as swap)

Examples to initialize partitions:
mke2fs /dev/hda1
mkswap /dev/hda2

Creates ext2 filesystem on first partition and swap on second.

mke2fs -j /dev/hda1 or mkfs -t ext3 /dev/hda1 would format with ext3. But as far as I know this is not supported by the Cobalt RAQ machines!

Check partition for errors:
e2fsck /dev/hda1

Partitioning large SATA drives

As written in [art=235]this article[/art], Cobalt's can be used with large disks using PCI SATA controllers.
For partitions that have to be larger than 2TB, e.g. 3TB, use parted instead of fdisk (fdisk does not support "GPT" which is required for partitions larger than 2TB):
apt-get install parted

parted /dev/sda
mklabel gpt
mkpart primary 1 -1

Format the partition:

mkfs.ext4 /dev/sda1

This additional command removes the 5% disk reservation for root which is not needed as this is no system partition:

tune2fs -r 0 /dev/sda1

More on this:
admin / Dec 03, 2010
2004 - 2019 /