Entra

View Full Version : Errori 17 e 18 di grub su ubuntu appena installato


Dari
02-02-2009, 20:33
Oggi ho installato Ubuntu su un portatile hp nx7400, il disco rigido è da 250GB e c'era già installato windows xp professional in una partizione e un'altra partizione(170GB) era per i dati.
Durante l'installazione di Ubuntu ho ridimensionato la partizione dei dati e lasciato circa 50GB per Ubuntu, il programma ha creato due partizioni logiche, una per / e una di swap. Al momento di creare le partizioni è comparsa una finestra di errore che diceva qualcosa del tipo impossibile comunicare al kernel le variazioni del filesystem, ho cliccato su cancel per annullare e poi ho provato di nuovo a cliccare su avanti e l'installazione è andata avanti senza dare nuovamente l'errore. Al riavvio grub ha dato l'errore 18 (allo stadio 1.5, non so cosa significhi). Io ho pensato che avesse avuto problemi ad avviarsi perchè le partizioni create erano logiche quindi ho provato a rifare l'installazione creando le partizioni a mano come primarie (ho notato questa cosa: non mi fa fare una partizione primaria e una logica, solo due dello stesso tipo, è normale?), non ha dato errori e ha proseguito con l'installazione. Stavolta all'avvio grub ha dato l'errore 17, sempre allo stadio 1.5. Se qualcuno mi sa dire come posso risolvere mi fa un grandissimo favore perchè mi sarebbe molto utile avere linux su questo portatile, grazie in anticipo.

patel45
03-02-2009, 06:24
dal terminale del cdlive:
sudo fdisk -l (ELLE)
cat /boot/grub/menu.lst
e posta i risultati

Dari
03-02-2009, 12:00
Adesso ho ripristinato l'mbr con super grub disk in modo da far andare windows perchè mi serviva il computer, oggi appena ho tempo provo a reinstallare Ubuntu e poi vi so dire se ha funzionato e in caso posto i risultati dei comandi, comunque la configurazione del mio disco ora è quella del punto "a" della guida che c'è in rilievo sopra, cioè due partizioni primarie di cui una contenente una partizione logica (quella dei dati), poi ho 45 GB di spazio non partizionato.

Dari
03-02-2009, 17:45
Ho reinstallato Ubuntu e mi da ancora errore 18, ecco i risultati dei comandi:
sudo fdisk -l:

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

Device Boot Start End Blocks Id System
/dev/sda1 * 1 8924 71676328+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 8924 30401 172519641+ f W95 Ext'd (LBA)
/dev/sda5 8924 24595 125878036 7 HPFS/NTFS
/dev/sda6 24596 30158 44684766 83 Linux
/dev/sda7 30159 30401 1951866 82 Linux swap / Solaris


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 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=3bc8adb2-0180-4fe4-bd20-4cf65cc18cc0 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=3bc8adb2-0180-4fe4-bd20-4cf65cc18cc0

## 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-7-generic
uuid 3bc8adb2-0180-4fe4-bd20-4cf65cc18cc0
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=3bc8adb2-0180-4fe4-bd20-4cf65cc18cc0 ro 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 3bc8adb2-0180-4fe4-bd20-4cf65cc18cc0
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=3bc8adb2-0180-4fe4-bd20-4cf65cc18cc0 ro single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid 3bc8adb2-0180-4fe4-bd20-4cf65cc18cc0
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 (hd0,0)
savedefault
makeactive
chainloader +1

Dari
04-02-2009, 13:55
Se a qualcuno servisse ho risolto l'errore 18. Il problema era che la partizione dove c'era la cartella /boot di Ubuntu era troppo lontana dall'inizio del disco e non era raggiungibile. Io ho risolto eliminando la partizione dati e creando le partizioni per Ubuntu subito dopo la partizione di sistema di windows in modo che fosse più vicina all'inizio del disco e ricreando la partizione dati dopo quelle di Ubuntu. Un'altra soluzione è creare all'inizio del disco una piccola partizione (entro i 512 mb viene vista anche dai computer più vecchi) che abbia come punto di mount /boot.

gianlucab70
04-02-2009, 14:32
postaci fdisk -l
così è + chiaro.
Grazie.

Dari
05-02-2009, 08:11
Ho già risolto il problema, vedi post sopra, su ho scritto x spiegare come si faceva in caso qualcuno avesse lo stesso problema, grazie comunque.