Handbook:Alpha/Blocks/Disks/de

Slices
Although it is theoretically possible to use a full disk to house a Linux system, this is almost never done in practice. Instead, full disk block devices are split up in smaller, more manageable block devices. On Alpha systems, these are called slices.

Using fdisk to partition a disk (SRM only)
The following parts explain how to create the example slice layout for the SRM:

Change the slice layout according to personal preference.

Identifying available disks
To figure out what disks are running in the system, use the following commands:

For IDE disks:

For SCSI disks:

The output will show what disks were detected and their respective entry. In the following parts we assume that the disk is a SCSI disk on.

Now fire up fdisk:

Deleting all slices
If the hard drive is completely blank, then first create a BSD disklabel.

We start with deleting all slices except the 'c'-slice (a requirement for using BSD disklabels). The following shows how to delete a slice (in the example we use 'a'). Repeat the process to delete all other slices (again, except the 'c'-slice).

Use to view all existing slices. is used to delete a slice.

After repeating this process for all slices, a listing should show something similar to this:

Creating the swap slice
On Alpha based systems there is no need for a separate boot slice. However, the first cylinder cannot be used as the aboot image will be placed there.

We will create a swap slice starting at the third cylinder, with a total size of 1 GB. Use to create a new slice. After creating the slice, we will change its type to (one), meaning swap.

After these steps a layout similar to the following should be shown:

Creating the root slice
We will now create the root slice, starting from the first cylinder after the swap slice. Use the command to view where the swap slice ends. In our example, this is at 1003, making the root slice start at 1004.

Another problem is that there is currently a bug in  making it think the number of available cylinders is one above the real number of cylinders. In other words, when asked for the last cylinder, decrease the cylinder number (in this example: 5290) with one.

When the slice is created, we change the type to 8, for ext2.

The resulting slice layout should now be similar to this:

Save the slice layout and exit
Exit the  application by typing. This will also save the slice layout.

Using fdisk to partition the disk (ARC/AlphaBIOS only)
The following parts explain how to create the example slice layout for ARC/AlphaBIOS:

Change the partition layout according to personal preference.

Identifying the available disks
To figure out what disks are running, use the following commands:

For IDE disks:

For SCSI disks:

From this output it should be easy to see what disks were detected and their respective entry. In the following parts we assume that the disk is a SCSI disk on.

Now fire up fdisk:

Deleting all partitions
If the hard drive is completely blank, then first create a DOS disklabel.

We start with deleting all partitions. The following shows how to delete a partition (in the example we use '1'). Repeat the process to delete all other partitions.

Use to view all existing partitions. is used to delete a partition.

Creating the boot partition
On Alpha systems which use MILO to boot, we have to create a small vfat boot partition.

Creating the swap partition
We will create a swap partition with a total size of 1 GB. Use to create a new partition.

After these steps a layout similar to the following is shown:

Creating the root partition
We will now create the root partition. Again, just use the command.

After these steps a layout similar to the following should be shown:

Save the partition layout and exit
Save the changes made in  by typing.

Now that the partitions are created, continue with Creating filesystems.