LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   canīt boot updated kernel slackware current (https://www.linuxquestions.org/questions/slackware-14/can%B4t-boot-updated-kernel-slackware-current-780149/)

jcamez 01-05-2010 10:24 PM

canīt boot updated kernel slackware current
 
Hi Guys:
I updated my kernel in slackware current but canīt install lilo, when i was with my old kernel it gave an error about not finding the sda drives (they were named hda before the upgrade).
I booted into the slackware 13.0 dvd and modified fstab and lilo.conf replacing hda with sda but lilo still gives an error of not finding sda drives.
How can i install lilo so i can boot into my sistem????

Iīm really lost here.
Can anyone help???

Thanks in advance.

~sHyLoCk~ 01-05-2010 11:02 PM

Can you post your
Quote:

fdisk -l
after booting with Slackware DVD.

ponce 01-06-2010 12:40 AM

you have to substitute every occurence of /dev/hda with sda in lilo.conf but one
Code:

boot=/dev/hda
has to be left because lilo still see the drive as /dev/hda until you reboot and it needs a valid install target. then issue
Code:

lilo
and reboot.
after reboot (remember that in need you can specify the root partition with root=/dev/sdax kernel option at boot prompt) you can fix the line in lilo.conf above.

samac 01-06-2010 01:58 AM

Quote:


you have to substitute every occurence of /dev/hda with sda in lilo.conf but one
Code:

boot=/dev/hda

has to be left because lilo still see the drive as /dev/hda until you reboot and it needs a valid install target
Just had a look at my lilo.conf, setup by -current with the 2.6.32.2 kernel and boot = /dev/sda and it works fine.

samac

gegechris99 01-06-2010 02:28 PM

Quote:

Originally Posted by samac (Post 3815855)
Just had a look at my lilo.conf, setup by -current with the 2.6.32.2 kernel and boot = /dev/sda and it works fine.

samac

I'm planning to upgrade to 2.6.32.2-smp kernel and I need to use an initrd.gz image.

File README.initrd was also updated in -current and it does not contain any warning about change of drive naming convention.

So my question is: which -r option should I use:

Code:

mkinitrd -c -k 2.6.32.2-smp -m ext4 -f ext4 -r /dev/hdd2
or

Code:

mkinitrd -c -k 2.6.32.2-smp -m ext4 -f ext4 -r /dev/sdd2
Feedback from any user who upgraded kernel in -current and who's using initrd.gz image would be appreciated.

SqdnGuns 01-06-2010 02:42 PM

Right from the changelog for current, x86 and x86_64:

Mon Jan 4 21:43:02 UTC 2010
New kernels... and this deserves a mention/warning: the last bits of the "old" IDE/ATA system have been removed now. Everything should be using the libata based drivers now, so if you have any drives that are currently running as /dev/hda, /dev/hdb, etc., when you reboot with these kernels all drives will be renamed as /dev/sda, /dev/sdb, etc. If you had any /dev/sd* already, they might get renamed. Adjustments may be required in /etc/lilo.conf, /etc/fstab, the initrd, and elsewhere. Good luck!

gegechris99 01-06-2010 02:45 PM

@SqdnGuns

Yes I've read the Changelog file. My remark about lack of information about change of drive name applied to README.initrd. Thus my question regarding the most appropriate syntax for the mkinitrd command.

Based on your post, I would undestand that I need to use the -r /dev/sdd2 option.

[EDIT] I asked because I plan to run mkinitrd with 2.6.29 kernel running just after upgrading the kernel packages.

samac 01-06-2010 03:20 PM

I just copied the command for mkinitrd ext3 and modified it for ext4 and kernel 2.6.32.2 and it works just fine. Remembering of course to make a new lilo.conf entry and re-running lilo.

samac

gegechris99 01-06-2010 03:29 PM

Thanks samac for quick feedback.

But I'm not sure how to interpret your feedback regarding the -r option. Which one did you use -r /dev/hdxx or - r /dev/sdxx or nothing?

According to "man mkinitrd":

Quote:

-r root partition
Specify the device to be used as the root partition. If
this isn't given, the kernel default will be used (which is
usually fine).
As I'm using /dev/hdd2 as my Slackware partition, there is a good chance that kernel default will not be correct (or am I wrong?).

merchtemeagle 01-06-2010 03:41 PM

I also upgraded to current. I changed all occurences of hda to sda in /etc/fstab, and tried various combinations of hda and sda in lilo.conf (after which I called lilo every time), but no matter what I try, my system always stops after
Loading vmlinuz...........................................................

Is it mandatory to use initrd with this kernel version? (all my partitions are ext4)

samac 01-06-2010 03:45 PM

Quote:

mkinitrd -c -k 2.6.32.2 -m mbcache:jbd:ext4 -f ext4 -r /dev/sda1
Isn't bash history wonderful.

samac

merchtemeagle 01-06-2010 04:02 PM

Quote:

Originally Posted by merchtemeagle (Post 3816727)
Is it mandatory to use initrd with this kernel version? (all my partitions are ext4)

Quote:

Originally Posted by samac (Post 3816730)
Isn't bash history wonderful.

I take that as a yes then :p

samac 01-06-2010 04:16 PM

No it is only required when you use the generic.s kernel (recommended) if you use the huge.s kernel you will not need and initrd.gz

samac

gegechris99 01-06-2010 04:25 PM

Thank you samac.

I'll try with this syntax.

merchtemeagle 01-06-2010 04:42 PM

Quote:

Originally Posted by ponce (Post 3815786)
you have to substitute every occurence of /dev/hda with sda in lilo.conf but one
Code:

boot=/dev/hda
has to be left because lilo still see the drive as /dev/hda until you reboot and it needs a valid install target. then issue
Code:

lilo
and reboot.
after reboot (remember that in need you can specify the root partition with root=/dev/sdax kernel option at boot prompt) you can fix the line in lilo.conf above.

I managed to get my system running again by using this method. Thanks!


All times are GMT -5. The time now is 10:26 AM.