Publicado: Sab Jul 05, 2008 9:16 amAsunto: GRUB error 17
Hola buenas,
Soy nuevo en linux, me he decidido empezar con Ubuntu:
Llevo ya un par de días haciéndome con él, y ahora me empezaba a quedar corto de espacio de disco duro en la particion del sistema operativo, por lo que decidí usar el partition magic a través de un live CD (no quiero volver a pisar windows, pero ahí está su partición) y le quité espacio a Windows para dárselo a Ubuntu. El partition magic finalizó correctamente y al reiniciar GRUB me daba ese error, y no tengo ni idea de solucionarlo, pero la razón seguramente sea que al cambiar de tamaño las particiones he corrompido algo...
Os dejo mi menu.lst por si os sirve de algo (estoy en un LiveCD de Ubuntu):
Código:
# 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=9558afe1-9e83-459e-9d62-289414d85f97 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
title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=9558afe1-9e83-459e-9d62-289414d85f97 ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,6)
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 Windows NT/2000/XP (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
Muchas gracias, ya que no tengo ni idea de lo que puedo hacer para restablecer a como estaba antes
Verifica cuales son las diferencias entre tu menu.lst y lo que te arroja Gparted (recuerda que si tienes un disco duro, lo que representa hda5 para Gparted eso sería, en el menu.lst, (hd0,4) para una entrada y root=/dev/hda5 para la otra). Para la próxima, NUNCA uses Partition Magic para reducir el tamaño de particiones. El propio Gparted lo hace y mucho mejor.
Creía que te había entendido correctamente y al ver estos datos en el GParted
GParted escribió:
/dev/sda1___________________ntfs
/dev/sda2___________________extended
___/dev/sda5________________ntfs
___/dev/sda6________________ext3
___/dev/sda7________________ntfs (esta es una partición de datos cuando tenia windows, no se por que está dentro de sda2...)
cambié todos los sitios donde ponía "(hd0,6)" por "(hd0,1)"
Código:
.
.
.
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,5)
# kernel /vmlinuz root=/dev/hda2 ro
#
.
.
.
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,5)
.
.
.
## ## End Default Options ##
title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=9558afe1-9e83-459e-9d62-289414d85f97 ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,5)
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 Windows NT/2000/XP (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
Pero nada, el mismo error... ¿Qué estoy haciendo mal?
Muchas gracias por la respuesta
EDITO: vale, cogí 1 creyendo que era el 2, pero es el 5 (6), asisque cambio el código por como lo he hecho ahora, ya que sigue sin funcionar.
usa el buscador del foro hay un tema postit con el mismo título incluso:
http://www.espaciolinux.com/foros-tema-t36049.html _________________ Gentoo amd64 2007.0 // KDE 4.1 // Fluxbox 1.0.0
AMD Athlon64 3200+ 2.2Ghz // 1Gb + 256Mb RAM
Ati Radeon 9550 256Mb
GNU/Media
...Pero nada, el mismo error... ¿Qué estoy haciendo mal?
Muchas gracias por la respuesta
EDITO: vale, cogí 1 creyendo que era el 2, pero es el 5 (6), asisque cambio el código por como lo he hecho ahora, ya que sigue sin funcionar.
Te señalé arriba que los cambios deben hacerse por duplicado para cada entrada en el menu.lst. No obstante, son diferentes. Ese es tu problema. Te falta el otro cambio que también es importante que es el del UUID; sistema que usa Ubuntu. Cuando tenía instalado el Ubuntu cambié esa nomenclatura por la usual de, por ejemplo, /dev/hda1 (OJO: ES UN EJEMPLO) y funcionó. Tienes que colocar el código UUID correcto para el dispositivo o sustituirlo por su expresión equivalente para que arranque. Si es (hd0,6) sería /dev/hda7 ó /dev/sda7; depende del tipo de discos que tengas (ATA ó SATA). Te dejó una copia del mio para que hagas los cambios por analogía ( mis discos son SATA ó SATA2):
# 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
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda8.
title openSUSE 10.2 - 2.6.18.8-0.9 (on /dev/sda8)
root (hd0,7)
kernel /boot/vmlinuz-2.6.18.8-0.9-default root=/dev/sda8 vga=0x31a resume=/dev/sda7 splash=silent showopts
initrd /boot/initrd-2.6.18.8-0.9-default
savedefault
boot
Lo que está en rojo tu lo tienes con UUID pero con esta nomenclatura también arranca. Sin embargo, si los quieres con UUID ejecuta en una cónsola esto:
Código:
ls -l /dev/disk/by-uuid
y tendrás los volúmenes UUID para cada dispositivo. Esta es la salida para mi sistema (ejecútalo en una pantalla maximizada para que exista legibilidad):
por favor seguir el link que ha dado toche, es el mismo tema y enseña como solucionarlo, no hace falta que dupliquemos post con el mismo contenido. !! aca dejo el link nuevamente
No puedes publicar nuevos temas en este foro No puedes responder a temas en este foro No puedes editar tus mensajes en este foro No puedes borrar tus mensajes en este foro No puedes votar en encuestas en este foro