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 05-05-2003, 12:31 PM   #1
sbayeta
LQ Newbie
 
Registered: May 2003
Posts: 5

Rep: Reputation: 0
Question Slackware 9 installed fine, but does not boot


Hi,
This is my first post on this forum, and I'm sure this has been already asked before, but I used the search option and could not find the solution to my problem.

I installed Slackware 9 and everything went just fine. I followed the instructions on the slakware/book, using the CD i burned from the ISO image.

My PC is a DURON 1.4GHz, 256MB, 2 IDE hard disks (ide0: 30GB, ide1: 2.5GB).

I created two partitions using fdisk:

Device Boot Start End Blocks Id System
/dev/hdc1 1 66 266080 82 Linux Swap
/dev/hdc2 67 621 2237760 83 Linux

When the installation program asked where to install LILO, i chose the same partition of the install (not the MBR of the my first disk, because there I have Windows 2000 installed, and all the work af the last months).

I configured my bios to boot from the IDE 1 first, and the IDE 0 second.
No boot info was found on the IDE 1, so the system started from the IDE 0.

After that I started with my boot floppy (which I made when the installation program prompted me to), and the system started.

I run fdisk again and set /dev/hdc2 to be bootable:

Device Boot Start End Blocks Id System
/dev/hdc1 1 66 266080 82 Linux Swap
/dev/hdc2 * 67 621 2237760 83 Linux

Now my computer is tryng to boot from the IDE1, but something is wrong. I guess that I should see LILO, and instead of that I'm getting crazy output ("99 99 99 99 99 99 99 .........") with a LOT of beeps.

What's wrong ?

Thanks
 
Old 05-05-2003, 12:46 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You don't have lilo configured correctly yet.

Try a google search from my link with your error messages and you should find a solution.

I thought grub loaded Win 2K OK. I always put lilo/grub in the MBR myself, but I stopped using Microsoft after Windows 98 SE.
 
Old 05-05-2003, 10:18 PM   #3
docGonzo2000
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Libranet 8.1, Slackware 9
Posts: 107

Rep: Reputation: 15
I agree with fancypiper. You should use one of the wonderful Linux bootloaders. I much prefer grub. Check out the answer I wrote on this post:

http://www.linuxquestions.org/questi...threadid=58243

Read all of this here documentation. He gives you step by step instructions for booting any os you want to, including any of the windows flavors.

Hope it works for you as easily as it did for me.
 
Old 05-05-2003, 11:38 PM   #4
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
Question: Why don'y uo install Lilo on the mbr? I don't understand why people are that afraid to do this, I do it all the time and I've never had a problem out of the 4 - 5 years I've done it.
 
Old 05-06-2003, 02:10 AM   #5
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
the times I installed it on the mbr it wouldn't boot and I just got errors
 
Old 05-07-2003, 06:31 AM   #6
sbayeta
LQ Newbie
 
Registered: May 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, it's me again.
I solved the problem!!
So I will post the solution to the problem in case this hapens to any other newbe (I hope they use the search function).

I discovered something pretty odd about the BIOSs that are capable of selecting the boot device (all the new motherboards, capable of selecting between IDE0, IDE1, IDE2, Floppy, LAN, CDROM, ZIP, etc....):
If you have two bootable disks connected (IDE0 and IDE1), then you can boot either one by selecting the corresponding IDE in the BIOS. But if you connect only one disk (IDE0 or IDE1), you have to tell the BIOS to boot from IDE0, regardless of its fisical connection.

This little fact seems to be the cause of my problem.

You will notice as you read the following lines that I reinstalled Slackware making /dev/hdc1 my root and /dev/hdc2 my swap. This wasn't necesary, but I didn't know what else to do, so I started trying stupid things....

Originally, my lilo.conf went like this (after the re-installation);

Code:
boot = /dev/hdc    #MBR of the IDE1 disk
...
...

image = /boot/vmlinuz
  root = /dev/hdc1
  label = Linux
  read-only

other = /dev/hda1   #first partition of the IDE0 disk
  table = /dev/hda
  label = Windows
The solution to the problem (wich I reached after reading several man pages and HOWTOs, especially the LILO-miniHOWTO) is a workaround that maps the drives so this funny thing the BIOS does with the drives is undone. My new and working lilo.conf goes like:

Code:
boot = /dev/hdc    #still the same, I didn't touch the IDE0 disk's MBR
disk = /dev/hdc
  bios = 0x80   #at boot time, my IDE1 disk is considered the first disk
.....
.....

image = /boot/vmlinuz
  root = /dev/hdc1
  label = Linux
  read-only

other = /dev/hda1
  table = /dev/hda
  label = Windows
  map-drive = 0x81    #
  to = 0x80           # this is to remap to the original
  map-drive = 0x80    # config: IDE0 is my first disk and
  to = 0x81           # IDE1 is my second
That's it !!

Hope it help someone
 
Old 05-07-2003, 08:38 AM   #7
1_8_7
Member
 
Registered: Apr 2003
Distribution: slackware 9.0
Posts: 44

Rep: Reputation: 15
Install LILO on your mbr. That solved my problem and there is never any problems doing this. I had the same problem as you, it wouldn't boot and then i ran liloconfig and installed in the mbr and everything runs great now.
 
Old 05-07-2003, 08:46 AM   #8
sbayeta
LQ Newbie
 
Registered: May 2003
Posts: 5

Original Poster
Rep: Reputation: 0
I know that, but I didn't want to remove the bootloader of Windows 2000 from the MBR of my first disk, because I use it when I use Windows, and I like it.
Also I could have swapped my two disks (IDE0 in IDE1 and IDE1 in IDE0).

But I always knew that the thing I was trying to accomplish was possible (isn't that one of the great things about Linux ? the power of ablosute customizing). So, I kept trying, and I did it
 
Old 05-07-2003, 03:25 PM   #9
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
you have win2k and linux?? So you boot up, goes to windows boot loader, you choose linux, then goes to linux bootloader, you choose linux. linux boots

why not just skip the first part and when you boot lilo asks windows or linux. Im sure the windows boot loader doesnt have any special features?? It just asks, linux or windows right?
 
Old 05-12-2003, 12:04 PM   #10
Rodrin
Member
 
Registered: May 2003
Location: Upstate NY, U.S.
Distribution: Slackware
Posts: 248

Rep: Reputation: 31
That's not the way it works with that setup. In fact, he wouldn't see any difference between the setup he has and installing lilo in the MBR. What happens with his setup (which happens to match mine except for the boot device order problem) is this: He turns on his computer; The MBR sees his boot partition as his root Linux partition and hands off to it; lilo loads as though it were an operating system and he gets the lilo screen; he picks his operating system and hits enter (or waits for the timeout); if he picks Linux, lilo loads it as always; if he picks Windows, lilo hands the boot process off to the Windows root partition (C: drive) where the Win2K bootloader boots as if it were an operating system, and loads Win2K.

He probably didn't realize this. Windows 2000 boots with a standard MBR that is the same as that for other versions of Windows. The bootloader for it is not in the MBR, but in its root partition. In fact, a Win2K install doesn't touch the MBR, so if You have Linux installed with Lilo in the MBR, and you re-install Win2K, it doesn't wipe out your lilo and make you rerun lilo after booting from a floppy or rescue disk (unlike Windows 98, which did).

If lilo were installed in the MBR, the boot process would go like this: He turns on his computer; lilo loads from the MBR and he gets the lilo screen; he picks his operating system (or waits for the timeout); if he picks Linux, lilo loads it as always (from its root partition); if he picks Windows, lilo hands the boot process off to the Windows root partition (C: drive) where the Win2K bootloader boots as if it were an operating system and loads Win2K. What partition is marked as bootable in the partition table is ignored.

As you can see the process is not all that different, and the differences are not visible to the user. The advantage of the first approach is that you have a standard MBR that neither operating system plays with. This way you can repair your MBR with a bootable Win98 floppy, for instance, using a standard "fdisk /mbr" command and neither OS is affected by it. Neither OS is affected by reinstalling the other one. In fact, my first inclination, when I saw his problem was that perhaps his MBR was messed up on his second hard drive and he needed to do something like this. I've seen that problem cause similar (although not exactly the same) symptoms in the past.
 
  


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
Dual boot windows/slackware, but slackware installed first? Cryptic_K Slackware 3 11-20-2006 12:49 PM
Just installed Slackware 10.0 boot ? grim_chel Linux - Newbie 4 06-29-2004 12:11 PM
new to slackware, lilo won't boot but bootdisk is fine slackist Linux - Newbie 2 06-06-2004 08:43 PM
Installed Fine Hangs On boot ElementNine Fedora - Installation 3 03-24-2004 01:37 AM
Installed fine but how to boot?? rberry88 Debian 2 02-10-2004 12:27 PM

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

All times are GMT -5. The time now is 12: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