LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-21-2005, 12:08 AM   #1
Sorata-Daidouji
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Distribution: Slackware 10.0
Posts: 9

Rep: Reputation: 0
Can't Boot Correct Kernel in Slack 10.0


Sorry, maybe there's a post like this one, but i looked all over the forums (it took me like 2 hrs o less) and I didn't find a problem like this....

I use Slackware 10.0 which i boot from the Instalation CD, that means i have LILO installed at the Super Block and instead of the Master Boot Record, beacuse if i do that, when i try to boot Windows Xp (Home Ed SP 1) it boots the "System REcovery Utility" instead of the System itself... if i boot linux it boots perfectly... so i installed it (Linux) in a diferent Hard Drive and installed LILO at the Super Block instead of the Master Boot Record... it worked well but when i compliled a new Kernel... i used 2.4.20 and i upgraded to 2.6.12, so after making all the compiling stuff, i reboot and it stills boots with the 2.4.20 Kernel, then i run the "LILO" comand and i get an error like this:

#: LILO
Warning: /dev/hdd1 is no on the first disk
Added Windows *
Added Slack-2.6.12
#:

i want to know if i can fix the problem, or that the problem is that i have LILO installed at the Super Block instead of the Master Boot Record...

thanks a lot, and if there is a post like this, post the URL here... thanks...
 
Old 06-21-2005, 12:23 AM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
First, there is really no reason to use the install CD to boot Slackware. If installing Lilo to the super block works best for you, then by all means do it that way. As a side note, that is the safest way to do it anyway. But you can use Windows XP's bootmanager to boot it vs the CD.

Your best bet is to follow the info in the SLackware book at http://www.slackware.com/book/index....ce=x1776.html. If you'll scroll down to the bottom, you'll see a section called Windows NT. Follow those insrtuctions to get XP's bootmanager to boot Slackware.

Second, you'll need to post your lilo.conf before we can be of much specific help. However, I noticed that you apparently have a listing for Windows in your lilo.conf, ie "Added Windows *". There is no need for this since you are not using lilo to boot Windows.

As to how to get the new kernel booting. You'll need to edit your lilo.conf file, move the kernel files to boot, and then re-run lilo. You'll then need to reobtain an image of the boot sector and move that to your windows partition if you want XP's bootloader to boot it. You get the image by running something like this after running lilo:
Code:
dd if=/dev/hda2 of=/tmp/bootsect.lnx bs=1 count=512
That command will need to be modified to suit your situation though, if Slackware isn't on hda2. You'll also need to copy the resulting file, /tmp/bootsect.lnx, to the Windows parition someway. If it's an NTFS partition, then the best way is to use a floppy.
 
Old 06-21-2005, 07:16 AM   #3
Sorata-Daidouji
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Distribution: Slackware 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
thanks a lot for your reply DaHammer, i'll post the Lilo.conf as soon as i get to my house (i'm replying from school actually ) but as soon as i get to my computer i'll post my Lilo.conf... thanks a lot
 
Old 06-24-2005, 12:04 AM   #4
Sorata-Daidouji
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Distribution: Slackware 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
new problem ¬¬

i did what DaHammer told me... but when Windows boots Slack, it comes with this..

Slackware 2.6.12.1 Selected
Bioscheck Completed
Ok... Booting Kernel...

ok, those aren't the exact messages that come out... but if you boot Slack with windows, you will see them on every computer.. my pc FREEZES after the "...... Ok Booting Kernel" message. I don't know if the prob has to be with the Kernel Config or with LILO :S... my lilo conf it's like this:

# Slack NEW begins
image = /boot/vmlinuz-2.6.12.1
root = /dev/hdd1
label = Slack_2.6.12.1
read-only
# Slack NEW ends
# Slack OLD begins
image = /boot/vmlinuz-old
root = /dev/hdd1
label = Slack_OLD
read-only
# Slack OLD ends

is that enough for you guys to figure out where did i screwed out? please help me here.. if you need more info, just ask for it.. thanks a lot....

Last edited by Sorata-Daidouji; 06-24-2005 at 12:08 AM.
 
Old 06-25-2005, 01:50 AM   #5
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Have you tried selecting Slack_OLD? My first thought is that your current problem lies within the way you configured your new kernel. I say that because you appear to be getting to lilo now and lilo appears to find the kernel you select. So that in and of itself means that Windows is loading lilo. That's if I interrupt your above comments correctly. Anyway, here is what you should expect when you boot the PC. The Windows bootloader should appear after your BIOS loads, you should have an option there to boot either Windows or Linux. If you select Linux, then lilo should appear and list your different kernel options to boot with. Is that what's happening?

Also, yeah it would probably help if you posted the entire lilo.conf. Up near the top is a very important setting:
Code:
boot = /dev/hdd1
Going by what you posted above, that's what you should have. Note the hdd1 vs hdd. hdd1 instructs lilo to install to the super block of the first partition on that disk. If it were hdd, then it would install to the MBR. I'm sure you have that right though, else you wouldn't have gotten this far. Anyway, you're certain that hdd1 is your linux partition and the one that contains /boot?
 
Old 06-27-2005, 06:49 PM   #6
Sorata-Daidouji
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Distribution: Slackware 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
here's my Lilo.conf

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hdd1
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x32k
vga = 790
# Normal VGA console
# vga = normal
# 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/hda1
label = Windows
table = /dev/hda
# Windows bootable partition config ends
# Slack NEW Begins
image = /boot/vmlinuz-2.6.12.1
label = Slack_2.6.12.1
root = /dev/hdd1
read-only
# Slack NEW Ends
# Slack OLD Begins
image = /boot/vmlinuz-old
root = /dev/hdd1
label = Slack_Old
read-only
# Slack OLD Ends

hope it helps you to get an answer.. thanks you've helped me a lot... xD
 
Old 06-27-2005, 07:37 PM   #7
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Looks fine. As I said above, have tried booting the old kernel?
Code:
boot: Slack_Old
or else the new one with VGA normal?
Code:
boot: Slack_2.6.12.1 vga=normal
 
Old 06-27-2005, 11:46 PM   #8
Sorata-Daidouji
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Distribution: Slackware 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
i've tried to do that, but it freezes too.... :S i've tried to boot the new kernel and the old one... but none of them boot... they always get stuck after the "...Ok Booting the Kernel" :S... do you think i must reinstall and recompile everything?
 
Old 06-28-2005, 08:09 AM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
every time you run lilo, you'll have to make a new copy of the bootsector ( the dd if=hdd1 of=....etc thing )
and move that to your windos partition.
did you do that the last time ?

egag
 
Old 06-28-2005, 06:18 PM   #10
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
In addition to what egag said. It looks like a VESA problem to me, like you left something related to it out of the kernel, which is why I said to try "vga=normal".

Is the old kernel a default slackware kernel or one you've compiled yourself as well? If the latter then you may have to install a default slackware kernel, like the one you use on the boot CD since you know it works, and go from there. But again, the "vga=normal" should at least get you to the point of seeing the kernel bootup process and any errors that occur.
 
Old 06-29-2005, 12:17 AM   #11
Sorata-Daidouji
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Distribution: Slackware 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
thanks egag i've done that but that didn't solve the problem..........

DaHammer i'll try what you've said about the "VGA=NORMAL" stuff.... and yes... the old Kernel it's the kernel that came with the distro CD... Slackware 2.4.29 and i compiled 2.6.12.1.... so it's the original one... i'll try that option you told me...
 
Old 06-30-2005, 12:18 PM   #12
Sorata-Daidouji
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Distribution: Slackware 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
hey guys i tried what you told me about the "VGA = NORMAL" but it didn't have any effect on it..... :S the errors stays like i told you.... :S
 
Old 06-30-2005, 01:47 PM   #13
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
It's
Code:
Slack_2.6.12.1 vga=normal
or
Code:
Slack_Old vga=normal
typed in exactly like that. Not VGA = NORMAL or VGA=NORMAL.
 
Old 07-01-2005, 09:25 PM   #14
Sorata-Daidouji
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Distribution: Slackware 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
man, sorry.. but that didn't work... it still freezes after the "Ok booting Kernel..." stuff.... if you think there's no solution to it, i'll just erase and reinstall.... =S

Last edited by Sorata-Daidouji; 07-01-2005 at 09:26 PM.
 
Old 07-03-2005, 01:27 AM   #15
Sorata-Daidouji
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Distribution: Slackware 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
hey guys.... i reinstalled everything... but when i boot the kernel reboots the computer.... and if i boot the old kernel it boots normally :S
 
  


Reply



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
CD does not boot but BIOS correct vees Linux - Hardware 3 11-09-2005 12:39 PM
Slack 10.0 with 2.6 kernel = no boot? Oderus Slackware 2 10-12-2004 06:22 PM
Slack 10 kernel 2.6 Boot Problem Myrkul23 Linux - General 6 07-11-2004 04:39 PM
can,t boot slack after kernel upgrade. little_ball Slackware 3 03-30-2004 06:40 PM
Correct Way Of Kernel Patch? bongski55 Slackware 1 08-02-2003 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:04 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
Open Source Consulting | Domain Registration