LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2004, 04:35 AM   #1
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
LILO question


Can LILO boot the cdrom and floppy devices? How would I set that up in /etc/lilo.conf? I would use the BIOS to do this, but it doesn't have an option for the cdrom, and it doesn't want to boot from a floppy.
 
Old 07-17-2004, 06:19 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
I don't think that is possible.
 
Old 07-17-2004, 07:58 AM   #3
Sinatra
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: Kubuntu Edgy 6.10
Posts: 13

Rep: Reputation: 0
it think it is possible
im on winblowz atm, but wen i switch back over ill check it out for you...peace
 
Old 07-17-2004, 05:30 PM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Elyk,
Basically, lilo can boot anything which is visible bye the operating system at the time you install it. That means, when you run lilo after edit lilo.conf. Your problem is, lilo will need the exact diskette you have used when you installed lilo. If you copy another kernel to diskette after lilo install, it will not boot. I did not do any experiments with cdrom and I don't feel comfortable with this lilo idea because I don't know the underlying structure of the iso9660. For sure, the cdrom disk is not logically equal to a hard disk or a floppy. This is an adapted device, originally projected to audio recording. I think the software needs the ability to recognize the sound tracks and the data tracks, mainly to not try to execute your songs or play your programs. May be you could have more success using grub. I posted yesterday some procedures needed to install grub in one running system. The post is http://www.linuxquestions.org/questi...33#post1052733
 
Old 07-17-2004, 11:49 PM   #5
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Original Poster
Rep: Reputation: 49
So it looks like I'll be better off using grub...

I'm using slackware 9.1. To uninstall lilo, do I just need to remove the package? Do I need to delete anything else? It's installed on the MBR, if that matters.

On I think the 4th time I booted, it gave me an error:
CRC error
-- system halted
I ran a google search on it and it said that the boot sector (in this case, the MBR) may be bad, which doesn't surprise me because this is an old computer.

I'd rather install grub to the boot sector of the root directory (/dev/hda2, it is a bootable partition). If I thought before I installed, I should have created a separate /boot partition. Stupid me. After all, I'm trying to make the cdrom bootable so I can install slackware 10, and doing that would destroy my bootloader.

How would I configure grub to boot from a floppy or cdrom? Possibly the chainloader command? What's grub's notation for a floppy device?

Thanks for the help,
elyk
 
Old 07-18-2004, 06:35 PM   #6
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Elyk,
I guess you always depends on the mbr for booting because during boot the bios brings the first sector to memory and jumps to the code existing on it. If you have there the dos boot sector, it will search for the active partition and then boot it. Lilo and Grub replaces this sector with its own code. So if you have a bad sector 0 your disk may be unbootable.
As you use slackware, for start up your system, you just need the boot diskette or the cdrom from the installation. In the lilo prompt, as you can see in the message provided by slackware,
Code:
In a pinch, you can boot your Linux system with a command like:
                    mount root=/dev/hda1
Of course, you have to change the disk/partition with yours. Speaking about install/uninstall of grub/lilo, both use the mbr or the first sector of the partition. So, if you install one, you are uninstalling the other. You don't need to remove the package from the system.
You don't have to think yourself stupid. There is no reason to have a separate boot partition in most ot the systems. One of the reasons, is the 1024 cylinder limit for the bios to boot in old systems. This problem was circumvented with the lba mapping for most of the disks until now.
If your cdrom isn't bootable, you can't change it. It's the age of your machine and its bios.
About this "CRC error", etc, you may have cabling problems. I had several in my life. Open your machine, dettach the flat cable, attach it again and give it a try.
 
  


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
LILO question DiscoBiscuit Linux - Newbie 3 06-01-2004 09:29 AM
LILO question Arbitor Mandriva 3 04-13-2004 12:54 PM
Question about LILO Bandhel Linux - Newbie 1 03-14-2004 01:42 AM
Lilo question log Linux - Software 2 08-31-2003 09:19 PM
Lilo/kernel question & font question phek Linux - General 9 09-18-2001 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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