« QuirksMode Javascript Tutorials | Main | Running JSP Through Apache with mod_jk2 »
May 08, 2006
Partitioning and formatting a RAID disk post installation under Linux
You need to use the 'fdisk' command to create the partitions, for example:
- fdisk /dev/sda
- Type n
to create the new partition.
- Select Primary
- Set up the partition size and accept the default start cylinder size then enter the size you wish to make the partition.
- Type p
to review the partition table
- If everything is to your liking type w
to write the changes and exit fdisk
- Reboot the system so the partition table is re-read.
- Then create the filesystem, for example, to create an ext 3 filesystem:
- Once the filesystem is created you need to mount it.
- Create a mount point:
mkdir /storage (or whatever)
- Now mount the new disk:
mount /dev/sda1 /storage
- Copy some files to the new mount point to verify it's working
If you want the new disk to come up on every reboot you need to make a label and add an entry to /etc/fstab
:
- run the following command: umount /storage
- then run: e2label /dev/sda1 /storage
- open /etc/fstab
in your preferred text editor and add the following line:
LABEL=/storage /storage ext3 defaults 1 2
- Save /etc/fstab
- Mount the new filesystem again by running:
mount /storage
Tags: Linux
Posted by pj at May 8, 2006 04:10 PM