Come inserisco windows in Grub?

Installazione, configurazione e uso di programmi e strumenti.
Scrivi risposta
Avatar utente
maurizio.skywalker
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 513
Iscrizione: domenica 5 febbraio 2006, 12:26
Località: Morlupo (ROMA!)

Come inserisco windows in Grub?

Messaggio da maurizio.skywalker »

ho dovuto per forza di cose reinstallare windows (programmi universitari)..come previsto grub è scomparso!sono riuscito a ripristinarlo seguendo la guida,ma adesso non mi vede windows!ovvero non mi da la possibilità di sceglierlo all'avvio..come devo fare?

la partizione di windows è /dev/hda2..

ciao e grazie!
che la Forza sia con voi..
Avatar utente
Totux
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1478
Iscrizione: sabato 28 aprile 2007, 14:41
Distribuzione: Ubuntu 12.04
Località: Milano
Contatti:

Re: Come inserisco windows in Grub?

Messaggio da Totux »

prova ad aggiungere al file /boot/grub/menu.lst queste righe:

Codice: Seleziona tutto

title		Microsoft Windows XP Professional
root		(hd0,2)
savedefault
makeactive
chainloader	+1
ciao
Totò
Avatar utente
maurizio.skywalker
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 513
Iscrizione: domenica 5 febbraio 2006, 12:26
Località: Morlupo (ROMA!)

Re: Come inserisco windows in Grub?

Messaggio da maurizio.skywalker »

no non funziona..grub mi compare ma parte direttamente ubuntu!non mi da propio la possibilità di scegliere!!! :'(
che la Forza sia con voi..
Avatar utente
maurizio.skywalker
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 513
Iscrizione: domenica 5 febbraio 2006, 12:26
Località: Morlupo (ROMA!)

Re: Come inserisco windows in Grub?

Messaggio da maurizio.skywalker »

questo è il risultato di sudo fdisk -l

Codice: Seleziona tutto

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/hda1               1        6317    50741271   83  Linux
/dev/hda2   *        6318        9542    25904812+   7  HPFS/NTFS
/dev/hda3            9543        9729     1502077+   5  Esteso
/dev/hda5            9543        9729     1502046   82  Linux swap / Solaris
che la Forza sia con voi..
Avatar utente
zeruel85
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2450
Iscrizione: venerdì 12 gennaio 2007, 18:32

Re: Come inserisco windows in Grub?

Messaggio da zeruel85 »

forse hai attivato l'hiddenmenu...commentalo davanti con un cancelletto (#) se ce l'hai attivato...
Avatar utente
maurizio.skywalker
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 513
Iscrizione: domenica 5 febbraio 2006, 12:26
Località: Morlupo (ROMA!)

Re: Come inserisco windows in Grub?

Messaggio da maurizio.skywalker »

@zereul85
cioè??che significa?che dovrei fare?
che la Forza sia con voi..
Avatar utente
Totux
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1478
Iscrizione: sabato 28 aprile 2007, 14:41
Distribuzione: Ubuntu 12.04
Località: Milano
Contatti:

Re: Come inserisco windows in Grub?

Messaggio da Totux »

posta il menu.lst...
Totò
Avatar utente
zeruel85
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2450
Iscrizione: venerdì 12 gennaio 2007, 18:32

Re: Come inserisco windows in Grub?

Messaggio da zeruel85 »

Totux ha scritto: posta il menu.lst...
stavo proprio per dirlo anche io!! (rotfl) (rotfl)
Avatar utente
Totux
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1478
Iscrizione: sabato 28 aprile 2007, 14:41
Distribuzione: Ubuntu 12.04
Località: Milano
Contatti:

Re: Come inserisco windows in Grub?

Messaggio da Totux »

zeruel85 ha scritto:
Totux ha scritto: posta il menu.lst...
stavo proprio per dirlo anche io!! (rotfl) (rotfl)
(rotfl) (rotfl) (rotfl)
Totò
Avatar utente
filo1234
Rampante Reduce
Rampante Reduce
Messaggi: 6172
Iscrizione: lunedì 26 febbraio 2007, 21:10
Località: Cagliari

Re: Come inserisco windows in Grub?

Messaggio da filo1234 »

da quello che vedo dal tuo fdisk  dovresti aggiungere queste righe alla fine del file menu.lst

Codice: Seleziona tutto

title		Microsoft Windows XP Professional
root		(hd0,1)
savedefault
makeactive
chainloader	+1
Avatar utente
maurizio.skywalker
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 513
Iscrizione: domenica 5 febbraio 2006, 12:26
Località: Morlupo (ROMA!)

Re: Come inserisco windows in Grub?

Messaggio da maurizio.skywalker »

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 change this entry to 'saved' 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=a8fe457d-838a-48aa-9121-83666152bdaa ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device

title           Ubuntu, kernel 2.6.20-16-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=a8fe457d-838a-48aa-9121-83666152bdaa ro quiet splash noapic nolapic
initrd          /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=a8fe457d-838a-48aa-9121-83666152bdaa ro single
initrd          /boot/initrd.img-2.6.20-16-generic

title           Ubuntu, kernel 2.6.20-15-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=a8fe457d-838a-48aa-9121-83666152bdaa ro quiet splash
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=a8fe457d-838a-48aa-9121-83666152bdaa ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title           Ubuntu, memtest86+
root            (hd0,0)
kernel          /boot/memtest86+.bin
quiet



title           Microsoft Windows XP Professional
root            (hd0,2)
savedefault
makeactive
chainloader     +1


eccolo qui... (b2b)
che la Forza sia con voi..
Avatar utente
zeruel85
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2450
Iscrizione: venerdì 12 gennaio 2007, 18:32

Re: Come inserisco windows in Grub?

Messaggio da zeruel85 »

se guardi bene c'è una parola che si chiama HIDDENMENU...mettici un # davanti, oppure cancellala...salvi e sei apposto... (b2b)
Avatar utente
maurizio.skywalker
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 513
Iscrizione: domenica 5 febbraio 2006, 12:26
Località: Morlupo (ROMA!)

Re: Come inserisco windows in Grub?

Messaggio da maurizio.skywalker »

cè ed è commentata! (rotfl)
che la Forza sia con voi..
Avatar utente
Guiodic
Accecante Asceta
Accecante Asceta
Messaggi: 28474
Iscrizione: martedì 24 aprile 2007, 15:28
Località: Roma
Contatti:

Re: Come inserisco windows in Grub?

Messaggio da Guiodic »

maurizio.skywalker ha scritto: no non funziona..grub mi compare ma parte direttamente ubuntu!non mi da propio la possibilità di scegliere!!! :'(
Se la partizione è sda2 devi mettere hd0,1

Grub conta da 0 non da 1.
Avatar utente
zeruel85
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2450
Iscrizione: venerdì 12 gennaio 2007, 18:32

Re: Come inserisco windows in Grub?

Messaggio da zeruel85 »

no sior, ti sbagli alla grande...appena due righe sotto quella che dici tu!! (rotfl) (rotfl) (rotfl) (rotfl) (rotfl)

EDIT: guiodic ha ragione...(hd0,1)!!!
Avatar utente
filo1234
Rampante Reduce
Rampante Reduce
Messaggi: 6172
Iscrizione: lunedì 26 febbraio 2007, 21:10
Località: Cagliari

Re: Come inserisco windows in Grub?

Messaggio da filo1234 »

questa parte è sbagliata devi correggere (hd0,2)

Codice: Seleziona tutto

title           Microsoft Windows XP Professional
root            (hd0,2)
savedefault
makeactive
chainloader     +1
in (hd0,1)

Codice: Seleziona tutto

title           Microsoft Windows XP Professional
root            (hd0,1)
savedefault
makeactive
chainloader     +1
Avatar utente
Totux
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1478
Iscrizione: sabato 28 aprile 2007, 14:41
Distribuzione: Ubuntu 12.04
Località: Milano
Contatti:

Re: Come inserisco windows in Grub?

Messaggio da Totux »

non il primo hiddenmenu, il secondo non è commentato
maurizio.skywalker ha scritto:

Codice: Seleziona tutto

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
zeruel85 ha scritto: se guardi bene c'è una parola che si chiama HIDDENMENU...mettici un # davanti, oppure cancellala...salvi e sei apposto... (b2b)
stavolta mi hai fregato tu (rotfl) (rotfl)
ciao (b2b)
Totò
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 12 ospiti