LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-06-2005, 05:11 PM   #1
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Rep: Reputation: 15
HELP with dual booting LILO slackware 10.2


Hello!
I installed slackware 10.2 today and I'm full of questions! The most important to solve now is the booting... I used a new HDD 60GB. Using fdisk I created the partitons:
hda1 - 1GB - linux swap
hda2 - 10GB - linux *bootable
hda3 - 30GB - fat(windows)
hda4 - "the rest" - /home
My intention was to use hda4 to create an extented partiton and then creating a fith partition of 1GB for transfering files btw the two O/S but I couldn't work it out how to do it. Anyway, after I had my slackware installed and running I used LILO to load Linux (at this stage hda3 was empty). Now I installed windows and it has changed my boot and when I turn the computer on it loads Windows automatic! Does anyone know how to get my LILO back at boot and add windows to LILO?
The slackware handbook was useful during installation but it only covered very basic aspects. I still have a lot of problems ot solve, so if anyone knows a good slackware for begginers site let me know too !
Thanks!
 
Old 12-06-2005, 06:36 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,474
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by v@ny@
Now I installed windows and it has changed my boot and when I turn the computer on it loads Windows automatic! Does anyone know how to get my LILO back at boot and add windows to LILO?
Yep. Windows overwrites the MBR upon installation.

Anyhow, getting onto your problem:

Step 1. Boot from the Slackware Install CD (Disc 1)

Step 2. At the 'boot:' prompt, enter this:
Code:
bare.i root=/dev/hda2 noinitrd ro 1
Don't worry if it complains about missing modules.

Step 3. At the login prompt, log in as root.

Step 4. At the command prompt, do this:
Code:
# cat << EOF >> /etc/lilo.conf
> other=/dev/hda3
>  label=windows
>  table=/dev/hda
> EOF
# /sbin/lilo
Step 5. Remove the CD and then:
Code:
# reboot
And you should be golden.

Note: Most Linux distros do not need the "bootable" flag on their root partition. However, Windows requires it.
 
Old 12-07-2005, 03:12 AM   #3
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
During the installation I could not install LILO in the MBR, it gave me some error. So I installed it in the root partition. I'll give it a go anyway and post the result ! Thanks
 
Old 12-07-2005, 03:19 AM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
If you're using Windows XP (or any of the NT series Win32), then bootpart will be your best friend.
 
Old 12-07-2005, 03:57 AM   #5
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
I tried to use the commands, I got no error messages but after reboot... Windows! No choice! I tryed boot part and I could not get it to work. I am thinking... What if I format the partition where I have slackware installed and re-install it? Will this get my LILO back at boot?
 
Old 12-07-2005, 04:31 AM   #6
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Quote:
Originally Posted by v@ny@
I tried to use the commands, I got no error messages but after reboot... Windows! No choice! I tryed boot part and I could not get it to work. I am thinking... What if I format the partition where I have slackware installed and re-install it? Will this get my LILO back at boot?
Reinstalling will not bring you any benefits. For one thing, you installed LILO on to your Linux partition, not the MBR.

Using bootpart will get you a working system without the need to reinstall. All it takes is a few minutes of your time to actually read through the documentation.

It took me barely five minutes to get mine working from download to booting... but then I'm a bloody genius :P. However, even for mere mortals, it wouldn't take more than 15-20 minutes. It really is that easy!
 
Old 12-07-2005, 06:02 AM   #7
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
I actually read through the documentation and actually tryed to google out the answer but nothing. The problem with bootpart is that manage to get a boot option at the start, when I turn the computer on, but when I choose to boot Linux I get a message saying it could not boot from HDD please insert a disk and press any key to continue...
???????????????????????????????????????????????????????????????????????????
 
Old 12-07-2005, 06:42 AM   #8
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
I removed the changes with the command:

bootpart remove "number of entry in boot.ini"

Last edited by v@ny@; 12-07-2005 at 06:59 AM.
 
Old 12-07-2005, 07:50 AM   #9
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
I solved the problem following the instructions I found in this link:

http://www.tldp.org/HOWTO/Linux+NT-Loader.html

Execpt I copied the bootsect.lnx to the windows partition trough a GUI (my windows partition is a FAT 32).
 
Old 12-07-2005, 04:52 PM   #10
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,474
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by v@ny@
During the installation I could not install LILO in the MBR, it gave me some error. So I installed it in the root partition.
It won't work unless you install it to the MBR.

Please post the error you get.
 
Old 12-07-2005, 05:05 PM   #11
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Quote:
Originally Posted by rkelsen
It won't work unless you install it to the MBR.

Please post the error you get.
That is not true. Please get your facts right before posting.
 
Old 12-07-2005, 09:36 PM   #12
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,474
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by Azmeen
That is not true. Please get your facts right before posting.
Please point me to where it says that installing LILO to anywhere other than the MBR (on an IDE HD, as in this case) will work.

In my experience, installing LILO to root partitions does not work.
 
Old 12-07-2005, 11:43 PM   #13
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
I installed Lilo to the root, not the MBR. But I could not get LILO to be the first boot screen. Maybe if I had installed in the MBR it would be. SO in this case added the bootsect.lnx line to boot.ini of windows. This gives me a first screen to choose from Windows or Linux, if I choose Linux I get the LILO screen asking me to choose the OS... So it works... not as i wanted but it works...

Last edited by v@ny@; 12-07-2005 at 11:44 PM.
 
Old 12-09-2005, 09:24 AM   #14
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
Ok, one more note... I just reformatted my computer and this time I installed Windows first, then Linux. This time there was no problem to install LILO in the MBR and being in the MBR LILO is the first thing I see at boot, and it gives me the choice btw the operating systems... So now it really works.
 
Old 12-09-2005, 11:21 AM   #15
JohnSeth
LQ Newbie
 
Registered: Jun 2005
Location: Arizona
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
The general concensus I've noted in the various linux resources is to create your partitions using whatever fdisk program you desire... Then install Window *first*. Next, install Linux, and load lilo onto your MBR. In my own experience (and I'm guessing, with RKELSON, above) loading lilo anywhere else does not allow your computer to boot, none of mine ever ever have... unless I created a boot floppy. Installing Lilo to your MBR and adding a Windows segment to your /etc/lilo.conf file usually does the trick, with the least effort.

As stated prior... installing Windows after Linux, will 99% of the time, always rewrite your MBR to load windows without prompting to load another OS.
 
  


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
lilo vs grub, dual-booting binkgle Ubuntu 6 05-16-2005 01:39 AM
Dual Booting LILO issues... [WebCarnage] Linux - Software 6 03-08-2004 05:30 PM
Dual Booting - XP/LILO loader lawadm1 Linux - General 1 02-29-2004 05:15 AM
dual booting seting up lilo avoidmoney Linux - Newbie 5 02-15-2004 03:52 PM
Lilo dual booting Slackwares Linux - Software 3 10-11-2003 03:42 AM

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

All times are GMT -5. The time now is 08:27 PM.

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