LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-08-2003, 11:54 AM   #1
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
LILO boot problems -- Your answer here.


This gets asked so often that I figured I'd just post something that
will probably not show up in a search any more often than others'
posts. =-}

Don't know what to search for? Here you go:
http://www.google.com/search?hl=en&i...=Google+Search

Here are answers to the most common problems with LILO once it's been installed:

http://www.tldp.org/HOWTO/Bootdisk-HOWTO/a1483.html
http://ftp.yggdrasil.com/bible/bible...er/node69.html

Last edited by moses; 06-14-2003 at 07:55 PM.
 
Old 03-08-2003, 02:52 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Good man Moses!

Hold out your stick! ;}

Cheers,
Tink
 
Old 03-08-2003, 02:56 PM   #3
Do-Ping
Member
 
Registered: Mar 2003
Location: NL
Distribution: RedHat
Posts: 30

Rep: Reputation: 15
Maybe a admin should make it a sticky *hint*
 
Old 03-08-2003, 04:59 PM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Original Poster
Rep: Reputation: 50
Quote:
Originally posted by Tinkster
Good man Moses!

Hold out your stick! ;}

Cheers,
Tink
Even if it takes 40 years, we'll get there eventually. =-}
 
Old 03-09-2003, 01:17 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Even if it takes 40 years, we'll get there eventually. =-}
/me clears his throat, chants...
Code:
"When software was in MS-Lah-and
        {let my programs go!}
 Moses spoke to Billy-boh-oy
        {let my programs go!}
... :)
Cheers,
Tink

Last edited by Tinkster; 03-09-2003 at 01:18 PM.
 
Old 03-09-2003, 06:12 PM   #6
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Original Poster
Rep: Reputation: 50
LOL!
That's excellent. =-}
 
Old 06-14-2003, 07:51 PM   #7
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Original Poster
Rep: Reputation: 50
Some of the links above are either dead or are not working correctly, so I've posted some more.


http://www.ibiblio.org/pub/Linux/sys...lo/!INDEX.html
http://www.tldp.org/HOWTO/LILO-crash-rescue-HOWTO/
http://www.google.com/search?hl=en&l...=Google+Search
http://sdb.suse.de/sdb/en/html/katlist.BOOTLILO.html
http://www.google.com/search?hl=en&i...=Google+Search
http://www.ipcop.org/1.3.0/en/instal...LO-errors.html

Last edited by moses; 06-14-2003 at 07:54 PM.
 
Old 06-14-2003, 09:18 PM   #8
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
hmm.... good links, thnx....
 
Old 06-15-2003, 01:35 AM   #9
Electboy
Member
 
Registered: May 2003
Location: VietNam
Distribution: RedHat 9.0
Posts: 79

Rep: Reputation: 15
Thanks man. They are really good links.
 
Old 06-15-2003, 09:23 AM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Alright, somehow this thread got past me but I found it to be very informative regarding Lilo and its many problems newbies run into so I've now made it a sticky thread for many to catch and read.

Anyone feel free to add some tips/tricks or solutions to this thread you might find helpful to others seeking help.
 
Old 06-15-2003, 09:39 PM   #11
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
10 Problem Areas and Solutions in Linux

--------------------------------------------
Can't Boot Linux Anymore

PROBLEM: You've installed Linux and everything is fine(naturaly). Then you make a change to your Windows or Windows NT system, and you can't boot linux anymore...

SOLUTION: Various operating systems tend to think that they are the only operating system on the hard drive or on the system. Therefore, when they are installed or updated, they write things to the Master Boot Record(MBR). This process overlays the Linux boot loader(LILO/GRUB) and stops you from booting Linux. The best correction requires an ounce of prevention: Make an Emergency bootdisk during installation. Keep this disk handy when you update your system(or any significant system event like repartitioning your hard drive or rebuilding your kernel). Boot using the bootdisk and log in as Root and type lilo on the command line. This repairs the MBR by reinstalling LILO.
---------------------------------------------------------
Hard Drive Numbers Have Changed Since Installation

PROBLEM: Linux numbers hard drives each time it boots, calling SCSI hard drives name like sda, sda, and sdd. Suppose that sdd holds your Microsoft operating system, sdb holds the bulk of Linux, sdc holds your user files, and sdc holds your swap space. Now you add another hard drive and your user files are on sdd and your swap space is on sde. The new hard drive is sdc but has nothing on it. What happened?

SOLUTION: If you insert a new hard drive into the SCSI bus with a SCSI ID that is lower than an existing hard drive, you rename all hard drives with a SCSI ID number above the one you just installed. It's best to start installing your SCSI hard drives with a SCSI ID of 0,1,2 and so on; then put other SCSI devices at the other end of th SCSI bus(SCSI Ids 6,5,4 and so on). Note that most SCSI controllers are set to SCSI ID 7 by default.
---------------------------------------------------------
CD-ROM Isn't Detected

PROBLEM: You're Installing Linux but it doesn't find your CD-ROM.

SOLUTION: First, look at the preceding section about hard drive numbering. This enables you to figure out the name that Linux would call your CD-ROM if Linux knew about it. If you have an EIDE?ATAPI CD-ROM, type the following line whenever you see the boot prompt (LILO or GRUB prompt) while booting or installing your system:

linux hdx=cdrom

where X is the number your CD-ROM would have if it could be detected.
---------------------------------------------------------
How To Remove LILO and Restore my MBR

PROBLEM: You don't know how to replace the boot record that was on your system before you started installing Linux.

SOLUTION: You can log in to Linux as root, and then type the following command:

lilo -u

Another solution is to boot MS DOS, or MSDOS prompt and type the following:

fdisk /mbr
---------------------------------------------------------
Can't Use LILO to Boot

PROBLEM: You need to put Linux on a hard drive or a partition that is beyond the 1023rd cylinder, the second IDE hard drive, or the second SCSI ID number, or you need to do something else that will that will make it difficult for Linux to boot using LILO or GRUB. You can boot Linux in another way.

SOLUTION: You can use a program called LOADLIN to boot from your MS DOS or Windows system. You can read documents on how to configure LOADLIN....

issues about 1024th cylinder limits were resolved in lilo about 18 months ago afaik, there is no reason grub or lilo can't easily boot to the very end of a drive on hdd for example.
---------------------------------------------------------
The ls Command doesn't Show Files in Color

PROBLEM: When running the ls command to show files in color, the command doesn't display files in color.

SOLUTION: you have to edit the bashrc file in your home directory to add the following line to the end of the file:

alias la='ls –color=auto'

Log off and reexecute your bashrc file(assuming your using the bash shell).
---------------------------------------------------------
When I Start X Window System, I see a Gray Screen

PROBLEM: You configured your X Window system, but when you log in as a general user(that is, not as root) and type startx, all you get is a gray screen with a big x in the middle. You wait a long time, but nothing happens.

SOLUTION: To correct this problem, log in as root and go to the home directory who is having problems. After you are in the user's home directory, issue the ls – ld command tosee who owns that directory and what the permisions are on that directory. If the directory is owned by root and the group ownership is bin, use the chown and chgrp commands to change the ownership of the home directory to the user accnt and change the group ownership of the home directory to users.

This could be the issue, but then there an awful lot of things that could cause this. fundamentally it is caused by not being able to find reference to a window manager to load inside X, personally i've neevr found permissions to be the issue.

(also, it's not going to be a grey screen any more, due to the "die die die" X patch which makes it a nice colour...)
----------------------------------------------------------
How to Make X Window Start at Boot Time

PROBLEM: You don't want to have to log in to a command-line mode(such as DOS) and then type startx. Instead, you want to log in through X Window System.

SOLUTION: If you like to see a graphical interface from the beginning, do the following. In the /etc/inittab file, change this line:

id:3:initdefault:

to this:

id:5:initdefault:

Save your changes and reboot. X starts at the end of the boot process, and you can then log in through the graphical interface.
-----------------------------------------------------------
I Never Seem to Have the Correct Time

PROBLEM: When you boot Linux the time is wrong, so you set it with the date command. Then you boot to windows and itstime is wrong, so you reset it. When you reboot Linux, its time is wrong again.

SOLUTION: Most Unix systems keep their time using universal time(also known as GMT), but Microsoft Systems keep their time as local time. When you set the time n either system, you set the CPU clock to that version of the time. Then when you boot the other system, it interprets what is in the CPU clock differently and reports a different time.

Linux enables you to store and think of the clock as either GMT or local time. You make this choice when you install the system. To change your choice, follow these steps:

1. Log in as root.
2. Type timeconfig.

The Configure Timezones dialog box appears. Set your system clock to GMT by selecting the Hardware Clock Set To GMT option at the top of the screen.

3. Deselect the Hardware Clock Set To GMT option.

Highlight the option by pressing the tab key, if necessary.

4. Press the spacebar to deselect the option. Press the tab key until you reach the ok button, and then press Enter.
5. Reset the time to the proper value by using the date command if you reboot Linux or through the Windows System if you boot Windows.
 
Old 07-30-2003, 03:35 AM   #12
svar
Member
 
Registered: Jul 2003
Posts: 362

Rep: Reputation: 30
That's quite informative, but how about a tough case?

I have a 2 HD (IDE) system, hda runs 2.2.10, hdb ran 2.4.18;
boot wa svia LILO(on hdb)
Left a vi on KDE , then got back to find it frozen, Alt+Ctrl+Backspace killed X alright, but hdb never recovered
afterwards
Opn reboot the system did not even see hdb, but I could boot
2.2.10 from a floppy and work with it no problem. It still
would not see hdb . [Note that before the crash hdb was working fine for a year and a half and I did not change anything to require a bios upgrade).Since hdb was under guarantee, took it to the shop , they just plugged the machine in and .. could not even detect hda. Anyway, hda works at least at home. Took hdb out
to another PC, where it was detected by BIOS and we could actually even see the partitions.
I have no idea why on earth some systems see both HDs, some only one and some none. Anyone have a guess? The MB is an ASUS CUV4X, in case this matters.


But still could not mount any(bad superblocks). Ran reiserfsck, same thing. Ran badblocks it took forever. Various other repair tools find an error every 512bytes.

Anyone have any suggestions/pointers/tools for that (data recovery would be welcome as is some important work that had not been backed up)??
Thanks, svar
 
Old 07-30-2003, 11:43 AM   #13
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Rep: Reputation: 15
Thank you very much.

Really very helpful here.
 
Old 08-18-2003, 04:01 PM   #14
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
yeah thanks guys this post is really helpful!!
 
Old 08-23-2003, 04:31 AM   #15
maximalred
Member
 
Registered: Apr 2003
Distribution: Kanotix and Gentoo, and knoppix
Posts: 109

Rep: Reputation: 15
ok here's a question about dma setting in linux if you change your DVD-R drive to off on dma then it stops showing in Hardware,
IDA DMA MODE menu in Suse 8.2 , how to you fix your DVD-R drive and turn the thing back on . All the other drives are showing like the normal dvd drive , hard drives etc.. but it seems to lack the DVD-R in the menu for IDA DMA MODE in Suse 8.2 , I think I change it off because the drive has been slow lately in playing video etc.. which needs DMA on to the drives max settings possible for a DVD-R drive.

How do I go about fixing the dma drive reading problems for my computer?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LILO boot problems bjojoi Linux - Newbie 1 02-23-2005 01:09 PM
LILO boot problems ubiquitous_z Linux - Newbie 2 08-01-2003 05:15 PM
LILO boot problems? james.farrow Linux - General 10 07-18-2003 01:26 PM
problems with lilo boot up again razod Linux - Newbie 9 04-20-2003 03:04 PM
LILO Boot problems :( osx Linux - General 6 03-25-2003 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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