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 12-24-2007, 01:13 AM   #1
infraredgirl
Member
 
Registered: Feb 2006
Location: Belgrade, Serbia
Distribution: Slackware 11.0
Posts: 40

Rep: Reputation: 15
Problem with Lilo


I had Windows XP installed on my SATA hdd and I've just installed Slackware 12 on a different partition of the same drive. However, when I power up the computer, Lilo doesn't appear at all, and it boots straight into Windows.

Here's the output of fdisk -l (I also have a regular IDE hdd which I use for storage):
Code:
Disk /dev/hdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1       15665   125829081    7  HPFS/NTFS
/dev/hdb2           15666       24321    69529288+   c  W95 FAT32 (LBA)

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2550    20482843+   7  HPFS/NTFS
/dev/sda2   *        2551        5141    20812207+  83  Linux
/dev/sda3            5142        5403     2104515   82  Linux swap
/dev/sda4            5404        9729    34748595   83  Linux
And here's my lilo.conf:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/sda
#compact # faster, but won't work on all systems.
prompt
timeout = 300
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda2
label = Linux
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda1
label = Windows
# map-drive = 0x80
# to = 0x81
# map-drive = 0x81
# to = 0x80
table = /dev/sda
# Windows bootable partition config ends
When I do /sbin/lilo, I get this:
Code:
Warning: '/proc/partitions' does not exit, disk scan bypassed.
Added Linux *
Added Windows
One warning was issued.
I don't know if that warning is significant.

My question is simple: what do I have to change to make Lilo work? I would like to use it as my primary bootloader from which I can to boot either Linux or Windows.

Thanks in advance for any replies!
 
Old 12-24-2007, 01:31 AM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
Are you doing /sbin/lilo from a chroot environment or from a live CD?
/proc/partitions should exist. If you're chrooting, make sure to mount proc before issuing the chroot command.
 
Old 12-24-2007, 01:45 AM   #3
infraredgirl
Member
 
Registered: Feb 2006
Location: Belgrade, Serbia
Distribution: Slackware 11.0
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the quick reply!

I boot Slack install DVD and then I mount my linux root partition and chroot to it, and do /sbin/lilo. I didn't know that I also needed to mount proc. How exactly do I do that?
 
Old 12-24-2007, 01:53 AM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
Let's suppose, your Slackware root partition is mounted on /mnt/hd
You do
mount -o bind /dev /mnt/hd/dev
mount -t proc proc /mnt/hd/proc
chroot /mnt/hd /bin/bash

I guess, the first step is optional, but it doesn't hurt.
 
Old 12-24-2007, 02:18 AM   #5
infraredgirl
Member
 
Registered: Feb 2006
Location: Belgrade, Serbia
Distribution: Slackware 11.0
Posts: 40

Original Poster
Rep: Reputation: 15
It's still the same, goes straight into Windows.

/sbin/lilo now gives me a different warning, it says sda is not the first disk.
And the first line, mount -o bind /dev /mnt/hd/dev, didn't work. It said wrong fs type.
 
Old 12-24-2007, 02:23 AM   #6
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
Well, maybe it's a stupid question, but which Windows is it booting to, the one on /dev/hdb or the one on /dev/sda?
Maybe, you should enable booting from the primary slave first in the BIOS?
 
Old 12-24-2007, 02:29 AM   #7
infraredgirl
Member
 
Registered: Feb 2006
Location: Belgrade, Serbia
Distribution: Slackware 11.0
Posts: 40

Original Poster
Rep: Reputation: 15
Windows and Linux both are on sda, hdb is just storage.
 
Old 12-24-2007, 02:38 AM   #8
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
Yeah, here's an explanation of the "not the first disk" warning.
http://linuxgazette.net/issue31/tag_idescsi.html
What if you disconnect your IDE drive and try to install the bootloader and then reconnect it again?
 
Old 12-24-2007, 11:23 AM   #9
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Did you install lilo to the MBR ?
 
Old 12-24-2007, 02:06 PM   #10
infraredgirl
Member
 
Registered: Feb 2006
Location: Belgrade, Serbia
Distribution: Slackware 11.0
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Uncle_Theodore View Post
Yeah, here's an explanation of the "not the first disk" warning.
http://linuxgazette.net/issue31/tag_idescsi.html
What if you disconnect your IDE drive and try to install the bootloader and then reconnect it again?
That let me install lilo and I can now boot Linux, but now I can't get into Windows. I get a message that says "NTLDR missing".

Quote:
Originally Posted by H_TeXMeX_H
Did you install lilo to the MBR ?
Yes, is that the problem?
 
Old 12-24-2007, 02:11 PM   #11
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
This way bellow works allways for me:
1. Boot the computer from Slackware install DVD;
2. Type on first prompt:
Code:
hugesmp.s root=/dev/sda2 rdinit =ro
3. Login as normal user and then as root (with su command);
4. Type lilo and then reboot.

I have 3 harddisks (2 IDE + 1 SATA), 3 partitions with Slackware (11.0, 12.0 and current) and 2 partitions with Windows (XP and Server 2003). I didn't have never any problems with LILO.
 
Old 12-24-2007, 11:19 PM   #12
infraredgirl
Member
 
Registered: Feb 2006
Location: Belgrade, Serbia
Distribution: Slackware 11.0
Posts: 40

Original Poster
Rep: Reputation: 15
I figured it out. The problem was that the Windows partition was not "active" or "bootable", and that's why Windows couldn't load. I set the boot flag on that partition and now it's working.

Thank you everyone for your help!
 
  


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
Lilo Problem piva.francesco Linux - General 5 11-27-2005 08:00 AM
Lilo vs Grub - PROBLEM with lilo nelsonnery Linux - Software 2 09-09-2004 11:09 AM
LILO problem twysm Linux - Newbie 7 06-28-2004 04:08 PM
LiLo Installation problem ?and (GNOME and KDE problem) hitesh_linux Linux - Software 1 01-01-2002 04:56 AM
Problem with Lilo not updating (yes I ran lilo after changing the conf) webguy Linux - General 2 06-24-2001 07:12 PM


All times are GMT -5. The time now is 12:32 PM.

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