LinuxQuestions.org
Review your favorite Linux distribution.
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 11-15-2003, 06:52 PM   #1
biledaemon
Member
 
Registered: Mar 2003
Location: Somewhere between Hell and Limbo
Distribution: Slack 10.2; Debian
Posts: 57

Rep: Reputation: 15
Dual Booting Slack with a new kernel compile?


I succesfully installed Win2k and Slack 9.1 in my box. I was able to boot to both operating systems without a hitch. However, when I recompiled my kernel in linux and typed 'lilo' to update lilo.conf (I put another entry: "Linux compiled") and rebooted I got a bunch of 9's in about a 1/4 of the screen when I selected Linux as my OS from the Win2k Startup menu. (Win2k still boots fine).

What did I do wrong or what can I do to make sure that Linux boots my recompiled kernel and not the default kernel? Do I have to copy the first 512 bytes of my hda3 (root partition) again to the Win2k boot.ini? If so, how..since I am not able to login using my recompiled kernel. I can only login using my floppy from the default kernel that was prepared when I first installed Slack.

I also want to put my NEW compiled kernel to a floppy so that I can also boot Linux from the floppy if this happens again.

Any tips, hints, URL's suggestions and of course, criticisms would be greatly appreciated. Thanks for your time.

Yeti
 
Old 11-15-2003, 06:56 PM   #2
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Where did you install Lilo...MBR or root partition?
 
Old 11-15-2003, 07:07 PM   #3
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
I will save time here and offer this...

IF you are using the Windows boot loader to boot your PC, follow this...

Once the system is booted, login as root and do the following...

insert a blank floppy...then do...

mkfs -t msdos /dev/fd0

Then do...

dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1

Then do...

mcopy /bootsect.lnx a:

reboot into Windows, then copy the bootsect.lnx file from the floppy to C:\

Right click on "My Computer", click Properties, click the Advanced tab, click Settings under Startup and Recovery, click Edit, add the following on a seperate line...

C:\BOOTSECT.LNX="Slackware"

Save the file, reboot, then choose either Windows or Slackware (If you choose Slackware, Lilo will appear with your choice of kernels to boot). Anytime you recompile the kernel, or change Lilo, you'll need to follow the process again. HTH.
 
Old 11-15-2003, 10:58 PM   #4
biledaemon
Member
 
Registered: Mar 2003
Location: Somewhere between Hell and Limbo
Distribution: Slack 10.2; Debian
Posts: 57

Original Poster
Rep: Reputation: 15
I installed LILO in the Superblock root partition....not MBR. So I take it I have to do the whole process again whenever I compile a new kernel. Oh well.

Question: Now that I know how to do this ...how do I boot into my new kernel buildup since whenever I choose "Linux" from the Win2k menu..I can't get into Slack (bunch of 9's appear on the screen)? Do I use the generic kernel disk (the one i was prompted to make at the beginning of slack install)?...then once I am logged in do I use:

mkfs -t msdos /dev/fd0

and

dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1

and

mcopy /bootsect.lnx a: to copy the NEW compiled kernel?

Just making sure I understand the process correctly. Thanks for the tip. Greatly appreciated.

Yeti
 
Old 11-16-2003, 11:23 AM   #5
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
Originally posted by biledaemon
[B]I installed LILO in the Superblock root partition....not MBR. So I take it I have to do the whole process again whenever I compile a new kernel. Oh well.
No...if it's already installed, just boot the slack cd, and at the boot:

bare.i root=/dev/hda2 noinitrd ro (replace the hda2 with the correct disk/partition for your system)

Then log in and follow the previous instructions. As a precautionary measure I would run lilo first to make sure your kernel is detected and added.

Quote:
Question: Now that I know how to do this ...how do I boot into my new kernel buildup since whenever I choose "Linux" from the Win2k menu..I can't get into Slack (bunch of 9's appear on the screen)? Do I use the generic kernel disk (the one i was prompted to make at the beginning of slack install)?...then once I am logged in do I use:

mkfs -t msdos /dev/fd0

and

dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1

and

mcopy /bootsect.lnx a: to copy the NEW compiled kernel?
Actually, mcopy /bootsect.lnx a: just copies the boot sector info to the floppy. Then when you copy that file to the C: drive in Windows, the Windows bootloader knows what to do...so to speak. Your kernel is created and copied to the correct location during the compile process (make bzImage, and make install).
 
  


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
Problems dual booting FC4 and Slack 10.2 bmccorm2 Linux - General 3 11-01-2005 11:13 AM
Dual booting Slack 10/Win XP k4ution Slackware 14 11-20-2004 08:34 AM
WinXP Slack Dual Booting on a 200GB Seagate Barracuda kurtwisener Slackware 1 10-18-2004 01:23 AM
Re: Dual booting Redhat 9 and Slack 9.1 MunCH Slackware 11 06-13-2004 04:23 AM
Dual Booting Problems with Slack 8.0 and WinME Ontrose Linux - Software 7 07-29-2001 07:18 AM


All times are GMT -5. The time now is 12:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration