Pagina 1 di 1

[RISOLTO] Dopo dist-upgrade problemi di avvio con grub

Inviato: sabato 18 ottobre 2008, 13:05
da Majin
Allora ho reinstallato da zero kubuntu 8.04 e riformattato buona parte delle partizioni. Ho dato i soliti comandi aptitude update, aptitude safe-upgrade ed infine aptitude dist-upgrade.
Se non che al riavvio la prime due voci del menu ( quelle relative ai nuovi kernel ) non funzionano.
Quando le selezione ottengo l'errore:

Codice: Seleziona tutto

Error 15
File not found
Fortunatamente i vecchi kernel  funzionano ancora.

Questi sono i miei file

menu,lst

Codice: Seleziona tutto

title		Ubuntu 8.04.1, kernel 2.6.24-21-generic
root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=f0accb9d-bd59-45c7-a802-10aa2c7232db ro quiet splash
initrd		/boot/initrd.img-2.6.24-21-generic
quiet

title		Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=f0accb9d-bd59-45c7-a802-10aa2c7232db ro single
initrd		/boot/initrd.img-2.6.24-21-generic

title		Ubuntu 8.04.1, kernel 2.6.24-19-generic
root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-19-generic root=UUID=f0accb9d-bd59-45c7-a802-10aa2c7232db ro quiet splash
initrd		/boot/initrd.img-2.6.24-19-generic
quiet

title		Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-19-generic root=UUID=f0accb9d-bd59-45c7-a802-10aa2c7232db ro single
initrd		/boot/initrd.img-2.6.24-19-generic

title		Ubuntu 8.04.1, memtest86+
root		(hd1,1)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title		Ubuntu 8.04.1, memtest86+ (on /dev/sda2)
root		(hd0,1)
kernel		/boot/memtest86+.bin  
savedefault
boot


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
#map		(hd0) (hd1)
#map		(hd1) (hd0)
chainloader	+1
fdisk -l

Codice: Seleziona tutto

Disco /dev/sda: 163.9 GB, 163928604672 byte
255 heads, 63 sectors/track, 19929 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000095

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         129     1036161   82  Linux swap / Solaris # swap
/dev/sda2             130        2057    15486660   83  Linux # vecchia partizione root di linux
/dev/sda3            2058       19929   143556840   83  Linux  # attuale home

Disco /dev/sdb: 41.1 GB, 41110142976 byte
255 heads, 63 sectors/track, 4998 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0x47e2d0fc

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        2422    19454683+   7  HPFS/NTFS #windozz xp
/dev/sdb2            2423        4786    18988830   83  Linux # root attuale
/dev/sdb4            4787        4998     1702890   82  Linux swap / Solaris /# swap

Da notare che, non so perche' assurdo motivo, l'hd IDE viene riconosciuto come sdb piuttosto che come hda, mentre l'hd sata e' sda.

Infine

Codice: Seleziona tutto


majin-desktop:/boot $ ll
totale 37M
drwxr-xr-x  3 root 4,0K 2008-10-18 04:59 ./
drwxr-xr-x 21 root 4,0K 2008-10-18 04:59 ../
-rw-r--r--  1 root 413K 2008-08-21 06:46 abi-2.6.24-19-generic
-rw-r--r--  1 root 413K 2008-08-25 23:00 abi-2.6.24-21-generic
-rw-r--r--  1 root  79K 2008-08-21 06:46 config-2.6.24-19-generic
-rw-r--r--  1 root  79K 2008-08-25 23:00 config-2.6.24-21-generic
drwxr-xr-x  2 root 4,0K 2008-10-18 04:59 grub/
-rw-r--r--  1 root 7,6M 2008-10-18 04:49 initrd.img-2.6.24-19-generic
-rw-r--r--  1 root 7,8M 2008-10-18 09:41 initrd.img-2.6.24-19-generic.bak
-rw-r--r--  1 root 7,6M 2008-10-18 04:59 initrd.img-2.6.24-21-generic
-rw-r--r--  1 root 7,6M 2008-10-18 04:59 initrd.img-2.6.24-21-generic.bak
-rw-r--r--  1 root 101K 2007-09-28 12:06 memtest86+.bin
-rw-r--r--  1 root 884K 2008-08-21 06:46 System.map-2.6.24-19-generic
-rw-r--r--  1 root 885K 2008-08-25 23:00 System.map-2.6.24-21-generic
-rw-r--r--  1 root 1,9M 2008-08-21 06:46 vmlinuz-2.6.24-19-generic
-rw-r--r--  1 root 1,9M 2008-08-25 23:00 vmlinuz-2.6.24-21-generic

Re: Dopo dist-upgrade problemi di avvio con grub

Inviato: sabato 18 ottobre 2008, 13:23
da giova
Prova a lanciare:

sudo dpkg --configure -a

Re: Dopo dist-upgrade problemi di avvio con grub

Inviato: sabato 18 ottobre 2008, 15:32
da Majin
Non funziona...
in aggiunta adesso non va neanche la rete.

Re: Dopo dist-upgrade problemi di avvio con grub

Inviato: sabato 18 ottobre 2008, 22:57
da Majin
Risolto  (good)

Si tratta di un problema ( a mio parere incomprensibile ) di numerazione degli hd:  all'avvio grub considera l'hd IDE come hd0, mentre una volta avviato linux hd0 rappresenta il SATA, e l'IDE diventa hd1.  Cosa assurda.

Ho risolto cambiando la voce del menu.slt in

Codice: Seleziona tutto

title		Ubuntu 8.04.1, kernel 2.6.24-21-generic
root		(hd0,1) #  prima era root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=f0accb9d-bd59-45c7-a802-10aa2c7232db ro quiet splash
initrd		/boot/initrd.img-2.6.24-21-generic
Il bello e' che le altre voci del kernel vecchio funzionano anche con root (hd1,1)  >:(