LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Dual Booting Slack with a new kernel compile? (http://www.linuxquestions.org/questions/slackware-14/dual-booting-slack-with-a-new-kernel-compile-116486/)

biledaemon 11-15-2003 06:52 PM

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

DaOne 11-15-2003 06:56 PM

Where did you install Lilo...MBR or root partition?

DaOne 11-15-2003 07:07 PM

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.

biledaemon 11-15-2003 10:58 PM

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

DaOne 11-16-2003 11:23 AM

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).


All times are GMT -5. The time now is 06:54 AM.