[ubuntu-it] grub2 error 22
Roby Pozzato
roberto a robertopozzato.it
Ven 5 Mar 2010 09:29:16 GMT
Ho un pc con 9.10 server che uso per i backup, installato da qualche
settimana e fino a pochi giorni fa funzionante senza problemi. Nessuna
applicazione "strana": LAMP, postfix, backuppc e poco altro.
Alcuni giorni fa lo accendo e inopinatamente mi si blocca all'avvio,
Grub error 22, che sappiamo essere "No such partition. This error is
returned if a partition is requested in the device part of a device-
or full file name which isn't on the selected disk."
Già qui mi chiedo che gli piglia, che fino al giorno prima partiva e
non mi risulta di aver fatto niente sulle partizioni. Comunque prendo
un liveCD e tento un ripristino seguendo le indicazioni su
http://wiki.ubuntu-it.org/AmministrazioneSistema/Grub/Ripristino.
Questo l'fdisk:
root a ubuntu:~# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x35a135a0
Device Boot Start End Blocks Id System
/dev/sda1 1 243 1951866 83 Linux
/dev/sda2 * 244 304 489982+ 83 Linux
/dev/sda3 305 19457 153846472+ 83 Linux
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00019a28
Device Boot Start End Blocks Id System
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d932a
Device Boot Start End Blocks Id System
/dev/sdc1 1 121601 976760001 fd Linux raid autodetect
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006c291
Device Boot Start End Blocks Id System
/dev/sdd1 1 121601 976760001 fd Linux raid autodetect
sda1 è la swap, sda2 è /boot e sda3 è /; sdb è vuoto, sdc ed sdd sono
in raid, montato in /var
Dopo aver sbloccato le partizioni criptate e assemblato il raid eseguo:
root a ubuntu:/# mount /dev/mapper/sda3_crypto /mnt
root a ubuntu:/# mount /dev/mapper/md0_crypto /mnt/var
root a ubuntu:~# mount /dev/sda2 /mnt/boot
root a ubuntu:~# mount --bind /dev /mnt/dev
root a ubuntu:~# mount --bind /proc /mnt/proc
root a ubuntu:~# mount --bind /sys /mnt/sys
root a ubuntu:~# chroot /mnt
root a ubuntu:/# grub-install /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(hd3) /dev/sdd
root a ubuntu:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-19-generic-pae
Found initrd image: /boot/initrd.img-2.6.31-19-generic-pae
Found linux image: /boot/vmlinuz-2.6.31-14-generic-pae
Found initrd image: /boot/initrd.img-2.6.31-14-generic-pae
Found memtest86+ image: /memtest86+.bin
done
root a ubuntu:/# exit
exit
Quindi mi sembra tutto a posto. Riavvio ma non cambia nulla, Error 22
è sempre lì che mi aspetta. Ho sbagliato qualcosa? Qualcuno ha qualche
idea?
Grazie anticipate, come sempre.
--
Roby
Maggiori informazioni sulla lista
ubuntu-it