Page 1 of 2

I can't boot other OS [Solved]

Posted: 7. Aug 2013, 10:34
by Aleph
Hi friends,

I installed other OS but I can't boot it from Lilo.

What is wrong?

Code: Select all

# Archivo de configuración de LILO
# Generado por LiloSetup
#
# Inicio de la sección global de LILO
# Agregar cualquier parámetro adicional del kernel:
append = "vt.default_utf8=1 "
boot = /dev/sda
lba32
compact

# Imagen BMP de arranque.
# Bitmap en formato BMP: 640x480x8
bitmap = /boot/salix.bmp
# Colores del menú (frente, fondo, sombra, resaltado
# frente, fondo resaltado, sombra resaltada):
bmp-colors = 255,20,255,20,255,20
# Posición de la tabla de opciones: posición x, posición y, número de
# columnas, líneas por columna (máximo 15), "desborde" esto es, cuántas
# entradas tienen que haber en la primera columna antes que la siguiente
# comience a usarse. No la especificamos aquí, ya que hay una sola comuna.
bmp-table = 60,6,1,16
# Posición x del temporizador, posición y del temporizador, color de frente,
# color de fondo, color de la sombra.
bmp-timer = 65,29,0,255

# Menú estándar.
# O, puede comentar el menú de bitmap de arriba
# y usar un mensaje de arranque con el menú estándar:
# message = /boot/boot_message.txt

# Esperar hasta el fin de la demora para arrancar (si está comentada,
# arrancar la primera entrada inmediatamente):
prompt
# Demora antes que la primara entrada arranque.
# Está dada en décimas de segundo, por lo tanto, 600 por cada minuto:
timeout = 50
# Anular los valores por defecto peligrosos que reescriben la tabla de particiones:
change-rules
reset

# Consola VGA normal
vga = normal
# consola VESA framebuffer @ 1600x1200x16m

# vga=799
# Consola framebuffer VESA @ 1600x1200x64k
# vga=798
# Consola framebuffer VESA @ 1600x1200x32k
# vga=797
# Consola framebuffer VESA @ 1600x1200x256
# vga=796
# consola VESA framebuffer @ 1280x1024x16m
# vga=795
# Consola framebuffer VESA @ 1280x1024x64k
# vga=794
# Consola framebuffer VESA @ 1280x1024x32k
# vga=793
# Consola framebuffer VESA @ 1280x1024x256
# vga=775
# Consola framebuffer VESA @ 1024x768x64k
# vga=791
# Consola framebuffer VESA @ 1024x768x32k
# vga=790
# Consola framebuffer VESA @ 1024x768x256
# vga=773
# consola VESA framebuffer @ 800x600x16m
# vga=789
# Consola framebuffer VESA @ 800x600x64k
# vga=788
# Consola framebuffer VESA @ 800x600x32k
# vga=787
# Consola framebuffer VESA @ 800x600x256
# vga=771
# Consola framebuffer VESA @ 640x480x64k
# vga=785
# Consola framebuffer VESA @ 640x480x32k
# vga=784
# Consola framebuffer VESA @ 640x480x256
# vga=769
# Fin de la sección global de LILO
#
# Configuración de Lilo se puede ejecutar desde un LiveCD. Esto significa que
# lilo podría ejecutarse desde una partición Linux con 'chroot', la cual
# podría ser la primer partición Linux listada abajo.
# Por lo tanto, las siguientes rutas son relevantes solamente al
# verse desde la perspectiva de esas particiones con 'chroot'.
# Por favor, tener en cuenta esta restricción si tiene que modificar
# este archivo o Configuración de Lilo fallará.
#
# Si después quiere usar este archivo de configuración directamente
# con lilo en la línea de comandos, use la siguiente sintaxis:
# "lilo -v -C /etc/lilosetup/conf" en lugar del tradicional comando
# "lilo -v". Por supuesto, Ud tiene que ejecutar ese comando del
# sistema operativo, manteniendo /etc/lilosetup.conf y asegurarse que
# todas las particiones referenciadas en él están montadas en los puntos
# de montaje adecuados.
#
# Comienza la configuración de la partición arrancable de Linux
image = /boot/vmlinuz-huge-smp-3.2.45-smp
root = /dev/disk/by-uuid/8ada5d21-a95f-4571-8f1f-fc18f36efd6c
label = Salix
read-only
# Termina la configuración de la partición arrancable de Linux
#
# Comienza la configuración de la partición arrancable de Linux
image = /tmp/lilosetup/mnt/sda7/boot/vmlinuz-3.8.0-23-generic
root = /dev/disk/by-uuid/570ae551-c335-4963-814a-68191bc8211a
label = Peppermint
initrd = /tmp/lilosetup/mnt/sda7/boot/initrd.img-3.8.0-23-generic
read-only
# Termina la configuración de la partición arrancable de Linux
Thanks

Re: I can't boot other OS

Posted: 7. Aug 2013, 10:50
by mimosa
So, you installed Peppermint, then booted Salix, and reinstalled lilo using lilosetup?

One thing to try might be just doing that again.

Lilosetup sometimes fails when the other os has a different kernel from Salix, but that doesn't seem to have happened here. Or did you edit lilosetup.conf manually?

Are the kernel and initrd specified here for Peppermint correct (look in its /boot)?

Re: I can't boot other OS

Posted: 7. Aug 2013, 11:08
by Aleph
Hi Mimosa,
So, you installed Peppermint, then booted Salix, and reinstalled lilo using lilosetup?
Yes I did.
One thing to try might be just doing that again.
I did.
Are the kernel and initrd specified here for Peppermint correct (look in its /boot)?
I don't know, sorry...



Peppermint starts booting but stop with:

"La unidad de disco / no está lista o presente" (Sorry it's in Spanish)

Re: I can't boot other OS

Posted: 7. Aug 2013, 11:21
by mimosa
Boot Salix and mount the Peppermint partition (for instance by opening it with the file manager). Then open a terminal and do:

Code: Select all

cd /run/media/{your username}/570ae551-c335-4963-814a-68191bc8211a/boot
ls | grep generic
and post the output. This is to see if the info in the config file is right.

***

Actually, looking at the config file more closely, and given the error message, I wonder if the paths to the partitions are correct:

Code: Select all

/dev/disk/by-uuid/8ada5d21-a95f-4571-8f1f-fc18f36efd6c
/dev/disk/by-uuid/570ae551-c335-4963-814a-68191bc8211a
I'm not sure how to check this, but maybe someone else knows. EDIT Please post the output of : ls /dev/disk/by-uuid

What is your hard disk setup? Which partition is Salix installed on? Peppermint is on sda7, by the looks of it - or at least, the config thinks it is.

Re: I can't boot other OS

Posted: 7. Aug 2013, 11:31
by Aleph

Code: Select all

cd /run/media/luis/570ae551-c335-4963-814a-68191bc8211a/boot
luis[boot]$ ls | grep generic
System.map-3.8.0-23-generic
abi-3.8.0-23-generic
config-3.8.0-23-generic
initrd.img-3.8.0-23-generic
vmlinuz-3.8.0-23-generic
Salix is on sda1 and Peppermint in sda7 Grub is in / sda6 is /home for booth and sd5 is swap. No more partitions.

Code: Select all

ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 ago  7 13:00 570ae551-c335-4963-814a-68191bc8211a -> ../../sda7
lrwxrwxrwx 1 root root 10 ago  7 13:00 8ada5d21-a95f-4571-8f1f-fc18f36efd6c -> ../../sda1
lrwxrwxrwx 1 root root 10 ago  7 13:00 acef306d-9540-40f1-ad78-e675697ad14f -> ../../sda6
lrwxrwxrwx 1 root root 10 ago  7 13:00 ad04f7f3-3b13-4fa8-8207-17e7aac3af81 -> ../../sda5

Re: I can't boot other OS

Posted: 7. Aug 2013, 12:17
by mimosa
Please post the output of

Code: Select all

#parted -l
... I'm just wondering about the order of those partitions.

However, I suspect that what's going on is lilosetup hasn't got things right for Peppermint. In that case, I'm not really sure what the next step is, but someone here will know what to suggest. :)

By the way, /home for both can be complicated, because /home contains distribution-specific configuration; but since you can't even boot Peppermint, that is not yet an issue.

One way of doing it is to leave home under /, and symlink it to your actual data; in this case, where you presumably already had a separate /home for Peppermint, you could place symlinks in Salix /home to whatever you want to share with Peppermint. This can be as fine-grained as you like - for instance, you might want to share Firefox configuration and history as well as documents and so on.

EDIT Sorry, wrong way round - I see Salix came first :)

Re: I can't boot other OS

Posted: 7. Aug 2013, 12:54
by Aleph
Something seems to be wrong:

Code: Select all

parted -l
Model: ATA FUJITSU MHV2060B (scsi)
Disk /dev/sda: 60,0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Numero  Inicio  Fin     Tamaño  Typo      Sistema de ficheros  Banderas
 1      32,3kB  12,9GB  12,9GB  primary   ext4                 arranque
 2      12,9GB  60,0GB  47,1GB  extended
 5      12,9GB  17,1GB  4188MB  logical   linux-swap(v1)
 6      17,1GB  38,9GB  21,8GB  logical   ext4
 7      38,9GB  60,0GB  21,1GB  logical   ext4


Error: /dev/md0: unrecognised disk label                                  
Aviso: Error fsyncing/closing /dev/md0: Error de entrada/salida           
Reintentar/Retry/Descartar/Ignore?                                        


Re: I can't boot other OS

Posted: 7. Aug 2013, 13:58
by mimosa
That actually looks fine to me; and it may well be the items in /dev/disk/by-* aren't necessarily in disk order (though I think they are on my system). In fact, of course, they're in "alphabetical order" (it's just a directory after all), so no problem there.

Anyway, I'm afraid I'm stumped, though I'm sure the output you've posted already will help solve this.

Anyone else?

Re: I can't boot other OS

Posted: 7. Aug 2013, 14:28
by petrherynk
I am not sure about my stupidity but I would create master grub disk and use grub 2 bootloader, for example with grub-customizer. No work for you.

Re: I can't boot other OS

Posted: 8. Aug 2013, 09:56
by Aleph
Well, I changed my opinion... :)

I deleted Peppermint and installed AntiX 13, without use the /home partition.

Now both system are running well with the Grub installed by AntiX.

Solved!

Regards.