Pagina 1 di 2
sudo update-grub nn riconosce win
Inviato: lunedì 22 febbraio 2010, 22:59
da stiggia
ho seguito la procedura per far riconoscere altri so a grub nella documentazione, aggiunge la stringa di windows ma, quando riavvio ,scelgo win mi dice "invalid option".
come posso fare?
posto fdisk -l in caso serva
Codice: Seleziona tutto
Disk /dev/sda: 300.1 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x88b38ce5
Device Boot Start End Blocks Id System
/dev/sda1 * 1 36235 291057606 7 HPFS/NTFS
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ebadb
Device Boot Start End Blocks Id System
/dev/sdb1 * 60553 60801 2000092+ 82 Linux swap / Solaris
/dev/sdb2 1 1824 14651248+ 83 Linux
/dev/sdb3 1825 3648 14651280 83 Linux
/dev/sdb4 3649 60552 457081380 5 Extended
/dev/sdb5 3649 60552 457081348+ 83 Linux
Partition table entries are not in disk order
Re: sudo update-grub nn riconosce win
Inviato: lunedì 22 febbraio 2010, 23:05
da lgsalvati
Non vedo partizioni ntfs. Ma riesci ad accedere alla partizione win da Computer?
Re: sudo update-grub nn riconosce win
Inviato: lunedì 22 febbraio 2010, 23:07
da stiggia
Codice: Seleziona tutto
Device Boot Start End Blocks Id System
/dev/sda1 * 1 36235 291057606 7 HPFS/NTFS
è un intero disco
si ho spostato anche alcuni file
Re: sudo update-grub nn riconosce win
Inviato: lunedì 22 febbraio 2010, 23:13
da Petr
Ciao!
Quale versione di K/Ubuntu?
Dai il comando
e vedi se trova win
Re: sudo update-grub nn riconosce win
Inviato: lunedì 22 febbraio 2010, 23:29
da stiggia
Codice: Seleziona tutto
stiggia@stiggia-desktop:~$ sudo os-prober
[sudo] password for stiggia:
stiggia@stiggia-desktop:~$
come aveva fatto l'altra volta.
ho la 9.10 con KDE 9.10
win l'ho reinstallato da poco e ho ripristinato grub.
Re: sudo update-grub nn riconosce win
Inviato: lunedì 22 febbraio 2010, 23:35
da Petr
Non ce l'hai installato. Installalo
ridai il comando e vedi se lo trova.
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 7:46
da patel
posta il risultato di cat /boot/grub/device.map
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 11:28
da stiggia
Codice: Seleziona tutto
stiggia@stiggia-desktop:~$ cat /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 13:21
da patel
è tutto a posto, posta allora cat /boot/grub/grub.cfg
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 13:34
da stiggia
Codice: Seleziona tutto
stiggia@stiggia-desktop:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
insmod tga
if background_image /boot/grub/TulipStair_QueensHouse_Greenwich.tga ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/white
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-19-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro quiet splash
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro single
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro single
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro quiet splash
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro single
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 7e7d1c97-e828-4ef8-b91c-a5d5754780e4
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=7e7d1c97-e828-4ef8-b91c-a5d5754780e4 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/11_Windows ###
menuentry "Windows XP" {
set root=(hd0,1)
chainloader +1
}
### END /etc/grub.d/11_Windows ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 13:38
da patel
sembra tutto corretto, al posto tuoi installerei il grub1
http://www.chicchedicala.it/2009/12/09/ ... in-ubuntu/
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 13:45
da stiggia
??? la cosa strana è che win l'ho reinstallato e prima andava. puo essere che ho girato l'ordine di boot dei due dischi dal bio e ho installato grub su l'altro hd di conseguenza e fa macelli?
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 14:27
da patel
si che può essere, grub2 è molto sensibile a queste cose
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 14:47
da stiggia
e quindi?? cosa faccio?
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 14:49
da patel
ritorna sui tuoi passi, oppure grub1
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 16:56
da stiggia
ho seguito il la guida a grub 1 ma mi si impalla al punto #2.
Codice: Seleziona tutto
stiggia@stiggia-desktop:~$ sudo grub-install hd0
Searching for GRUB installation directory ... found: /boot/grub
se riavvio il pc è la fine (rotfl)
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 17:25
da patel
non ho capito l'errore, se non funziona
Re: sudo update-grub nn riconosce win
Inviato: martedì 23 febbraio 2010, 17:58
da stiggia
ha finito mezz'ora dopo
Codice: Seleziona tutto
stiggia@stiggia-desktop:~$ sudo grub-install hd0
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to hd0 as (hd0)...
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'.
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
stiggia@stiggia-desktop:~$
Re: sudo update-grub nn riconosce win
Inviato: mercoledì 24 febbraio 2010, 13:03
da stiggia
ho installato grub1 ma mi trovo nella medesima situazione. Anzi quando riavvio mi trovo la stessa schermata con lo stesso sfondo. nn c'è un modo di rimuovere tutti i possibili grub da tutti i dischi a macchina accesa e poi metterne uno solo al posto giusto??
Re: sudo update-grub nn riconosce win
Inviato: mercoledì 24 febbraio 2010, 13:11
da patel
prova a cambiare l'ordine di boot, comunque la soluzione migliore e più sicura è installare i sistemi operativi nello stesso disco ed utilizzare l'altro come archivio