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:
d
1

(and so on)

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

Create new partitions:
fdisk /dev/hda
n
(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)
w

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
print
quit


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:
- http://linux.goeszen.com/format-a-large-3tb-drive-under-debian-and-mount-it.html
- http://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html
- http://icesquare.com/wordpress/how-to-install-a-3tb-drive-on-linux/
 
admin / Dec 03, 2010
   
 
 
Login: 
Pass: 
 
 
     
     
2004 - 2019 / lookass.ch
makememad@lookass.ch