back

Da root eseguiamo una rapida verifica con fdisk:

# fdisk -l
Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/hda doesn't contain a valid partition table

Disk /dev/hdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000364da

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1          24      192748+  83  Linux
/dev/hdb2              25        1044     8193150   83  Linux

Disk /dev/dm-0: 3997 MB, 3997171712 bytes...
...

Dal precedente comando abbiamo verificato che, in questo caso, le partizioni salvate si trovano sull'hdb mentre l'Hard Disk vergine (senza partizioni) è l'hda. Ripristiniamo su quest'ultimo le due partizioni iniziali. Per fare ciò dobbiamo:

  1. avviare l'utility fdisk su /dev/hda;
  2. aggiungere una prima partizione di 200M;
  3. aggiungere una seconda partizione primaria su tutto lo spazio disponibile;
  4. assegnare alla seconda la descrizione di tipo di partizione LVM.
# fdisk /dev/hda
The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9f775ea0

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): o
Building a new DOS disklabel with disk identifier 0x77fb1f68.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1044, default 1): 
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044): +200M
back