LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-31-2009, 10:51 AM   #1
shaylocomotive
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 0
Question Install LILO on the root partition


I used to install lilo on the MBR. I tried to install lilo on the root partition when I installed Slackware 13 on a new computer. The system always complained "no bootable media found".

I checked the following configurations to ensure all settings correct:
1. make the root partition bootable.

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc8dec8de

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2432 19535008+ 83 Linux
/dev/sda2 2433 3161 5855692+ 82 Linux swap
/dev/sda3 3162 51792 390628507+ 83 Linux
/dev/sda4 51793 60801 72364792+ 5 Extended
/dev/sda5 51793 54224 19535008+ 83 Linux
/dev/sda6 54225 59087 39062016 83 Linux
/dev/sda7 59088 60801 13767673+ 83 Linux

2. Check the lilo configuration
# lilo.conf
boot = /dev/sda1
message = /boot/boot_message.txt

append=" vt.default_utf8=0"
vga = normal
image = /boot/vmlinuz
root = /dev/sda1
label = l
read-only # Partitions should be mounted read-only for checking

3. Install lilo using the following command:
# lilo -L

The system still complain "FATAL: no bootable media found". Did I do something wrong? What steps did I miss?
 
Old 12-31-2009, 11:28 AM   #2
DonnieP
Member
 
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144

Rep: Reputation: 29
Did you try without the -L option?
 
Old 12-31-2009, 11:54 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,061
Blog Entries: 1

Rep: Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374
Hi,

What do you have as a bootloader on the 'MBR'?
 
Old 12-31-2009, 01:11 PM   #4
shaylocomotive
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DonnieP View Post
Did you try without the -L option?
Yes. I tried both. Neither one worked.
# lilo
Warning: LBA32 addressing assumed
Add l*
One Warning was issued.

# lilo -L
Add l*
 
Old 12-31-2009, 01:12 PM   #5
shaylocomotive
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by onebuck View Post
Hi,

What do you have as a bootloader on the 'MBR'?
I only have slackware 13 installed. There is no other boot loader on the MBR.
 
Old 12-31-2009, 01:56 PM   #6
DonnieP
Member
 
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144

Rep: Reputation: 29
One way or another you're going to need a bootloader on the MBR unless you're going to be booting from CD. The MBR bootloader can chainload over to the slackware/lilo partition. I wouldn't have thought the absence of an MBR bootloader would have prevented the lilo root partition install - but maybe it does.
 
Old 12-31-2009, 02:32 PM   #7
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30
lilo is giving a warning about it assuming the
drive is using LBA32 addressing:

Warning: LBA32 addressing assumed

But the following does not appear to indicate LBA32 addressing:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders

For LBA32, wouldn't the settings be more like?:
16 heads, 63 sectors/track, NNNNN cylinders

Check your bios to see if there is a setting
for hard disk bios translation. What is it set at?

On mine, I have three choices:
bit-shift, chs, and none.

I have to have mine set at none in
order to use LBA32 addressing.

HTH

Last edited by aocab; 12-31-2009 at 02:38 PM.
 
Old 12-31-2009, 02:33 PM   #8
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 490

Rep: Reputation: 207Reputation: 207Reputation: 207
Quote:
Originally Posted by shaylocomotive View Post
I used to install lilo on the MBR. I tried to install lilo on the root partition when I installed Slackware 13 on a new computer. The system always complained "no bootable media found".

I checked the following configurations to ensure all settings correct:
1. make the root partition bootable.

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc8dec8de

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2432 19535008+ 83 Linux
/dev/sda2 2433 3161 5855692+ 82 Linux swap
/dev/sda3 3162 51792 390628507+ 83 Linux
/dev/sda4 51793 60801 72364792+ 5 Extended
/dev/sda5 51793 54224 19535008+ 83 Linux
/dev/sda6 54225 59087 39062016 83 Linux
/dev/sda7 59088 60801 13767673+ 83 Linux

2. Check the lilo configuration
# lilo.conf
boot = /dev/sda1
message = /boot/boot_message.txt

append=" vt.default_utf8=0"
vga = normal
image = /boot/vmlinuz
root = /dev/sda1
label = l
read-only # Partitions should be mounted read-only for checking

3. Install lilo using the following command:
# lilo -L

The system still complain "FATAL: no bootable media found". Did I do something wrong? What steps did I miss?
Did you buy this new computer with another OS pre-installed? I have found on occasion that just deleting existing partitions is sometimes not enough. I needed to wipe the disk several times on one occasion before all traces of the old OS disappeared (I used Acronis disk editor to check after every wipe). It wasn't until I did that that I could get a Linux OS booting. Still not sure if it was an infected MBR because it was so bloody resistant to removal.
 
Old 12-31-2009, 03:15 PM   #9
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,043

Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
Wrong post, forget it.

Last edited by Didier Spaier; 12-31-2009 at 03:17 PM.
 
Old 12-31-2009, 03:30 PM   #10
shaylocomotive
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DonnieP View Post
One way or another you're going to need a bootloader on the MBR unless you're going to be booting from CD. The MBR bootloader can chainload over to the slackware/lilo partition. I wouldn't have thought the absence of an MBR bootloader would have prevented the lilo root partition install - but maybe it does.
DonnieP: Yes. I agree.

Quote:
Originally Posted by aocab View Post
lilo is giving a warning about it assuming the
drive is using LBA32 addressing:
Warning: LBA32 addressing assumed
But the following does not appear to indicate LBA32 addressing:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
For LBA32, wouldn't the settings be more like?:
16 heads, 63 sectors/track, NNNNN cylinders
Check your bios to see if there is a setting
for hard disk bios translation. What is it set at?
On mine, I have three choices:
bit-shift, chs, and none.
I have to have mine set at none in
order to use LBA32 addressing.
HTH
aocab: My system doesn't have this option in BIOS. Mine is Dell Optiplex 960.

Quote:
Originally Posted by gezley View Post
Did you buy this new computer with another OS pre-installed? I have found on occasion that just deleting existing partitions is sometimes not enough. I needed to wipe the disk several times on one occasion before all traces of the old OS disappeared (I used Acronis disk editor to check after every wipe). It wasn't until I did that that I could get a Linux OS booting. Still not sure if it was an infected MBR because it was so bloody resistant to removal.
gezley: This is a new system. It came with Vista. I reinstalled Slackware 13 and lilo several times today. It just didn't work.

All: I gave it up at this point. I installed LILO on MBR. Everything works well. It just struck me when I saw a warning message on LILO Installation screen. The warning says install LILO on MBR is a risk. That's why I tried to install LILO on the root partition.

As I mentioned, I always installed LILO on MBR.

I will test LILO Installation on the root partition using the VirtualBox. Will post an update if I make some progress.

Thank you.
 
Old 12-31-2009, 05:35 PM   #11
vigi
Member
 
Registered: May 2009
Location: australia
Distribution: slackware
Posts: 177

Rep: Reputation: 27
This should explain it:
LILO can install itself in two places on your hard drive: the Partition boot sector -pbr, or the mbr of the hard drive.
It will not work on a separate partion like grub will. If it is the only OS it must be in mbr.

On bootup your Bios will chain to the mbr and run the bootstrap program(lilo or other) that will load your operating system.
 
Old 01-01-2010, 08:25 AM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,061
Blog Entries: 1

Rep: Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374
Hi,

Quote:
Originally Posted by shaylocomotive View Post
I only have slackware 13 installed. There is no other boot loader on the MBR.
You need a bootloader on the 'MBR' for this to work. You can place a bootloader on the 'MBR' that can be chainloaded to other loaders on the respective superblock. A superblock is a segment of metadata describing the filesystem on a block device. This is one of the means that a user would utilize to have multiple OS on a machine.

From the cli;

Code:
~#lilo -v -t -b:\dev\your_device  #this would test the lilo
~#lilo -v -b \dev\your_device     #write to the 'MBR'
As for the 'lba32';

Quote:
excerpt from 'man lilo.conf';

lba32 Generate 32-bit Logical Block Addresses instead of cylinder/head/sector addresses. If the BIOS
supports packet addressing, then packet calls will be used to access the disk. This allows booting
from any partition on disks with more than 1024 cylinders. If the BIOS does not support packet
addressing, then 'lba32' addresses are translated to cylinder/head/sector ('geometric'), just as
for 'linear'. All floppy disk references are retained in C:H:S form. Use of 'lba32' is recom-
mended on all post-1998 systems. Beginning with LILO version 22, 'lba32' is the default disk
addressing scheme.
Place the option 'lba32' in the global section of your '/etc/lilo.conf' then re-run 'lilo' again.

Just a few links to aid you;

SlackwareŽ Essentials
SlackwareŽ Basics
Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Advanced Bash-Scripting Guide
Virtualiation- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 01-01-2010, 08:44 AM   #13
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
Quote:
Originally Posted by gezley View Post
Did you buy this new computer with another OS pre-installed? I have found on occasion that just deleting existing partitions is sometimes not enough. I needed to wipe the disk several times on one occasion before all traces of the old OS disappeared (I used Acronis disk editor to check after every wipe). It wasn't until I did that that I could get a Linux OS booting. Still not sure if it was an infected MBR because it was so bloody resistant to removal.
Next time use the boot disk from the hard drive manufacturer and write zeroes to the drive (low level format). This will eliminate the need to do "several wipes".
 
Old 01-01-2010, 09:17 AM   #14
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
Quote:
Originally Posted by voyciz View Post
Next time use the boot disk from the hard drive manufacturer and write zeroes to the drive (low level format). This will eliminate the need to do "several wipes".
or use any of parted magic cd or system rescue cd for the purpose.
 
Old 01-01-2010, 10:24 AM   #15
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 490

Rep: Reputation: 207Reputation: 207Reputation: 207
Quote:
Originally Posted by voyciz View Post
Next time use the boot disk from the hard drive manufacturer and write zeroes to the drive (low level format). This will eliminate the need to do "several wipes".
Thank you for the advice. I was under the impression that's what my old bootable Privacy Expert CD was doing - zeroing the disk? On numerous occasions before and after this particular disk I was able to inspect disks using the built-in disk editor Acronis shipped with this software and see that they had been zeroed from start to finish. On just this one occasion I was stumped and quite surprised to find data surviving numerous attempts to wipe, repartition, reformat, and whatever else I threw at it!

I just mentioned it because I thought the original poster might not have zeroed his disk before installing Slackware, something that caused me a problem with just one disk out of hundreds.
 
  


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
Install lilo/grub to root Slacker Prime Slackware - Installation 2 06-18-2009 09:33 AM
Install LILO on other partition than root ? Vilius Slackware 3 02-26-2009 01:05 PM
Does LILO need to access the root partition? ferao Linux - General 6 01-04-2007 02:17 PM
How do I remove lilo from root partition? ZorlacBabelfish Linux - Newbie 4 01-12-2005 09:13 PM
lilo in root partition subh Linux - General 4 12-18-2003 01:46 AM


All times are GMT -5. The time now is 09:17 AM.

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