LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 10-22-2004, 12:53 AM   #1
tez
LQ Newbie
 
Registered: Jun 2003
Location: Sydney, Australia
Distribution: Slackware 9.1
Posts: 15

Rep: Reputation: 0
Lilo on MBR


Hi guys,

I just installed Slack, and when it asked me where I wanted the LILO installed, I selected option one (i cant remeber what its called )

Anyhow, I probably should have selected install onto MBR, although thats fine because I did that afterwards.

Although now when my PC boots up, it loads LILO, and I select Linux and Slackware starts to boot, although it stops on a line

"VFS:Insert root floppy and press ENTER"

How can I get this booting off the MBR?

Thanks
 
Old 10-22-2004, 01:11 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Post you /etc/lilo.conf file
 
Old 10-22-2004, 01:34 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
If you wrote lilo to a floppy, then boot with that floppy so you can make the changes to your /lilo.conf file.
If not you will need to boot up with your first installation disk, (I'm assuming that the first installation disk is also a rescue disk.

Instead of starting the installation program, in the initial lilo boot screen enter the boot option 'rescue'. This will give you a system running on a ram disk. You can use the command 'fdisk -l' to list your partitions if you don't know them. Your next order of business is to mount your (normal) root partition somewhere like /mnt. If you have your normal /usr or /boot directories on seperate partitions you need to boot them next, underneath the just booted root partition.
( note: if the rescue system has an option to mount your system, just select that option. )

For the sake of example, suppose that the \boot directory is on its own partiton ( hda1 ), then you have a swap partition, then the root partition is on the first extended partition ( hda5 ), and these partitions use the ext2 file-system. Now you would mount the old root partitions somewhere first.
Code:
mount -t ext3 /dev/hda5 /mnt

mount -t ext3 /dev/hda1 /mnt/boot
Now you need to cd to /mnt and make this the new root directory. This is because we need to run lilo to save the changes in the MBR, and it scans for locations on the hard drive. Otherwise, when Lilo in /boot for vmlinuz it will be looking in your rescue systems /boot directory.
Code:
chroot /mnt
bash -l
The second line executes bash in the login mode so that your paths and environment get set up.

Now using 'vim', or any other console text editor, edit /etc/lilo.conf.
Make sure that the boot= entry is correct (probably should be boot=/dev/hda.
Next check the root= entry. For our example it would be /dev/hda5.

Save the lilo.conf file and execute '/sbin/lilo'.
This will save the information. If there is a problem with one of the stanzas or one of the partitions, there will be an error message, and you need to fix the problem with lilo.conf and retry running lilo.

Hopefully this will do it for you. Good luck.
 
Old 10-22-2004, 09:20 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,890

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
Sounds like you ARE booting with a bootdisk, since that is the prompt it gives. Take the floppy out and reboot.
 
  


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 only on MBR? Teoryn Slackware - Installation 9 03-30-2004 04:10 AM
LILO not in MBR contactsanil Linux - Newbie 1 01-12-2004 03:49 AM
lilo won't go into the MBR breakerfall Linux - General 2 10-09-2003 11:11 AM
lilo on MBR roofy Linux - General 5 05-19-2003 04:15 PM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 02:55 PM

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

All times are GMT -5. The time now is 02:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration