Pagina 3 di 10

[Grub] Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:15
da mikelosat
mi si è aperto il menu.lst ma è vuoto :o

Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:16
da emillo
Aspetta stai calmo sei
sul sistema installato oppure su cd live?

[Grub] Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:17
da mikelosat
su cd live magari fossi nel sistema installato...

Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:19
da emillo
Allora togli il cd e poi quando ti dà errore 18 premi esc
Poi ti apparira una ">"
digita root=/dev/sda3
Se non parte
prova
root=/dev/sda
prima per favore prova questa procedura poi vediamo da live non ho ben capito che hai fatto nel frattempo spiegati

[Grub] Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:23
da mikelosat
niente, ho semplicemente resettato l'mbr perchè non potevo partire con XP ma le partizioni EXT3 e swap con i files di installazione linux ubuntu ci stanno!

Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:25
da emillo
Bravo adesso non puoi più fare nulla reinstallando l'mbr di windows devi reinstallare ubuntu....Ti abbiamo detto per caso di rimettere l'mbr?

[Grub] Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:25
da mikelosat
ok no problem!! reinstallo tutto!

Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:27
da emillo
Vedi il grub si mette sull'mbr, se lo reinstalli parte solo windows e non puoi più accedere al grub!

[Grub] Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:31
da mikelosat
esatto!! che dici ce la facciamo? sto già reinstallando tutto

Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:32
da emillo
Basta che segui

[Grub] [Grub] Re: [Grub] errore 18 GRUB

Inviato: venerdì 31 ottobre 2008, 23:39
da mikelosat
Ok Ok ho capito... ho reinstallato il grub su hd0, successivamente al riavvio cambierò hd0,6 con hd02.

[Grub] [Grub] [Grub] Re: [Grub] errore 18 GRUB

Inviato: sabato 1 novembre 2008, 0:11
da mikelosat
niente emillo quello che mi hai detto non me lo fa fare:
Fai così quando ti da error 18 premi esc
ti dara una scjermata nera con ">"
digita
root=(hd0,2) o root=/dev/sda3
premo esc ma nn succede nulla!!!

Re: [Grub] errore 18 GRUB

Inviato: sabato 1 novembre 2008, 0:15
da emillo
allora da live seguimi e fai quello che ti dico esattamente

[Grub] [Grub] Re: [Grub] errore 18 GRUB

Inviato: sabato 1 novembre 2008, 0:20
da mikelosat
ok dimmi tutto, questo è intanto il mio nuovo fdisk:

Codice: Seleziona tutto

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        6375    51207156    7  HPFS/NTFS
/dev/sda2            6376       19193   102960585    f  W95 Ext'd (LBA)
/dev/sda3           19194       30401    90028260   83  Linux
/dev/sda5            6376       19124   102406311    b  W95 FAT32
/dev/sda6           19125       19187      506016   82  Linux swap / Solaris
/dev/sda7           19188       19193       48163+  83  Linux
ubuntu@ubuntu:~$ 

questo il grub 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=bb7b0604-6428-4d8b-aaaa-a3be02e4163f ro

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

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

## 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.04.1, kernel 2.6.24-19-generic
root		(hd0,6)
kernel		/vmlinuz-2.6.24-19-generic root=UUID=bb7b0604-6428-4d8b-aaaa-a3be02e4163f ro quiet splash
initrd		/initrd.img-2.6.24-19-generic
quiet

title		Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root		(hd0,6)
kernel		/vmlinuz-2.6.24-19-generic root=UUID=bb7b0604-6428-4d8b-aaaa-a3be02e4163f ro single
initrd		/initrd.img-2.6.24-19-generic

title		Ubuntu 8.04.1, memtest86+
root		(hd0,6)
kernel		/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		(hd0,0)
savedefault
makeactive
chainloader	+1

Re: [Grub] errore 18 GRUB

Inviato: sabato 1 novembre 2008, 0:21
da emillo
Segui una di queste guide spiegano abbastanza bene........

http://wiki.ubuntu-it.org/Amministrazio ... Ripristino

Re: [Grub] errore 18 GRUB

Inviato: sabato 1 novembre 2008, 0:23
da emillo
la prima dovrebbe fare al caso tuo sostituisci con (hd0,2)
sudo grub
find /boot/grub/stage1
setup (hd0,2)
quit
riavvia  e rimuovi il cd

[Grub] Re: [Grub] errore 18 GRUB

Inviato: sabato 1 novembre 2008, 0:24
da mikelosat
quindi seguo il primo metodo?

#

Avviare il Live Cd
#

Aprire un terminale da Applicazioni -> Accessori -> Terminale e avviare grub con privilegi di amministrazione:

sudo grub

Il passo successivo serve per determinare la propria partizione di boot. Se si è già a conoscenza di questo dato, è possibile saltare il passo.
#

Digitare

find /boot/grub/stage1

Verrà data una risposta del tipo hdX o (hdX,Y)
#

Digitare:

root (hdX,Y)

#

Digitare:

setup (hdX,Y)

Questo è il passaggio chiave. In alternativa è possibile digitare:

setup (hdX)

nel caso si voglia riscrivere GRUB nel MBR. Nel primo caso invece GRUB verrà riscritto nella partizione contenente Linux.
#

Digitare:

quit

#

Riavviare il sistema e rimuovere il Live CD.

Re: [Grub] errore 18 GRUB

Inviato: sabato 1 novembre 2008, 0:26
da emillo
Si però non dare il penultimo comando perchè hai windows....ti ho postato sopra i comandi che devi dare
se ti ridà errore allora prova a rifare e dare
setup (hda)

[Grub] Re: [Grub] errore 18 GRUB

Inviato: sabato 1 novembre 2008, 0:27
da mikelosat
emillo già il secondo comendo non va :
find /boot/grub/stage1
dice file not found

Re: [Grub] errore 18 GRUB

Inviato: sabato 1 novembre 2008, 0:29
da emillo
fai così
dai root (hd0,2)
e poi setup (hda)
Aspetta un attimo prima che scrivo modifico sto ragionando non essere precipitoso!