topic title: sidux kernel hangs
Posts: 26
unohu62
Joined: 15 Aug 2009
#1
I installed kernel 2.6.30.5.slh through smxi but upon booting it hangs. How do I get the grub/menu.list to recognize and boot into this and future kernels? Like setting UUID

I'm running antiX strictly sid repos only. Here is my grub/menu.list

timeout 15
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message

title antiX at hda1, kernel 2.6.27-1-mepis-smp
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-1-mepis-smp root=/dev/hda1 nomce quiet nosplash vga=791 resume=/dev/hda2
initrd /boot/initrd.img-2.6.27-1-mepis-smp
boot

title MEMTEST
kernel /boot/memtest86+.bin

### 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=/dev/hda1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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=

## 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=(single-user) single
# altoptions=(single-user 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 Debian GNU/Linux, kernel 2.6.30-5.slh.1-sidux-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.30-5.slh.1-sidux-686 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.30-5.slh.1-sidux-686

title Debian GNU/Linux, kernel 2.6.30-5.slh.1-sidux-686 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.30-5.slh.1-sidux-686 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.30-5.slh.1-sidux-686

title Debian GNU/Linux, kernel 2.6.27-1-mepis-smp
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-1-mepis-smp root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.27-1-mepis-smp

title Debian GNU/Linux, kernel 2.6.27-1-mepis-smp (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-1-mepis-smp root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.27-1-mepis-smp

title Debian GNU/Linux, kernel memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

Thankx in advance.
Robert
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#2
If you run, as root,"blkid", you will get the uuid's of the partitions. Once you have the uuid's just edit you /boot/grub/menu.lst, just the line that starts with #kopt=root=. Change /dev/sd?? to the uuid you got earlier.
Example:

Code: Select all

# kopt=root=UUID=5404e421-0ca5-41e1-96cf-cb03ab0620bb ro splash=silent,fadein,theme:natural_antix quiet CONSOLE=/dev/tty1 vga=791 i8042.nomux=1
Notice How I also have other boot options on this line. Anything you need to pass to the kernel should be placed on this line so everytime you install a new kernel the options will be added. Smxi and debian run update-grub at the end of a kernel install so the options are automagically added. No brainer.

I would also change the /etc/fstab to use the uuid's as well.
Posts: 26
unohu62
Joined: 15 Aug 2009
#3
Here is my output after running blkid eriefisher. Do I add all of it, quotations and all?
Posts: 26
unohu62
Joined: 15 Aug 2009
#4
/dev/hda1: UUID="d517332a-fc92-4a81-afdb-6f25f3b332f1" TYPE="ext3"
/dev/hda2: UUID="3eeae36a-e246-4842-9bf9-0774d8e1dd3d" TYPE="swap"
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#5
In /boot/grub/menu.lst
change this line:
# kopt=root=/dev/hda1 ro
to

# kopt=root=UUID=d517332a-fc92-4a81-afdb-6f25f3b332f1 ro nomce quiet nosplash vga=791

Then in a terminal as root:
update-grub
Posts: 26
unohu62
Joined: 15 Aug 2009
#6
Thankx anticapitalista! I was able to update to the new kernel now. I'm really enjoying anitX having made the switch from sidux. Keep up the good work!

Regards,
Robert
eriefisher
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#7
I would install the Liquorix kernel. it seems to boot quicker and works very well. And no sidux.
Posts: 26
unohu62
Joined: 15 Aug 2009
#8
Thankx eriefisher, from now on I will use Liquorix kernels.

Regards,
Robert