Reglamento general de los foros   •   FAQ   •   Buscar en el foro •  Registrarse | Iniciar sesión 



Foros Linux » General » Instalación de distribuciones


Nuevo tema Este tema está cerrado, no puede editar mensajes o enviar nuevas respuestas
 [ 6 mensajes ] 
Patrocinadores

Autor
Buscar:
Mensaje

Desconectado
Forista Nuevo
Forista Nuevo
Avatar de Usuario

Registrado: Vie Jul 04, 2008 11:00 pm
Mensajes: 2

Nota Publicado: Sab Jul 05, 2008 9:16 am 
Arriba  
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

## ## End Default Options ##

title      Ubuntu 8.04.1, kernel 2.6.24-19-generic
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-19-generic root=UUID=9558afe1-9e83-459e-9d62-289414d85f97 ro quiet splash
initrd      /boot/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      /boot/vmlinuz-2.6.24-19-generic root=UUID=9558afe1-9e83-459e-9d62-289414d85f97 ro single
initrd      /boot/initrd.img-2.6.24-19-generic

title      Ubuntu 8.04.1, kernel 2.6.24-16-generic
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=UUID=9558afe1-9e83-459e-9d62-289414d85f97 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
quiet

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 :(

 Perfil  


Nota Publicado: Sab Jul 05, 2008 10:09 am 
Arriba  
Como estás en el CD live lanza una cónsola y tipea:

Código:
sudo su [Enter]
gparted [Enter]


Aquí está el significado del error:

http://www.gentoo.org/doc/es/grub-error-guide.xml

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.

  

Desconectado
Forista Nuevo
Forista Nuevo
Avatar de Usuario

Registrado: Vie Jul 04, 2008 11:00 pm
Mensajes: 2

Nota Publicado: Sab Jul 05, 2008 11:08 am 
Arriba  
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-19-generic
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.24-19-generic root=UUID=9558afe1-9e83-459e-9d62-289414d85f97 ro quiet splash
initrd      /boot/initrd.img-2.6.24-19-generic
quiet

title      Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.24-19-generic root=UUID=9558afe1-9e83-459e-9d62-289414d85f97 ro single
initrd      /boot/initrd.img-2.6.24-19-generic

title      Ubuntu 8.04.1, kernel 2.6.24-16-generic
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.24-16-generic root=UUID=9558afe1-9e83-459e-9d62-289414d85f97 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
quiet

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.

 Perfil  

Desconectado
Forista Distinguido
Forista Distinguido
Avatar de Usuario

Registrado: Mié Jul 19, 2006 11:00 pm
Mensajes: 1075
Ubicación: Bogotá, Colombia

Nota Publicado: Sab Jul 05, 2008 1:41 pm 
Arriba  
usa el buscador del foro hay un tema postit con el mismo título incluso:
http://www.espaciolinux.com/foros-tema-t36049.html

_________________
Gentoo 10.1 amd64 + LXDE
AMD Phenom II x4 945 3.0Ghz // 4Gb DDR3 (1333)
ATI Radeon HD4650 1Gb
GNU/Media

 Perfil Email WWW YIM  


Nota Publicado: Dom Jul 06, 2008 8:12 am 
Arriba  
ppoolloo escribió:
...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):

Código:
## default num

default      1

## timeout sec

timeout      5

# Pretty colours
color cyan/blue white/blue

gfxmenu /boot/grub/message.elive

title      Debian GNU/Linux, kernel 2.6.18-6-686
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.18-6-686 [color=red]root=/dev/sda5[/color] ro
initrd      /boot/initrd.img-2.6.18-6-686
savedefault
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

# 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 [color=red]root=/dev/sda8[/color] vga=0x31a resume=/dev/sda7 splash=silent showopts
initrd      /boot/initrd-2.6.18.8-0.9-default
savedefault
boot

title      Debian Sid GNU/Linux
root      (hd1,5)
kernel      /boot/vmlinuz-2.6.25-2-686 [color=red]root=/dev/sdb6[/color] ro
initrd      /boot/initrd.img-2.6.25-2-686
savedefault
root


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):

Código:
zeito@Debiansid:~$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 jul  6 04:58 0D339857773D544D -> ../../sdb5
lrwxrwxrwx 1 root root 10 jul  6 04:58 4771B8EB61556472 -> ../../sda3
lrwxrwxrwx 1 root root 10 jul  6 04:58 751653d7-5a99-49bf-8eb4-b445d50f5265 -> ../../sda9
lrwxrwxrwx 1 root root 10 jul  6 04:58 752394a5-a972-4a29-a23d-2d76bae54eb1 -> ../../sdb2
lrwxrwxrwx 1 root root 10 jul  6 04:58 75af3a99-c065-411b-9301-8b5fce0efa25 -> ../../sda8
lrwxrwxrwx 1 root root 10 jul  6 04:58 76d44bc5-e0d6-4631-9331-da342e108d09 -> ../../sda5
lrwxrwxrwx 1 root root 10 jul  6 04:58 ab4998cb-6a6d-40f3-8a57-807d6bf1a8b3 -> ../../sda6
lrwxrwxrwx 1 root root 10 jul  6 04:58 bdd55713-a700-4e39-962b-ffc46cffc1f3 -> ../../sdb6
lrwxrwxrwx 1 root root 10 jul  6 04:58 c57ae8b9-40fd-4513-9701-d19efe74cdfe -> ../../sdb1
lrwxrwxrwx 1 root root 10 jul  6 04:58 d72d3250-b7eb-469c-a1a0-7681d6940416 -> ../../sdb3
lrwxrwxrwx 1 root root 10 jul  6 04:58 E4B49250B49224D8 -> ../../sda1
lrwxrwxrwx 1 root root 10 jul  6 04:58 EEC0F49BC0F46AEB -> ../../sda2

  

Desconectado
Forista Legendario
Forista Legendario
Avatar de Usuario

Registrado: Vie Dic 07, 2007 12:00 am
Mensajes: 2108
Ubicación: /dev/Argentina/buenos aires

Nota Publicado: Dom Jul 06, 2008 8:34 am 
Arriba  
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

http://www.espaciolinux.com/foros-tema-t36049.html

tema cerrado !

_________________
Amd 3600 x2 Dual Core - 2 gb Ram - Nvidia Gforce 7300 GS - Sata2 250 GB
--
Corriendo Slackware 12

 Perfil Email  
Mostrar mensajes previos:  Ordenar por  
 [ 6 mensajes ] 
Nuevo tema Este tema está cerrado, no puede editar mensajes o enviar nuevas respuestas

Saltar a:  


¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 3 invitados

No puede abrir nuevos temas en este Foro
No puede responder a temas en este Foro
No puede editar sus mensajes en este Foro
No puede borrar sus mensajes en este Foro
No puede enviar adjuntos en este Foro

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group :: Style based on FI Subice by phpBBservice.nl :: Todos los horarios son UTC - 6 horas
Traducción al español por Huan Manwë
phpBB SEO