LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2009, 05:55 AM   #1
saivin
Member
 
Registered: Dec 2008
Location: Bengaluru, India
Distribution: CentOS, openSUSE, Mandriva, Slackware
Posts: 111

Rep: Reputation: 19
Unable to boot CentOS from Slackware lilo


Hi all,
I'm using lilo to multiboot Ubuntu and Centos along with Slackware. Ubuntu boots fine but Centos does not. I get kernel panic message.

The following is my fdisk -l information:
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000080

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1958    15727603+  83  Linux
/dev/sda2   *        1959        3916    15727635   83  Linux
/dev/sda3            3917       17623   110101477+   5  Extended
/dev/sda4           17624       19457    14731605   83  Linux
/dev/sda5            3917        3941      200781   83  Linux
/dev/sda6            3942        4202     2096451   82  Linux swap
/dev/sda7            4203       15951    94373811   83  Linux
/dev/sda8           15952       17623    13430308+  83  Linux
where,
a) /dev/sda1 is Slackware
b) /dev/sda2 is Ubuntu
c) /dev/sda5 is seperate /boot for Centos (I had previously installed F11-Preview so had made seperate /boot with ext3.)
d) /dev/sda8 is Centos

Here is my lilo.conf:
Code:
boot = /dev/sda

bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
append=" vt.default_utf8=0"
prompt
timeout = 50
vga = 773

image = /boot/vmlinuz
  root = /dev/sda1
  label = Slackware
  read-only

image = /mnt/ubu/boot/vmlinuz-2.6.28-15-generic
  root = /dev/sda2
  label = Ubuntu
  initrd = /mnt/ubu/boot/initrd.img-2.6.28-15-generic
  read-only

image = /mnt/cent/vmlinuz-2.6.18-128.7.1.el5
  root = /dev/sda8
  label = CentOS
  initrd = /mnt/cent/initrd-2.6.18-128.7.1.el5.img
  read-only
When I try to boot Centos I get:
Code:
Trying to resume from /dev/sda6
No suspend signature on swap, not resuming
Creating root device
...
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys mounting internal defualts..
..switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
I tried to change root to /dev/sda5 which is my Centos /boot but even then I cant boot.

What should I try?
 
Old 09-11-2009, 08:03 PM   #2
adamben
Member
 
Registered: Feb 2007
Distribution: slackware,gentoo,ubuntu
Posts: 50

Rep: Reputation: 17
Just a guess here, but seeing as no one else as responded - what can it hurt?

Looks like you are getting a missing /dev error....

you could try an append option in your CentOS section...maybe something like this(again, just a shot in the dark here)

append = "resume=/dev/sda6 devfs=mount"
 
Old 09-11-2009, 08:29 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
initrd = /mnt/cent/initrd-2.6.18-128.7.1.el5.img

Here's another guess (since the LILO config looks correct from what I can tell).

Please double-check that there are no typos in the name of the initrd file there, on the CentOS section of the lilo.conf.

The boot error tells me that there is no support for the filesystem used on /dev/sda8 (or some similar error), which in turn, hints to me that the initrd is not being loaded.

Sasha
 
Old 09-11-2009, 10:27 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
And another guess ... where did you tell centos and ubuntu
respectively where to put "their" boot-loaders? I'll hazard
the guess that for ubuntu it was it's root?



Cheers,
Tink
 
Old 09-12-2009, 12:54 AM   #5
saivin
Member
 
Registered: Dec 2008
Location: Bengaluru, India
Distribution: CentOS, openSUSE, Mandriva, Slackware
Posts: 111

Original Poster
Rep: Reputation: 19
@adamben, will try what you suggested.

@Sasha, the typo is correct I checked several times.

@Tink,
Ubuntu was my main os till now and I don't remember if I meddle with bootloader during installation. Which means it must have gone into MBR. Whereas for Cent, I had selected to install bootloader on...err what? I don't remember now. :-(

Hmm...as much as I can remember, I had to create a seperate /boot with ext3 thanks to F11-Preview. Then I decided to try CentOS and during Cent install I selected swap, seperate /boot on /dev/sda5 and / on /dev/sda8. I did not install grub on MBR, thats for sure. But I can't remember whether I choose to install on root partition or chose not to install grub. How to find out?

Btw, is there an option of "configfile ...", like it is in grub?
 
Old 09-12-2009, 08:16 AM   #6
saivin
Member
 
Registered: Dec 2008
Location: Bengaluru, India
Distribution: CentOS, openSUSE, Mandriva, Slackware
Posts: 111

Original Poster
Rep: Reputation: 19
To update:
@adamben, I tried your suggestion. It does not help.

Fed up and not sure if this is a lilo problem (grub used to boot Centos fine), I installed grub. But when I do grub-install it complains about not being able to read stage1 properly. Don't know what to do. Am thinking of reinstalling Ubuntu's grub on MBR.

P.S: Strangely, on my desktop, Debian is not able to boot Slackware 13(it used to boot Slack 12.1 though). :-(
 
Old 09-13-2009, 07:58 PM   #7
adamben
Member
 
Registered: Feb 2007
Distribution: slackware,gentoo,ubuntu
Posts: 50

Rep: Reputation: 17
I haven't tried this myself, but perhaps it could be useful to you ( If anyone has tried it and would recommend against it - please - pipe up ).

http://www.supergrubdisk.org/
 
Old 09-14-2009, 11:02 AM   #8
saivin
Member
 
Registered: Dec 2008
Location: Bengaluru, India
Distribution: CentOS, openSUSE, Mandriva, Slackware
Posts: 111

Original Poster
Rep: Reputation: 19
hmm, I have put Ubuntu's grub on MBR again. All distros are booting fine now. ;-)

@adamben, will check that link. Have seen many others recommend super-grub before. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to uninstall Slackware lilo dharjee Linux - Newbie 3 07-09-2008 10:09 AM
Video card issues, unable to boot CentOS 4.2 kryptondog Linux - Hardware 0 01-15-2006 12:44 PM
Slackware installation - Unable to install LILO csvke Slackware 8 01-19-2005 01:24 AM
Unable to boot to WindowsXP Pro from LILO, Slackware 10. (Hangs) DaneM Slackware 5 07-13-2004 02:38 AM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 04:50 PM


All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration