Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-19-2006, 08:52 AM   #1
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Rep: Reputation: 15
How to boot Slackware 11 under Windows XP

I installed Windows XP Home Edition on my hard drive and then installed Slackware 11 on a different partition and when I boot up, it loads directly into Windows. I would like to know how to edit the "boot" file so that I could use Windows' bootloader to boot to my linux partition. Please Help!
Old 11-19-2006, 09:01 AM   #2
Senior Member
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.2 (multilib)
Posts: 1,223

Rep: Reputation: 58
During the installation you should have installed lilo to the master boot record of your first disc. Did you not do this? Can you get into your slackware installation at all? Do you have a floopy boot disc? If not you will have to boot up off your installation CD and install lilo from there.
Old 11-19-2006, 09:03 AM   #3
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
No I installed it onto the "Root" during the installation. I will try that.

Old 11-19-2006, 09:16 AM   #4
Mr Marmmalade
Registered: Oct 2002
Location: Scotland
Distribution: Slackware + Debian
Posts: 195

Rep: Reputation: 16
Yuo dodn't need to fully reinstall it. Use the boot CD & do what the boot prompt suggests (input the correct /dev/hdXN for your system). then edit the /etc/lilo.conf and run lilo. I always do it this way, i.e. not installing lilo during first install, because i like to put lilo on hdb and retreive an exisiting lilo.conf i have on another partition.
Old 11-19-2006, 09:37 AM   #5
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,855

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Have a look around here and in the directories above for the way I used to do what you want.

See the AFX_GRUB/Resources/grubinstall for windows binaries and AFX-GRUB/grubNT or AFX-GRUB/afx-grub for sources.

It's actually the safest and least intrusive way to install a dual boot system and keeps windows very happy.
Old 11-19-2006, 09:52 AM   #6
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
If you install the boot loader on your Linux partition (i.e., not as the MBR on the drive), then you can copy the boot information from that partition to a file, and use that file as a boot image referenced by XP's boot.ini file. This enables you to boot into Linux from the XP OS selection menu.


1) Install lilo (or GRUB) as the boot image on your Linux partition or drive, as you may already have done.
2) Confirm that you can use that installation to boot Linux by using your BIOS "boot selection" option to select it as the boot image to use, and boot into Linux.
3) Create a file containing the boot image by (as "root") running the dd command vis:
# dd in=/dev/hda3 of=/tmp/linux.bin bs=512 count=1
Where, of course, you use the correct value for a3 (e.g., a for the XP MBR, b for the MBR of a second drive, etc. The a3 would be the MBR of the third partition.)

4) Copy the linux.bin file from /tmp to the C: drive of XP. (A USB drive or floppy is handy for this, or a FAT formatted partition.)
5) Boot XP (if you're not in XP after you did the copy) an use "Explorer" to change the attributes of the boot.ini file so you can edit it. (I.e., turn off the "read only" flag.)
6) Edit it so that it looks something like this:

[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP" /noexecute=optin /fastdetect
6) Reboot, and select the "Linux" option from the boot menu. If all went well, you should be in Linux via the XP boot loader.


boot, edition, home, slackware11, windows, xp

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
Dual boot windows/slackware, but slackware installed first? Cryptic_K Slackware 3 11-20-2006 12:49 PM
dual boot Slackware 10.1 with Windows XP houler Slackware - Installation 47 05-30-2006 02:47 AM
Is it possible to boot Slackware directly from Windows? zahadumy Slackware 12 11-14-2005 12:34 PM
Slackware boot and windows boot zonen Linux - Newbie 7 02-21-2005 03:57 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:50 PM.

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