Pagina 1 di 1
[Risolto] problemi grub (credo)!!!
Inviato: domenica 8 marzo 2009, 18:08
da vago63
ho istallato xfce su pentium III, su un HD di 20 Gb e dopo ho deciso di aggiungere un altro HD da 10 Gb con Windows installato. Ho settato L'HD con xfce come master e l'altro con windows come slave e vorrei che alla schermata di avvio mi apparissero a video le tipiche righe che permettono di selezionare il OS con cui avviare, qualche buon anima sa dirmi come fare?? :'(
Re: problemi grub (credo)!!!
Inviato: domenica 8 marzo 2009, 18:09
da streetcross
ovviamente devi inserre le voci per windows, posta
Re: problemi grub (credo)!!!
Inviato: domenica 8 marzo 2009, 18:24
da vago63
Grazie dell'aiuto streetcross!!
questo il primo comando:
Codice: Seleziona tutto
valter@valter-PIII:~$ sudo fdisk -l
[sudo] password for valter:
Disco /dev/sda: 20.5 GB, 20547841536 byte
255 testine, 63 settori/tracce, 2498 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0xeb2ceb2c
Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 1 2498 20065153+ 5 Esteso
/dev/sda5 1 1216 9767457 83 Linux
/dev/sda6 1217 1398 1461883+ 82 Linux swap / Solaris
/dev/sda7 1399 2498 8835718+ b W95 FAT32
Sembra che non veda l'HD con windows!!!
e questo è il secondo:
Codice: Seleziona tutto
valter@valter-PIII:~$ cat /boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa
## default grub root device
## e.g. groot=(hd0,0)
# groot=454abdb4-c2dd-4f4c-95c3-4e2da652fa35
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-11-generic
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
valter@valter-PIII:~$
...fammi capire streetcross. >:(
Re: problemi grub (credo)!!!
Inviato: domenica 8 marzo 2009, 18:25
da streetcross
infatti l'hd non è rilevato, assicurati che il bos lo veda e soprattutto che sia abilitato

Re: problemi grub (credo)!!!
Inviato: domenica 8 marzo 2009, 18:45
da vago63
grazie!!! adesso provo subito a riavviare............
Re: problemi grub (credo)!!!
Inviato: domenica 8 marzo 2009, 18:54
da streetcross
di niente in caso facci sapere il modello
Re: problemi grub (credo)!!!
Inviato: domenica 8 marzo 2009, 20:15
da vago63
ciao streetcross, ho riaggiustato il tutto, ho riavviato e questa volta il bios vede tutt'e due gli HD, ma c'è solo xfce!
comunque questi sono gli output dei comandi:
Codice: Seleziona tutto
valter@valter-PIII:~$ sudo fdisk -l
[sudo] password for valter:
Disco /dev/sda: 20.5 GB, 20547841536 byte
255 testine, 63 settori/tracce, 2498 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0xeb2ceb2c
Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 1 2498 20065153+ 5 Esteso
/dev/sda5 1 1216 9767457 83 Linux
/dev/sda6 1217 1398 1461883+ 82 Linux swap / Solaris
/dev/sda7 1399 2498 8835718+ b W95 FAT32
Disco /dev/sdb: 10.2 GB, 10242892800 byte
255 testine, 63 settori/tracce, 1245 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x7ae3726c
Dispositivo Boot Start End Blocks Id System
/dev/sdb1 * 1 1244 9992398+ 7 HPFS/NTFS
/dev/sdb2 1245 1245 8032+ 5 Esteso
valter@valter-PIII:~$
e l'altro:
Codice: Seleziona tutto
valter@valter-PIII:~$ cat /boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa
## default grub root device
## e.g. groot=(hd0,0)
# groot=454abdb4-c2dd-4f4c-95c3-4e2da652fa35
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-11-generic
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
valter@valter-PIII:~$
...ti prego di farmi sapere!
A presto.
val
Re: problemi grub (credo)!!!
Inviato: domenica 8 marzo 2009, 20:38
da robytrevi
Devi editare il menu.lst
Prima fai una copia di backup, per sicurezza,
Poi apri quel file con privilegi di root
e aggiungi in fondo
Codice: Seleziona tutto
title Other operating systems:
root
#righe per windows
title Windows
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
salva ed esci
Re: problemi grub (credo)!!!
Inviato: lunedì 9 marzo 2009, 9:20
da streetcross
esatto e modifica anche questa parte
Codice: Seleziona tutto
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
rendendola come questa che ti ho postato, puoi cambiare il timeout ma non andare sotto i 2/3 secondi se vuoi avere il tempo di scegliere
se non abiliti questa riga non visualizzi comunque la scelta
Re: problemi grub (credo)!!!
Inviato: lunedì 9 marzo 2009, 16:00
da vago63
grazie streetcross e grazie anche a robytrevi: siete impagabili!!!
stasera a casa proverò il tutto e vi farò sapere!!!...... se funzionerà (ne sono certo!), chiuderò questa discussione con risolto!
Grazie ancora!
val
Re: problemi grub (credo)!!!
Inviato: mercoledì 11 marzo 2009, 11:30
da streetcross
ok facci sapere, ciao

Re: problemi grub (credo)!!!
Inviato: sabato 21 marzo 2009, 10:07
da vago63
ciao ragazzi, a distanza di tempo ho apportato le modifiche consigliatemi ma la schermata di avvio del sistema non mi mostra le opzioni tra cui windows!!!!
Ho editato menu.lst:
Codice: Seleziona tutto
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa
## default grub root device
## e.g. groot=(hd0,0)
# groot=454abdb4-c2dd-4f4c-95c3-4e2da652fa35
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-11-generic
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=454abdb4-c2dd-4f4c-95c3-4e2da652fa35 ro xforcevesa single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 454abdb4-c2dd-4f4c-95c3-4e2da652fa35
kernel /boot/memtest86+.bin
quiet
title Other operating systems:
title Windows
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
### END DEBIAN AUTOMAGIC KERNELS LISTv
ma ancora non funziona!!!
se qualcuno mi sa dire...................
val
Re: problemi grub (credo)!!!
Inviato: sabato 21 marzo 2009, 10:13
da robytrevi
Metti un # pure davanti alla scritta
hiddenmenu
(sotto a timeout)
nel menu.lst
Re: problemi grub (credo)!!!
Inviato: sabato 21 marzo 2009, 11:54
da streetcross
altrimenti devi premere Esc quando il grub sta caricando (meno pratico)