modificare Grub

Discussioni sui sistemi operativi Unix like, con un occhio di riguardo per Linux.

Moderatori: cb_123, thrantir, netvandal, CaberNET54

modificare Grub

Messaggiodi Aragorn il 27 nov 2008, 13:57

ecchime di nuovo qui :)

allora vi spiego per avviare linux in fase di boot del pc scelgo io che hd far partire.

il grub di linux infatti non vede XP

ora io vorrei aggiungere XP e impostarlo come predefinito in boot

:) azie


«Non tutto quel ch'è oro brilla,
Né gli erranti sono perduti;
Il vecchio ch'è forte non s'aggrinza,

le radici profonde non gelano.
Dalle ceneri rinascerà un fuoco,
L'ombra sprigionerà una scintilla;
Nuova sarà la lama ora rotta,
E re quei ch'è senza corona.»

Avatar utente
Aragorn
Site Admin
Site Admin
 
Messaggi: 21155
Iscritto il: 06 ago 2004, 23:45
Località: Lunà Cepeen (varès)

 

Re: modificare Grub

Messaggiodi CaberNET54 il 27 nov 2008, 14:43

Sono al lavoro tutto il giorno Sergio, dopo cena ti rispondo 8-)
Immagine
ASROCK 880G Extreme3 - PHENOM II X6 1055T (OC Daily 3724 Mhz @ 1,3375 Vcore rock-solid) - Cooling by Noctua NH-D14 - Corsair 8GB (4x XMS3 2GB) PC-12800 - POV 8800GT 512Mb @ EXO 650/1950/1625 + Zalman GV1000 - OCZ Vertex2 120GB - 2 x WD Caviar 1 Tb - Enermax Chakra Monster Fan & Modu82+ 625W - APC BACK-UPS RS 800VA.
Immagine
multiboot (WINDOWS7 Ultimate 64bit - UBUNTU 10.04 LTS 64bit)
SEMINA LINUX CHE TANTO WINDOWS SI PIANTA DA SOLO
Avatar utente
CaberNET54
Moderatore
Moderatore
 
Messaggi: 2335
Iscritto il: 02 gen 2004, 08:17
Località: Venezia

Re: modificare Grub

Messaggiodi Aragorn il 27 nov 2008, 14:50

si tranquillo :) nn ho fretta
x intanto grazie


«Non tutto quel ch'è oro brilla,
Né gli erranti sono perduti;
Il vecchio ch'è forte non s'aggrinza,

le radici profonde non gelano.
Dalle ceneri rinascerà un fuoco,
L'ombra sprigionerà una scintilla;
Nuova sarà la lama ora rotta,
E re quei ch'è senza corona.»

Avatar utente
Aragorn
Site Admin
Site Admin
 
Messaggi: 21155
Iscritto il: 06 ago 2004, 23:45
Località: Lunà Cepeen (varès)

Re: modificare Grub

Messaggiodi CaberNET54 il 27 nov 2008, 15:31

Nel frattempo postami il risultato di:

Codice: Seleziona tutto
sudo gedit /boot/grub/menu.lst


Ciao :)
Immagine
ASROCK 880G Extreme3 - PHENOM II X6 1055T (OC Daily 3724 Mhz @ 1,3375 Vcore rock-solid) - Cooling by Noctua NH-D14 - Corsair 8GB (4x XMS3 2GB) PC-12800 - POV 8800GT 512Mb @ EXO 650/1950/1625 + Zalman GV1000 - OCZ Vertex2 120GB - 2 x WD Caviar 1 Tb - Enermax Chakra Monster Fan & Modu82+ 625W - APC BACK-UPS RS 800VA.
Immagine
multiboot (WINDOWS7 Ultimate 64bit - UBUNTU 10.04 LTS 64bit)
SEMINA LINUX CHE TANTO WINDOWS SI PIANTA DA SOLO
Avatar utente
CaberNET54
Moderatore
Moderatore
 
Messaggi: 2335
Iscritto il: 02 gen 2004, 08:17
Località: Venezia

Re: modificare Grub

Messaggiodi Aragorn il 27 nov 2008, 16:54

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-legacy-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 change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default      0

gfxmenu=/etc/grub/message.elyssa

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      5

# 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=/dev/sda8 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## 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 mode) 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      Linux Mint x64, kernel 2.6.24-16-generic
root      (hd0,0)
kernel      /vmlinuz-2.6.24-16-generic root=/dev/sda8 ro quiet splash
initrd      /initrd.img-2.6.24-16-generic

title      Linux Mint x64, kernel 2.6.24-16-generic (recovery mode)
root      (hd0,0)
kernel      /vmlinuz-2.6.24-16-generic root=/dev/sda8 ro single
initrd      /initrd.img-2.6.24-16-generic

title      Linux Mint x64, kernel memtest86+
root      (hd0,0)
kernel      /memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST


«Non tutto quel ch'è oro brilla,
Né gli erranti sono perduti;
Il vecchio ch'è forte non s'aggrinza,

le radici profonde non gelano.
Dalle ceneri rinascerà un fuoco,
L'ombra sprigionerà una scintilla;
Nuova sarà la lama ora rotta,
E re quei ch'è senza corona.»

Avatar utente
Aragorn
Site Admin
Site Admin
 
Messaggi: 21155
Iscritto il: 06 ago 2004, 23:45
Località: Lunà Cepeen (varès)

Re: modificare Grub

Messaggiodi CaberNET54 il 27 nov 2008, 17:12

Prova ad aggiungere alla fine del testo del menu.lst:

Codice: Seleziona tutto
title Microsoft Windows XP Professional Edition
rootnoverify (hd1,0)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
boot


La rimappatura che inverte al volo (hd0) (hd1) e viceversa è necessaria per dare l'illusione a Windows di partire dalla prima unità logica disco vista in sequenza dal bios all'avvio, altrimenti XP fa i capricci :D

e per far partire di default XP come primo, che è la quarta voce di avvio, (modifica la prima riga non commentata del menu.lst) al posto di:
Codice: Seleziona tutto
default      0


metti:
Codice: Seleziona tutto
default      4


Prova e sta sera vediamo se necessita di ulteriori tarature :)
Eventualmente posti il tuo
Codice: Seleziona tutto
gedit /boot/grub/device.map
Immagine
ASROCK 880G Extreme3 - PHENOM II X6 1055T (OC Daily 3724 Mhz @ 1,3375 Vcore rock-solid) - Cooling by Noctua NH-D14 - Corsair 8GB (4x XMS3 2GB) PC-12800 - POV 8800GT 512Mb @ EXO 650/1950/1625 + Zalman GV1000 - OCZ Vertex2 120GB - 2 x WD Caviar 1 Tb - Enermax Chakra Monster Fan & Modu82+ 625W - APC BACK-UPS RS 800VA.
Immagine
multiboot (WINDOWS7 Ultimate 64bit - UBUNTU 10.04 LTS 64bit)
SEMINA LINUX CHE TANTO WINDOWS SI PIANTA DA SOLO
Avatar utente
CaberNET54
Moderatore
Moderatore
 
Messaggi: 2335
Iscritto il: 02 gen 2004, 08:17
Località: Venezia

Re: modificare Grub

Messaggiodi Aragorn il 28 nov 2008, 10:32

questo è il mio device map

Codice: Seleziona tutto
(hd0)   /dev/sda


questi sono i miei hd

Immagine

questo è l'ide con su linux, il pc dovrebbe partire da questo hd

Immagine

Immagine

questo è invece l'hd con su Windows

prima di fare qualunque modifica ho preferito darti + informazioni possibili.
attendo tue dritte Ale :)


«Non tutto quel ch'è oro brilla,
Né gli erranti sono perduti;
Il vecchio ch'è forte non s'aggrinza,

le radici profonde non gelano.
Dalle ceneri rinascerà un fuoco,
L'ombra sprigionerà una scintilla;
Nuova sarà la lama ora rotta,
E re quei ch'è senza corona.»

Avatar utente
Aragorn
Site Admin
Site Admin
 
Messaggi: 21155
Iscritto il: 06 ago 2004, 23:45
Località: Lunà Cepeen (varès)

Re: modificare Grub

Messaggiodi CaberNET54 il 28 nov 2008, 10:56

Dunque io proverei ad aggiungere questa riga al /device/map

Codice: Seleziona tutto
(hd1)   /dev/sdc


e inserirei il testo che ti ho suggerito nel post precedente................ se non parte xp non preoccuparti, hai 5 secondi di tempo per riselezionare Mint e fare altri test. XP è al sicuro perchè non è minimamente influenzata da queste modifiche sul grub di Mint!

Prova :D
Immagine
ASROCK 880G Extreme3 - PHENOM II X6 1055T (OC Daily 3724 Mhz @ 1,3375 Vcore rock-solid) - Cooling by Noctua NH-D14 - Corsair 8GB (4x XMS3 2GB) PC-12800 - POV 8800GT 512Mb @ EXO 650/1950/1625 + Zalman GV1000 - OCZ Vertex2 120GB - 2 x WD Caviar 1 Tb - Enermax Chakra Monster Fan & Modu82+ 625W - APC BACK-UPS RS 800VA.
Immagine
multiboot (WINDOWS7 Ultimate 64bit - UBUNTU 10.04 LTS 64bit)
SEMINA LINUX CHE TANTO WINDOWS SI PIANTA DA SOLO
Avatar utente
CaberNET54
Moderatore
Moderatore
 
Messaggi: 2335
Iscritto il: 02 gen 2004, 08:17
Località: Venezia

Re: modificare Grub

Messaggiodi CaberNET54 il 28 nov 2008, 11:28

IPOTESI 2

Se non funziona come detto sopra, allora riscrivi il device map così:

Codice: Seleziona tutto
(hd0)  /dev/sda
(hd1)  /dev/sdb
(hd2)  /dev/sdc


e modifichi il menu.lst così:

Codice: Seleziona tutto
title Microsoft Windows XP Professional Edition
rootnoverify (hd2,0)
makeactive
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1
boot


Fai prima il primo test, poi eventualmente questo! 8-)
Immagine
ASROCK 880G Extreme3 - PHENOM II X6 1055T (OC Daily 3724 Mhz @ 1,3375 Vcore rock-solid) - Cooling by Noctua NH-D14 - Corsair 8GB (4x XMS3 2GB) PC-12800 - POV 8800GT 512Mb @ EXO 650/1950/1625 + Zalman GV1000 - OCZ Vertex2 120GB - 2 x WD Caviar 1 Tb - Enermax Chakra Monster Fan & Modu82+ 625W - APC BACK-UPS RS 800VA.
Immagine
multiboot (WINDOWS7 Ultimate 64bit - UBUNTU 10.04 LTS 64bit)
SEMINA LINUX CHE TANTO WINDOWS SI PIANTA DA SOLO
Avatar utente
CaberNET54
Moderatore
Moderatore
 
Messaggi: 2335
Iscritto il: 02 gen 2004, 08:17
Località: Venezia

Re: modificare Grub

Messaggiodi Aragorn il 28 nov 2008, 12:17

fatto il primo e mi dice non system disk


e cmq nn mi imposta come default xp (credo che occorra mettere 3 e non 4)


«Non tutto quel ch'è oro brilla,
Né gli erranti sono perduti;
Il vecchio ch'è forte non s'aggrinza,

le radici profonde non gelano.
Dalle ceneri rinascerà un fuoco,
L'ombra sprigionerà una scintilla;
Nuova sarà la lama ora rotta,
E re quei ch'è senza corona.»

Avatar utente
Aragorn
Site Admin
Site Admin
 
Messaggi: 21155
Iscritto il: 06 ago 2004, 23:45
Località: Lunà Cepeen (varès)

Re: modificare Grub

Messaggiodi Aragorn il 28 nov 2008, 12:39

ecco nel secondo modo va :)

ps il default l'ho impostato a 3 e va ;)

azie ale


«Non tutto quel ch'è oro brilla,
Né gli erranti sono perduti;
Il vecchio ch'è forte non s'aggrinza,

le radici profonde non gelano.
Dalle ceneri rinascerà un fuoco,
L'ombra sprigionerà una scintilla;
Nuova sarà la lama ora rotta,
E re quei ch'è senza corona.»

Avatar utente
Aragorn
Site Admin
Site Admin
 
Messaggi: 21155
Iscritto il: 06 ago 2004, 23:45
Località: Lunà Cepeen (varès)

Re: modificare Grub

Messaggiodi CaberNET54 il 28 nov 2008, 18:35

:good:

Giusto... dimenticavo che " default 0" corrisponde al primo, pertanto "default 3" corrisponde alla quarta voce del menu.lst :D

Ottimo Sergio :ok: :morettosa:
Immagine
ASROCK 880G Extreme3 - PHENOM II X6 1055T (OC Daily 3724 Mhz @ 1,3375 Vcore rock-solid) - Cooling by Noctua NH-D14 - Corsair 8GB (4x XMS3 2GB) PC-12800 - POV 8800GT 512Mb @ EXO 650/1950/1625 + Zalman GV1000 - OCZ Vertex2 120GB - 2 x WD Caviar 1 Tb - Enermax Chakra Monster Fan & Modu82+ 625W - APC BACK-UPS RS 800VA.
Immagine
multiboot (WINDOWS7 Ultimate 64bit - UBUNTU 10.04 LTS 64bit)
SEMINA LINUX CHE TANTO WINDOWS SI PIANTA DA SOLO
Avatar utente
CaberNET54
Moderatore
Moderatore
 
Messaggi: 2335
Iscritto il: 02 gen 2004, 08:17
Località: Venezia

Re: modificare Grub

Messaggiodi Aragorn il 04 dic 2008, 16:33

scusa ale

l'altro giorno mi è morto l'alimentatore e nel rimontare il tutto devo aver cambiato le porte sata e ora nn mi funziona più quella modifica fatta

ora i miei hd sono questi

Immagine

Immagine

Immagine

io ho provato a modificare il grub così ma non va

Codice: Seleziona tutto
title Microsoft Windows XP Professional Edition
rootnoverify (hd1,0)
makeactive
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1
boot


«Non tutto quel ch'è oro brilla,
Né gli erranti sono perduti;
Il vecchio ch'è forte non s'aggrinza,

le radici profonde non gelano.
Dalle ceneri rinascerà un fuoco,
L'ombra sprigionerà una scintilla;
Nuova sarà la lama ora rotta,
E re quei ch'è senza corona.»

Avatar utente
Aragorn
Site Admin
Site Admin
 
Messaggi: 21155
Iscritto il: 06 ago 2004, 23:45
Località: Lunà Cepeen (varès)

Re: modificare Grub

Messaggiodi Aragorn il 04 dic 2008, 16:39

scemata mia sistemato così

Codice: Seleziona tutto
title Microsoft Windows XP Professional Edition
rootnoverify (hd1,0)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
boot


«Non tutto quel ch'è oro brilla,
Né gli erranti sono perduti;
Il vecchio ch'è forte non s'aggrinza,

le radici profonde non gelano.
Dalle ceneri rinascerà un fuoco,
L'ombra sprigionerà una scintilla;
Nuova sarà la lama ora rotta,
E re quei ch'è senza corona.»

Avatar utente
Aragorn
Site Admin
Site Admin
 
Messaggi: 21155
Iscritto il: 06 ago 2004, 23:45
Località: Lunà Cepeen (varès)

Re: modificare Grub

Messaggiodi CaberNET54 il 04 dic 2008, 19:37

Ottimo Sergio, stai diventando un esperto di GRUB :D
Immagine
ASROCK 880G Extreme3 - PHENOM II X6 1055T (OC Daily 3724 Mhz @ 1,3375 Vcore rock-solid) - Cooling by Noctua NH-D14 - Corsair 8GB (4x XMS3 2GB) PC-12800 - POV 8800GT 512Mb @ EXO 650/1950/1625 + Zalman GV1000 - OCZ Vertex2 120GB - 2 x WD Caviar 1 Tb - Enermax Chakra Monster Fan & Modu82+ 625W - APC BACK-UPS RS 800VA.
Immagine
multiboot (WINDOWS7 Ultimate 64bit - UBUNTU 10.04 LTS 64bit)
SEMINA LINUX CHE TANTO WINDOWS SI PIANTA DA SOLO
Avatar utente
CaberNET54
Moderatore
Moderatore
 
Messaggi: 2335
Iscritto il: 02 gen 2004, 08:17
Località: Venezia

 
Prossimo

Torna a Linux e Unix

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite

cron