LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2001, 10:30 AM   #1
felecha
LQ Newbie
 
Registered: May 2001
Posts: 20

Rep: Reputation: 0

Rookie question. I'm a student, just met Linux at the first of last term. Installed at home, too, so I could do homework at home. I allowed LILO as part of the CD install of RH 6.2, but soon had a tangle and had to fdisk /mbr to be able to get back into Windows. Since then I've kept to booting from a floppy. Now I recently had two floppies go bad on me so I couldn't boot at all (both made directly from the CD, following instructions), and both times had to scramble. So I'm looking at going back and trying to put LILO back on the mbr.

Can someone coach me on this?
 
Old 05-31-2001, 01:34 PM   #2
mongrel
LQ Newbie
 
Registered: May 2001
Location: North Carolina
Distribution: SuSE 7.1
Posts: 15

Rep: Reputation: 0
I dual-boot between windows and Linux, below is a portion of my lilo.conf file.

Code:
boot=/dev/hda  # this instructs lilo to install to the mbr

map=/boot/map

install=/boot/boot.b

vga=normal

default=linux # default OS, if no user intervention

prompt  # shows the boot: prompt to allow user to select OS

timeout=100 # miliseconds before default OS is loaded



image=/boot/vmlinuz # location of kernel

        label=linux

        root=/dev/hda5 # location of / partition

        initrd=/boot/initrd.img

        append=" hdc=ide-scsi hdd=ide-floppy " # sets up CDRW and Zip

        read-only # mounts / in ro mode during boot up

.

.

. 

other=/dev/hda1 # location of windows C: drive

        label=windows # label shown at prompt, may have to hit TAB to make it visible

        table=/dev/hda


I'm not sure if RH6.2 sets this up for you during the install, if not you'll have to edit /etc/lilo.conf by hand and then re-install lilo. To edit lilo.conf, as root just enter:

Code:
vi /etc/lilo.conf
from a terminal. When that is complete install lilo by entering the command:

Code:
/sbin/lilo
That should install lilo to the MBR and you should be able to boot to either windows or linux. When you get the boot prompt you should be presented with the choice to either boot windows or linux, if you do nothing linux will boot automatically, if you want windows, just type windows at the prompt and hit enter. Once you strike a key the countdown will stop.



Hope this helps.
 
Old 05-31-2001, 02:20 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
RedHat will automatically adjust your settings if you have windows already setup, Well 95 or 98 I do know of.
You need a boot disk though to be able to boot into Linux, then follow those steps above to get it reinstalled back to your MBR.
 
Old 05-31-2001, 04:04 PM   #4
felecha
LQ Newbie
 
Registered: May 2001
Posts: 20

Original Poster
Rep: Reputation: 0
I tried and got:

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Warning: device 0x0306 exceeds 1024 cylinder limit
Fatal: sector 46319427 too large for linear mode (try 'lba32' instead)

Any ideas?

I also installed Windows 2000 a while ago, as part of my school studies. Is the MBR just too full?

I have Partition Magic 6.0, which I used some time back, at the first of the term, for partitioning before installing Linux and W2000. So I have BootMagic, too. Maybe that plays into the problem with sticking LILO in there?

I disabled BootMagic long ago, It was a nuisance.

F
 
Old 06-04-2001, 09:17 PM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
The MBR never gets full. It just gets overwritten by other code. You said you had BootMagic on it once. When BootMagic is installed, it saves a copy of the MBR so that if you decide to uninstall it, it will replace the MBR with its old contents. I believe lilo also saves a copy of the MBR and you can remove lilo and restore the MBR to its original code by running the command ' lilo -u '.

The error "Warning: device 0x0306 exceeds 1024 cylinder limit" I believe is indicating that lilo is having a problem with the location of the data it needs to load. That 1024 cylinder is problem older versions have in trying to read in data past the 1024 cylinder of the harddrive. It's due to a limitation in the computer's BIOS. I also believe it is indicating this problem is on partition hda6.

As for the error "Fatal: sector 46319427 too large for linear mode (try 'lba32' instead)", it could be it is unable to access that sector because the linear mode won't let it. In your lilo.conf, there may be a line that says ' linear '. Change it to ' lba32 ' and see what that does. Don't forget, any changes you make to lilo.conf you have to rerun lilo.

You can get back into linux by using the rescue mode. Check here.
 
  


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
Problem: Hard drive partitions, Grub/ Lilo and Ubuntu. tc--obo Ubuntu 5 06-21-2005 06:46 PM
Help ! LILO prints only LI after Ghosting hard drive z536 Linux - Software 1 05-27-2005 09:59 PM
Strange problem with lilo and booting other Hard Drive BajaNick Linux - General 5 01-15-2005 11:43 AM
hard drive adding with lilo firestomper41 Mandriva 12 05-24-2004 04:19 PM
Installed second hard drive... lilo hanging damanfoo Linux - General 2 11-01-2003 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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