Handbook:Alpha/Blocks/Disks/pt-br

Slices (fatias)
Apesar de ser teoricamente possível usar um disco inteiro para alojar um sistema Linux, isso quase nunca é feito na prática. Em vez disso, dispositivos de blocos inteiros são quebrados em dispositivos de blocos menores e mais gerenciáveis. Em sistemas Alpha são chamados de slices (fatias).

Usando fdisk para particionar um disco (SRM apenas)
As partes a seguir mostram como criar um layout de slices para o SRM:

Altere o layout das slices de acordo com suas preferências.

Identificando os discos disponíveis
Para descobrir quais discos estão disponíveis no sistema, use os seguintes comandos:

Para discos IDE:

Para discos SCSI:

A saída irá mostrar quais discos foram detectados e suas respectivas entradas no. Nas partes seguintes assumiremos que o disco é um disco SCSI em.

Agora rode o fdisk:

Removendo todas as slices
Se o disco rígido estiver totalmente em branco, primeiro crie uma etiqueta de disco (disklabel) BSD.

Começamos apagando todas as slices exceto a 'c' (requerida pela disklabel BSD). Abaixo é mostrado como apagar uma slice (no exemplo usamos a 'a'). Repita o processo para apagar todas as outras slices (novamente, exceto a 'c').

Use para ver as todas as slices existentes. é usado para apagar uma slice.

Depois de repetir esse passos para todas as slices, uma listagem deve mostrar algo similar a:

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.