Pagina 1 di 1

[Risolto] Asus eee Pc 701 Grub error 21

Inviato: mercoledì 19 novembre 2008, 0:14
da red
Salve,
ho recentemente comprato un portatile Asus eeePc 701 (4Gb di hd, con 512 Mb di RAM). Ho deciso di installare Ubuntu eee con l'intenzione anche di mantenere Xandros (sistema presente di predefinito).
Ho seguito le istruzioni del Sito di Ubuntu eee utilizzando una chiavetta usb. Ho deciso di installare Ubuntu eee su un SD che ho comprato. Al riavvio dopo l'installazione purtoppo è comparso il seguente errore:

Grub loading, please wait... error 21.

Non riesco a far partire nè Xandros (è nell' hd) nè Ubuntu (è nell'SD). Premendo "Esc" al boot e scegliendo il dispositivo da caricare ottengo lo stesso errore.

Ho cercato su internet e anche altri utenti hanno avuto il mio problema (https://answers.launchpad.net/ubuntu-eee/+question/47754), ma a causa della mia scarsa conoscenza di inglese e di sistemi operativi non sono riuscito a capire un gran che...

C'è qualcuno che mi può aiutare? è possibile ripristinare il MBR originale? o ancora meglio usare sia xandros che ubuntu?

Sono veramente disperato...

Avviando Ubuntu con "l'Usb - live" le partizioni sono queste:
/dev/sda1 label: SYSTEM
/dev/sda2 label: USER
/dev/sda3 label  BIOS
/dev/sda4
questi  sono nell'HD del computer se non sbaglio

/dev/sdc1 ext3
/dev/sdc2 extended
/dev/sd5 swap
questi sono sull' SD

Di seguito posto il file all'interno della cartella di grub menu.lst (in SYSTEM):
#
# Configured by Xandros Configuration system.
#
hiddenmenu
# default boot entry
default=0

# Boot automatically after 1 second.
timeout=0

# Fallback to Configure.
fallback=2

title Normal Boot
root (0x80,0)
kernel /boot/vmlinuz-2.6.21.4-eeepc quiet rw vga=785 irqpoll root=/dev/sda1
initrd /boot/initramfs-eeepc.img

title Perform Disk Scan
root (0x80,0)
kernel /boot/vmlinuz-2.6.21.4-eeepc quiet rw vga=785 irqpoll root=/dev/sda1 XANDROSSCAN=y
initrd /boot/initramfs-eeepc.img

title Restore Factory Settings
root (0x80,0)
kernel /boot/vmlinuz-2.6.21.4-eeepc quiet rw vga=normal nosplash=y irqpoll root=/dev/sda1 XANDROSRESTORE=y
initrd /boot/initramfs-eeepc.img
[/sub]

Ed ecco il menu.lst su SD
# 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=2b9400ac-8b1c-4ac1-aa1f-39609bdaea00 ro

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

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd2,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) 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-21-eeepc
root (hd2,0)
kernel /boot/vmlinuz-2.6.24-21-eeepc root=UUID=2b9400ac-8b1c-4ac1-aa1f-39609bdaea00 ro quiet splash
initrd /boot/initrd.img-2.6.24-21-eeepc
quiet

title Ubuntu 8.04.1, kernel 2.6.24-21-eeepc (recovery mode)
root (hd2,0)
kernel /boot/vmlinuz-2.6.24-21-eeepc root=UUID=2b9400ac-8b1c-4ac1-aa1f-39609bdaea00 ro single
initrd /boot/initrd.img-2.6.24-21-eeepc

title Ubuntu 8.04.1, memtest86+
root (hd2,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 an existing
# linux installation on /dev/sda1.
title Normal Boot (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.21.4-eeepc quiet rw vga=785 irqpoll root=/dev/sda1
initrd /boot/initramfs-eeepc.img
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Perform Disk Scan (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.21.4-eeepc quiet rw vga=785 irqpoll root=/dev/sda1 XANDROSSCAN=y
initrd /boot/initramfs-eeepc.img
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Restore Factory Settings (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.21.4-eeepc quiet rw vga=normal nosplash=y irqpoll root=/dev/sda1 XANDROSRESTORE=y
initrd /boot/initramfs-eeepc.img
savedefault
boot

Re: Asus eee Pc 701 Grub error 21

Inviato: mercoledì 19 novembre 2008, 8:33
da patel
per ripristinare il grub come era inizialmente fai dalla live usb

Codice: Seleziona tutto

sudo grub
find /boot/grub/menu.lst 
se una delle risposte è (hd0,0)

Codice: Seleziona tutto

root (hd0,0)
setup (hd0)
quit 
altrimenti posta il risultato
poi sul menu.lst di Xandros inserisci

Codice: Seleziona tutto

title      Ubuntu 8.04.1, kernel 2.6.24-21-eeepc
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.24-21-eeepc root=UUID=2b9400ac-8b1c-4ac1-aa1f-39609bdaea00 ro quiet splash
initrd      /boot/initrd.img-2.6.24-21-eeepc
quiet
e riavvii senza la penna usb inserita

Re: Asus eee Pc 701 Grub error 21

Inviato: mercoledì 19 novembre 2008, 12:33
da pungu86

Re: Asus eee Pc 701 Grub error 21

Inviato: mercoledì 19 novembre 2008, 20:02
da red
Grande Patel!!
Non so proprio come sdebitarmi... Risolto!!!

se per te non è troppo disturbo, mi potresti spiegare che cosa ho fatto digitando quei comandi?
Di nuovo grazie

Re: [Risolto] Asus eee Pc 701 Grub error 21

Inviato: giovedì 20 novembre 2008, 6:23
da patel
sudo grub # lancia il grub

find /boot/grub/menu.lst  # cerca la posizione del menù, quella di xandros essendo il primo installato doveva essere (hd0,0)

root (hd0,0) # imposta l'indirizzo del menu

setup (hd0) # lo scrive nel MBR del disco di boot

quit # esci dal grub

Re: [Risolto] Asus eee Pc 701 Grub error 21

Inviato: giovedì 20 novembre 2008, 8:36
da red
Ok grazie ancora!!