PDA

View Full Version : Grub - prob con partizione ubuntu-xp


manumax
28-03-2008, 01:43
Buona sera a tutti.

ho da qualche mese ubuntu sul notebook, essendomene innamorato ho deciso di metterlo anche sul desktop, conservando però in questo caso XP.

Dopo l'installazione, conclusa con successo, con partizione guidata fatta da Ubuntu, riavvio il pc e dopo la prima schermata di bios mi da questo messaggio: "errore nel caricamento del sistema operativo".
La partizione è stata fatta su HD da 250 Gb all'incirca al 46%.

Ho cercato un po in giro e pensando che fosse un prob di Grub ho cercato un po in questa guida http://wiki.ubuntu-it.org/AmministrazioneSistema/Grub/Ripristino?action=show&redirect=RecuperareGrub
ma vista la mia ignoranza non sono riusto a risolvere smanettando sul terminale attraverso la live di ubuntu.:mc:

vi metto il risultato al comando:

fdisk -l

eccolo di seguito

Disk /dev/hda: 60.0 GB, 60040544256 bytes
255 heads, 63 sectors/track, 7299 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x232aa904

Device Boot Start End Blocks Id System
/dev/hda1 * 1 7299 58629186 7 HPFS/NTFS

Disk /dev/hdc: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5e4c2465

Device Boot Start End Blocks Id System
/dev/hdc1 1 9964 80035798+ 7 HPFS/NTFS

Disk /dev/hdd: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5e4c2464

Device Boot Start End Blocks Id System
/dev/hdd1 1 14946 120053713+ 7 HPFS/NTFS

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x86c386c3

Device Boot Start End Blocks Id System
/dev/sda1 1 13250 106430593+ 7 HPFS/NTFS
/dev/sda2 * 13251 30024 134737155 83 Linux
/dev/sda3 30025 30401 3028252+ 5 Extended
/dev/sda5 30025 30401 3028221 82 Linux swap / Solaris


Avete idea di quale possa essere il problema se GRUB o altro? e come sia possibile risolverlo?

Grazie in anticipo

manu :help:

patel45
28-03-2008, 05:22
Per capire occorre anche postare il contenuto del file /boot/grub/menu.lst.

manumax
28-03-2008, 08:29
# 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=f0999505-830b-4bf5-ac9a-6f909d4dabfb ro

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

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

## 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 7.10, kernel 2.6.22-14-generic
root (hd3,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=f0999505-830b-4bf5-ac9a-6f909d4dabfb ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd3,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=f0999505-830b-4bf5-ac9a-6f909d4dabfb ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, memtest86+
root (hd3,1)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd3,0)
savedefault
makeactive
map (hd0) (hd3)
map (hd3) (hd0)
chainloader +1

manumax
28-03-2008, 09:55
scusate non ho specificato che vorrei poter scegliere all'avvio se usare win o ubuntu.

aspetto un vostro aiuto....grazie!!!

Gollum63
28-03-2008, 23:21
non ti parte nulla ? nemmeno ubuntu?
tutti gli altri dischi cosa sono come sono montati nel bios?

Malon
29-03-2008, 20:48
Hai 4 dischi rigidi.
3 parallel ata di cui:
- 60GB primary master
- 89GB secondary master
- 122GB secondary slave

- E un disco sata di 250GB
Esatto?
Windows è installato sulla prima partizione del SATA. E nella seconda partizione sempre del disco SATA hai installato ubuntu.
Esatto?

Allora il file menu.lst è corretto.
Spero che sia il menu.lst della installazione e non della liveCD.

Allora per risolvere dovresti impostare dal bios la sequenza di boot per i hard disk come te l'ho scritta prima.
Ubuntu installa grub nell' MBR del primary master parallel ATA. E cosi che comincia a contare i hard disk. Se la sequenza dei hard disk non era quella nel bios (o se era quella dopo l'installazione l'hai cambiata) allora grub non parte.

steveD
04-04-2008, 12:36
Salve a tutti io ho quasi lo stesso problema di manumax, con la differenza che ho un HD ide con ubuntu e uno sata con win xp gia installato. Il problema è che quando scelgo dal menu di grub di far partire win xp mi dice: NTLDR mancante. Credo dipenda da una configurazione sbagliata della menu.lst
vi posto il mio fdisk:

{
Disco /dev/sda: 120.0 GB, 120034123776 byte
255 heads, 63 sectors/track, 14593 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf6f628a5

Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 1 14592 117210208+ 7 HPFS/NTFS

Disco /dev/sdb: 250.0 GB, 250059350016 byte
255 heads, 63 sectors/track, 30401 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0x577e6842

Dispositivo Boot Start End Blocks Id System
/dev/sdb1 * 1 30401 244196001 7 HPFS/NTFS

Disco /dev/hda: 160.0 GB, 160041885696 byte
255 heads, 63 sectors/track, 19457 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d01fc

Dispositivo Boot Start End Blocks Id System
/dev/hda1 * 1 19080 153260068+ 83 Linux
/dev/hda2 19081 19457 3028252+ 5 Esteso
/dev/hda5 19081 19457 3028221 82 Linux swap / Solaris

}
sul primo, quello da 120GB c è Win Xp, il secondo è un HD condiviso, nel terzo c è ubuntu 7.10

questa è la mia menu.lst

{
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=75ef2f69-9d5a-4ef9-a7ee-b0b00ae047a9 ro quiet splash locale=it_IT
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=75ef2f69-9d5a-4ef9-a7ee-b0b00ae047a9 ro single
initrd /boot/initrd.img-2.6.22-14-generic

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

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1

}

Grazie a tutti in anticipo!

manumax
04-04-2008, 16:27
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd3,0)
savedefault
makeactive
map (hd0) (hd3)
map (hd3) (hd0)
chainloader +1


io ho risolto cambiando hd3,0 con hd0,0 e togliendo i map.
tu devi capire cosa mettere nel tuo, lo devi capire dal nome che da ai vari hd.
avevo trovato un manuale che spiegava come fare ma non lo ritrovo.
sul forum di ubuntu forse troverai piu informazioni essendo specifico per quel sistema operativo.

scusa se non riesco ad aiutarti ma sono davvero niubbo.:mc:

Malon
04-04-2008, 17:55
Salve a tutti io ho quasi lo stesso problema di manumax, con la differenza che ho un HD ide con ubuntu e uno sata con win xp gia installato. Il problema è che quando scelgo dal menu di grub di far partire win xp mi dice: NTLDR mancante. Credo dipenda da una configurazione sbagliata della menu.lst
--cut--
{!
Il menu.lst è corretto .
Prova a settare da bios la sequenza di boot degli hard disk nel modo seguente
1. Hda : il disco IDE ad 160GB
2. sda : quello da 120GB
3. sdb: quello da 250GB

Molto probabilmente come primo HD è settato quello da 160 GB (come è coretto), mentre come secondo mi sa che è settato quello da 2500GB e non quello da 120GB con XP. Dovrebbe poi partire tutto regolarmente.
In alternativi cambia nel menu menu.lst la voce del winxp sostituendo 1 con 2, Cioè in pratica devi avere cosi la voce relativa a winxp
title Microsoft Windows XP Professional
root (hd2,0)
savedefault
makeactive
map (hd2) (hd0)
map (hd0) (hd2)
chainloader +1

P.S: scegli una delle due soluzioni ,non fare tutte e due perché ti ritorvi nel punto di partenza.

steveD
05-04-2008, 14:43
Grazie Mille infatti la prioritò degli HD nel bios era sbagliata, anche se tuttavia ho dovuto correggere la munu.lst mettendo

root (hd2,0)
savedefault
makeactive
map (hd2) (hd0)
map (hd0) (hd2)
chainloader +1

Quindi in pratica ho eseguito entrambe le soluzioni proposte! :confused:
Cmq GRAZIE ancora !!

Malon
05-04-2008, 18:09
Mi sa allora che windows è installato su hard disk da 250GB (ammesso che hai settato come terzo hard disk quello da 250GB).
Come configurato adesso il menu.lst indica che il windows si trova sul terzo hard disk (nell'ordine settato da bios). Grub comincina a contare gli hard disk a partire da 0, Cioè il primo hard disk è O e non 1.
La ubuntu/kubuntu classifica tutti gli hard disk a partire dal primo master IDE, secondo master IDE, primo SATA, secondo SATA e cosi via.
Comunque felice di essere stato d'aiuto.