Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
12-31-2009, 10:51 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2005
Posts: 11
Rep:
|
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?
|
|
|
|
12-31-2009, 11:28 AM
|
#2
|
|
Member
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144
Rep:
|
Did you try without the -L option?
|
|
|
|
12-31-2009, 11:54 AM
|
#3
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,339
|
Hi,
What do you have as a bootloader on the 'MBR'?
|
|
|
|
12-31-2009, 01:11 PM
|
#4
|
|
LQ Newbie
Registered: Dec 2005
Posts: 11
Original Poster
Rep:
|
Quote:
Originally Posted by DonnieP
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*
|
|
|
|
12-31-2009, 01:12 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2005
Posts: 11
Original Poster
Rep:
|
Quote:
Originally Posted by onebuck
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.
|
|
|
|
12-31-2009, 01:56 PM
|
#6
|
|
Member
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144
Rep:
|
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.
|
|
|
|
12-31-2009, 02:32 PM
|
#7
|
|
Member
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 136
Rep:
|
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.
|
|
|
|
12-31-2009, 02:33 PM
|
#8
|
|
Member
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 400
Rep: 
|
Quote:
Originally Posted by shaylocomotive
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.
|
|
|
|
12-31-2009, 03:15 PM
|
#9
|
|
Senior Member
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 2,784
|
Wrong post, forget it.
Last edited by Didier Spaier; 12-31-2009 at 03:17 PM.
|
|
|
|
12-31-2009, 03:30 PM
|
#10
|
|
LQ Newbie
Registered: Dec 2005
Posts: 11
Original Poster
Rep:
|
Quote:
Originally Posted by DonnieP
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
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
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.
|
|
|
|
12-31-2009, 05:35 PM
|
#11
|
|
Member
Registered: May 2009
Location: australia
Distribution: slackware
Posts: 177
Rep:
|
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.
|
|
|
|
01-01-2010, 08:25 AM
|
#12
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,339
|
Hi,
Quote:
Originally Posted by shaylocomotive
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!
|
|
|
|
01-01-2010, 08:44 AM
|
#13
|
|
Member
Registered: Mar 2004
Distribution: Slackware
Posts: 425
Rep:
|
Quote:
Originally Posted by gezley
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".
|
|
|
|
01-01-2010, 09:17 AM
|
#14
|
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,717
Rep: 
|
Quote:
Originally Posted by voyciz
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.
|
|
|
|
01-01-2010, 10:24 AM
|
#15
|
|
Member
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 400
Rep: 
|
Quote:
Originally Posted by voyciz
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:11 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|