LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel panic: lilo.conf: root="UUID=..." (http://www.linuxquestions.org/questions/slackware-14/kernel-panic-lilo-conf-root%3D-uuid%3D-929098/)

Azevedo 02-13-2012 07:34 AM

Kernel panic: lilo.conf: root="UUID=..."
 
Hey everyone!

I'm using this custom setting on lilo.conf to boot Slackware 13.37 and it gives me the kernel panic related to it.

lilo.conf:
root="UUID=..."

I have to use root="UUID=..." instead of root=/dev/sdX1 because X can change on every boot.

Any help?

Thanks

andrewthomas 02-13-2012 08:48 AM

When using UUID's, one must also use an initrd.

Azevedo 02-13-2012 09:25 AM

Thank you Andrew!

Pardon my newbie ignorance, but how do I configure this initrd?
Is there any disavantages using it?

hitest 02-13-2012 10:14 AM

Quote:

Originally Posted by Azevedo (Post 4601250)
Thank you Andrew!

Pardon my newbie ignorance, but how do I configure this initrd?
Is there any disavantages using it?

Here is an article that should answer some of your questions.

http://slackware.osuosl.org/slackwar.../README.initrd

TSquaredF 02-13-2012 10:58 AM

If you don't like using UUID (which I don't, in my own head I can never seem to match a UUID to a particular disk), the same initrd will allow you to use:
Code:

ROOT=LABEL=whatever
If you are still using the huge kernel, this is also a good time to put your filesystem in the initrd, per the above referenced README.initrd, & move to the generic kernel.
Regards,
Bill

Azevedo 02-15-2012 11:48 AM

Quote:

Originally Posted by TSquaredF (Post 4601300)
If you don't like using UUID (which I don't, in my own head I can never seem to match a UUID to a particular disk), the same initrd will allow you to use:
Code:

ROOT=LABEL=whatever
If you are still using the huge kernel, this is also a good time to put your filesystem in the initrd, per the above referenced README.initrd, & move to the generic kernel.
Regards,
Bill

And how do I get the disk labels?


blkid -o list -c /dev/null
I can find the UUID

hotchili 02-15-2012 02:13 PM

Good day,

you have to set the LABEL yourself:
http://tldp.org/HOWTO/html_single/Pa.../#volumelabels

I used it to boot from a usb stick, worked well.

TSquaredF 02-15-2012 03:12 PM

Yes, as hotchili said, you make your own labels, thus the label may mean something to you in several months, when you have to reacquaint yourself with them.The above link deals with ext2/3/4 filesystems. If you use something else, you will have to research how to label the partitions.
Regards,
Bill

Azevedo 02-15-2012 08:04 PM

Thank you guys!

This LDP is the ultimate kickass! :)

Azevedo 02-17-2012 04:46 PM

Ok, thanks everyone! Now it boots after initrd is set up.

But then the system hangs up with these messages:
ERROR: no /sbin/init found on rootdev
/bin/sh: can't access tty; job control turned off


I added the entries on lilo.conf boot = "UUID: ..." and initrd = /boot/inird.gz.
Something like that

Maybe I missed something on /etc/lilo.conf?

Thanks :cool:

TSquaredF 02-17-2012 05:26 PM

That error generally means that you have not selected the proper root partition in the "root=whatever" statement. I use grub-2, this is the way I'm set up:
Quote:

linux /boot/vmlinuz-generic-3.2.2 root=LABEL=current ro
initrd /boot/initrd.gz
LILO will be different, but I don't know LILO, so can't tell you how.
Regards.
Bill

Azevedo 02-17-2012 06:21 PM

I followed the instructions here: http://slackware.osuosl.org/slackwar.../README.initrd

mkinitrd -c -k 2.8.6.* -m ext4 -f ext4 -r /dev/sdb1

The command builds the /boot/initrd.gz succefully.
I reboot and it can't find the root even setting lilo to use initrd + UUID.

Now I'm back to beggining of my problem:

On reboot, /dev/sdb1 is not the same drive/partition.
I have 4 eSata drivers which can be detected in different orders /dev/sd* on each boot up (because not always all 4 drives are turned on).

Uzuki 02-17-2012 08:28 PM

Quote:

Originally Posted by Azevedo (Post 4601194)
Hey everyone!

I'm using this custom setting on lilo.conf to boot Slackware 13.37 and it gives me the kernel panic related to it.

lilo.conf:
root="UUID=..."

I have to use root="UUID=..." instead of root=/dev/sdX1 because X can change on every boot.

Any help?

Thanks

you forgot append before root=UUID=...
It should be like
Code:

append = "root=UUID=your disk UUID"

Azevedo 02-19-2012 11:21 AM

Hey everyone!

Thanks for the replies. It still won't boot. The boot error is basically, it can't mount/find the root drive.
I tried with HDD UUID and LABEL.

One time it booted but when the root login is prompted, usb keyboard, everything else is locked.

Please, check the output below:

mkinitrd -c -k 2.6.29.6 -m ext4 -f ext4 -r /dev/sdb1
Code:

OK: /lib/modules/2.6.29.6/kernel/lib/crc16.ko added.
OK: /lib/modules/2.6.29.6/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/2.6.29.6/kernel/fs/mbcache.ko added.
OK: /lib/modules/2.6.29.6/kernel/fs/ext4/ext4.ko added.

lilo.conf
Code:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:

# append=" vt.default_utf8=0 root=UUID=56c85790-3356-43ee-9261-06d086552a59"
append=" vt.default_utf8=0 label=slackware"

boot = /dev/sdb
default = "Linux"

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x64k
# vga = 791
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
#vga=791
# VESA framebuffer console @ 1024x768x32k
#vga=790
# VESA framebuffer console @ 1024x768x256
#vga=773
# VESA framebuffer console @ 800x600x64k
#vga=788
# VESA framebuffer console @ 800x600x32k
#vga=787
# VESA framebuffer console @ 800x600x256
#vga=771
# VESA framebuffer console @ 640x480x64k
#vga=785
# VESA framebuffer console @ 640x480x32k
#vga=784
# VESA framebuffer console @ 640x480x256
#vga=769
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda1
  label = Windows
  table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins

image = /boot/vmlinuz
#  root = /dev/sdb1
#  root = "UUID=56c85790-3356-43ee-9261-06d086552a59"
  root = "LABEL=slackware"
  initrd = /boot/initrd.gz

  label = Linux
  read-only
# Linux bootable partition config ends

Thanks for any help!

Uzuki 02-19-2012 10:26 PM

Quote:

Originally Posted by Azevedo (Post 4606662)
Hey everyone!

Thanks for the replies. It still won't boot. The boot error is basically, it can't mount/find the root drive.
I tried with HDD UUID and LABEL.

One time it booted but when the root login is prompted, usb keyboard, everything else is locked.

Please, check the output below:

mkinitrd -c -k 2.6.29.6 -m ext4 -f ext4 -r /dev/sdb1
Code:

OK: /lib/modules/2.6.29.6/kernel/lib/crc16.ko added.
OK: /lib/modules/2.6.29.6/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/2.6.29.6/kernel/fs/mbcache.ko added.
OK: /lib/modules/2.6.29.6/kernel/fs/ext4/ext4.ko added.

lilo.conf
Code:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:

# append=" vt.default_utf8=0 root=UUID=56c85790-3356-43ee-9261-06d086552a59"
append=" vt.default_utf8=0 label=slackware"

boot = /dev/sdb
default = "Linux"

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x64k
# vga = 791
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
#vga=791
# VESA framebuffer console @ 1024x768x32k
#vga=790
# VESA framebuffer console @ 1024x768x256
#vga=773
# VESA framebuffer console @ 800x600x64k
#vga=788
# VESA framebuffer console @ 800x600x32k
#vga=787
# VESA framebuffer console @ 800x600x256
#vga=771
# VESA framebuffer console @ 640x480x64k
#vga=785
# VESA framebuffer console @ 640x480x32k
#vga=784
# VESA framebuffer console @ 640x480x256
#vga=769
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda1
  label = Windows
  table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins

image = /boot/vmlinuz
#  root = /dev/sdb1
#  root = "UUID=56c85790-3356-43ee-9261-06d086552a59"
  root = "LABEL=slackware"
  initrd = /boot/initrd.gz

  label = Linux
  read-only
# Linux bootable partition config ends

Thanks for any help!


Here is my lilo.conf, i use UUID.
Code:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=1 resume=/dev/cryptvg/swap"
compact
boot = /dev/sda

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
#vga=791
# VESA framebuffer console @ 1024x768x32k
#vga=790
# VESA framebuffer console @ 1024x768x256
#vga=773
# VESA framebuffer console @ 800x600x64k
#vga=788
# VESA framebuffer console @ 800x600x32k
#vga=787
# VESA framebuffer console @ 800x600x256
#vga=771
# VESA framebuffer console @ 640x480x64k
#vga=785
# VESA framebuffer console @ 640x480x32k
#vga=784
# VESA framebuffer console @ 640x480x256
#vga=769
# End LILO global section

image = /boot/vmlinuz-generic-3.2.1-smp-2
  initrd = /boot/initrd-3.2.1-smp-2.gz
  append = "root=UUID=e200fb08-aac0-463a-a52a-1dd577da7564"
  label = Linux
  read-only



All times are GMT -5. The time now is 02:17 PM.