Pagina 1 di 2
[RISOLTO] - [Ubuntu 10.10 + WinXp] Grub error
Inviato: sabato 27 novembre 2010, 17:30
da bobbetto
Salve a tutti, so che ci sono svariati topic che trattano il problema ma non essendo proprio uguale... chiedo aiuto
Ho installato prima win xp e poi Ubuntu 10.10. Dopo aver completato l'installazione di ubuntu al riavvio mi compariva la console di grub. seguendo qualche guida ho cercato di ripristinarlo ma senza riuscirci. Adesso ciò che mi appare all'avvio è :
Grub Loading Stage 1.5.
Error 17
Cosa devo fare per visualizzare correttamente grub e scegliere con quale so fare il boot ?
ecco fdisk -l
Codice: Seleziona tutto
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdddfdddf
Device Boot Start End Blocks Id System
/dev/sda1 * 1 7649 61440088+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 7649 17848 81920160 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 17848 18334 3905537 5 Extended
/dev/sda4 18334 19458 9023488 83 Linux
/dev/sda5 17848 18334 3905536 82 Linux swap / Solaris
incollo anche menu.lst
Codice: Seleziona tutto
## ## End Default Options ##
title Ubuntu 10.10, kernel 2.6.35-22-generic
root (hd0,3)
kernel /boot/vmlinuz-2.6.35-22-generic root=UUID=94f8873e-a192-47d1-8a$
initrd /boot/initrd.img-2.6.35-22-generic
quiet
title Windows XP
root (hd0,0)
makeactive
chainloader +1
title Ubuntu 10.10, kernel 2.6.35-22-generic
root (hd0,3)
kernel /boot/vmlinuz-2.6.35-22-generic root=UUID=94f8873e-a192-47d1-8a$
initrd /boot/initrd.img-2.6.35-22-generic
title Chainload into GRUB 2
root 94f8873e-a192-47d1-8a58-7718fc4bac2f
kernel /boot/grub/core.img
title Ubuntu 10.10, memtest86+
uuid 94f8873e-a192-47d1-8a58-7718fc4bac2f
kernel /boot/memtest86+.bin
quiet
forse qualcosa di sbagliato nel boot/grub/menu.lst...
Re: [Ubuntu 10.10 + WinXp] Grub error 17
Inviato: sabato 27 novembre 2010, 17:48
da patel
controlla bene quale vers. di Ubuntu stai installando, la 10.10 non ha il menu.lst e non da quel tipo di errore.
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: domenica 28 novembre 2010, 12:33
da bobbetto
Si, la versione è la 10.10....sono un perfetto idiota. ::) ho semplicemente seguito una guida sbagliata e ho creato un file menu.lst che in pratica non serviva a niente.
adesso però sono al punto di partenza nel senso che all'avvio non riesco a selezionare nessun so a causa dell'errore :
unknown filesystem
ho seguito quanto detto in questo reply :
http://forum.ubuntu-it.org/viewtopic.ph ... 6#p3158256
considerando /dev/sda4 anzichè /sda6
ma al riavvio il problema si ripresenta... volevo tentare un fixmbr da windows ma ho paura di compromettere la tabella delle partizioni.
EDIT: con fixmbr sono riuscito a far partire windows.... ma adesso nn mi parte grub...
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: domenica 28 novembre 2010, 14:50
da bobbetto
se riseguo nuovamente la procedura mi restituisce nuovamente l'errore : unknown filesystem ... >:(
EDIT : ho provato a riformattare le partizioni sda4 e sda5... ma niente appena riavvio mi da sempre lo stesso problema.
che devo fare ? pls :'(
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: domenica 28 novembre 2010, 16:42
da patel
il grub si ripristina con
http://wiki.ubuntu-it.org/Amministrazio ... Ripristino, al primo errore fermati e copia ed incolla qui tutto quello che vedi a terminale
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: domenica 28 novembre 2010, 17:23
da bobbetto
Ho eseguito il ripristino di grub.Nessun errore, va tutto liscio. Al riavvio sempre : Error: unknown filesystem. grub rescue>
Non ho detto che sto facendo tutto su un notebook hp6220 (non so se centri qualcosa) ???
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: domenica 28 novembre 2010, 17:31
da badìl
Scusa ma se hai formattato è ovvio che dovrai reinstallare.
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 0:38
da bobbetto
l'ho fatto , cioè dopo aver fixato l'mbr con il cd di windows, ho installato ubuntu rifacendo le partizioni e non appena conclusa l'installazione ho riavuto l'errore unknown filesystem e quindi ho cercato di ripristinare grub...
sono sempre al punto di partenza...
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 1:02
da badìl
Entra in live, monta la partizione di ubuntu e posta i file /boot/grub/grub.cfg e /etc/fstab.
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 9:29
da bobbetto
intanto grazie per l'interessamento, ecco i file :
Codice: Seleziona tutto
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env rec$
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-lin$
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=447666b7-ecf5-47b2-9b$
initrd /boot/initrd.img-2.6.35-22-generic
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu -$
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=447666b7-ecf5-47b2-9b4f$
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 2cecc029ecbfeb6a
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
fstab:
Codice: Seleziona tutto
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda3 during installation
UUID=447666b7-ecf5-47b2-9b4f-9977e39349c2 / ext4 errors=remount-$
/dev/sda4 none swap sw 0 0
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 10:16
da patel
ripeto l'invito, il tuo grub.cfg è sbagliato, lascia giudicare a noi se il ripristino di grub va tutto liscio
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 11:02
da bobbetto
Scusate. Non volevo essere presuntuoso quando ho scritto "va tutto liscio" l'ho scritto solamente perchè da terminale non mi da nessun errore.
Incollo tutta la procedura, in cui ho saltato la parte relativa alla partizione di /boot separata (non credo sia il mio caso)
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdddfdddf
Device Boot Start End Blocks Id System
/dev/sda1 * 1 7649 61440088+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 7649 17848 81920160 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 17848 19064 9764864 83 Linux
/dev/sda4 19064 19458 3164160 82 Linux swap / Solaris
ubuntu@ubuntu:~$ sudo mount /dev/sda3 /mnt
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/proc
ubuntu@ubuntu:~$ sudo mount --bind /sys /mnt/sys
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# grub-install /dev/sda
Installation finished. No error reported.
root@ubuntu:/# update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
done
root@ubuntu:/# exit
exit
ubuntu@ubuntu:~$ cd ~
ubuntu@ubuntu:~$ sudo umount /mnt/dev
ubuntu@ubuntu:~$ sudo umount /mnt/proc
ubuntu@ubuntu:~$ sudo umount /mnt/sys
ubuntu@ubuntu:~$ sudo umount /mnt/
ubuntu@ubuntu:~$
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 11:47
da frenz79
Ciao a tutti...ne approfitto...e mi inserisco nella discussione avendo un problema simile!
Nel mio caso ho installato prima Ubuntu 10.10 64bit..e successivamente XP, leggendo qua e la mi aspettavo che ubuntu poi non ripartisse...però installare grub sembrava una passeggiata (almeno da quanto leggevo)!
Purtroppo non è stato così....e ieri sera alla fine ho gettato la spugna!
Nel mio caso ho ubuntu su sda1 e XP su sda3...
ho seguito questa guida:
http://wiki.ubuntu-it.org/AmministrazioneSistema/Grub/Ripristino
ma i comandi :
Codice: Seleziona tutto
grub-install /dev/sda
grub-install --recheck /dev/sda
si lamentano di /dev/sda
In altri forum ho trovato questa 'soluzione':
Codice: Seleziona tutto
grub
root (hd0,?) (? being where your controlling distro is)
setup (hd0)
quite
..ma niente da fare!
Riuscite a darmi una mano voi?
Grazie,
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 11:58
da patel
bobbetto ha scritto:
Scusate. Non volevo essere presuntuoso quando ho scritto "va tutto liscio" l'ho scritto solamente perchè da terminale non mi da nessun errore.
in effetti è tutto corretto, se continui ad avere problemi prova queste modifiche:
alla riga
togli il # iniziale, salvi e ripeti
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 12:00
da frenz79
...un dettaglio..ho installato ubuntu 10.10 64bit ..ma sto usando una live a 32bit...può essere questa la causa di tutto?
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 14:02
da bobbetto
patel ha scritto:
bobbetto ha scritto:
Scusate. Non volevo essere presuntuoso quando ho scritto "va tutto liscio" l'ho scritto solamente perchè da terminale non mi da nessun errore.
in effetti è tutto corretto, se continui ad avere problemi prova queste modifiche:
alla riga
togli il # iniziale, salvi e ripeti
Ho fatto esattamente come hai detto. L'output del update-grub è identico al precedente:
Codice: Seleziona tutto
root@ubuntu:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
done
root@ubuntu:/# exit
exit
Al riavvio di grub neanche l'ombra... Solo che adesso non è stato necessario rifixare l'mbr... ma è partito direttamente Windows...
se provassi a cambiare boot manager ? si può fare ? (poi al come si pensa :P)
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 14:28
da patel
Entra in live, monta la partizione di ubuntu e riposta il file /boot/grub/grub.cfg
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 17:47
da bobbetto
Codice: Seleziona tutto
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
linux /boot/vmlinuz-2.6.35-22-generic root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=/dev/sda3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 447666b7-ecf5-47b2-9b4f-9977e39349c2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 2cecc029ecbfeb6a
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 17:50
da patel
ora il grub.cfg è corretto, prova a cambiare da bios il disco di boot
Re: [Ubuntu 10.10 + WinXp] Grub error
Inviato: lunedì 29 novembre 2010, 20:11
da bobbetto
cioè first boot HD ? se intendi questo ho appena provato e non cambia nulla, in quanto non appare nessuna schermata del grub... sembra che qualcosa lo inibisca.