LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2003, 01:23 PM   #1
Applejuice
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Posts: 29

Rep: Reputation: 15
Unhappy lilo


I have a BIG problem. I have typed "fdisk mbr" and without thinking of my linux istallation, lilo bootloader disapered.
linux lies on my hda2 and windows xp on hda1. I've tried to re-install lilo bootloader when booting from cd, and the installation goes vell, but nothing happens when i reboot. I think i need to notify my mbr but how??? Can someone help me?? Please.
I also think i told my pc that i wanted to have lilo bootloader on hda2 (linux partion) Maybe i can make my own bootmeny? One thing i for sure. I need help! And quick. . . .Anyone??

Kenny
 
Old 03-29-2003, 01:29 PM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
do you have redhat instlation CD's
 
Old 03-29-2003, 01:30 PM   #3
Applejuice
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Posts: 29

Original Poster
Rep: Reputation: 15
yes only it's not redhat. it's mandrake 9.1. What are you thinking of??
 
Old 03-29-2003, 01:34 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you need to boot the system using a root/boot disk or the cdrom,

you need to mount your filesystem and create a lilo.conf file if you don't have one already. Then install lilo telling it where to get the config file with

lilo -C /pathto/lilo.conf

the lilo.conf file needs to have boot=/dev/hda for it to install to the MBR

you can tell lilo this if you want

lilo -C /pathto/lilo.conf -b /dev/hda

Last edited by DavidPhillips; 03-29-2003 at 01:36 PM.
 
Old 03-29-2003, 01:43 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
here is some more details


you will need to make sure /boot is mounted in /

if you have a seperate partition for /boot then after mounting your / filesystem

mkdir /sys
mount /dev/hda2 /sys

maybe you have /boot there on the same partition, if not do this

mount /dev/hda? /sys/boot


now you may need to give the path to lilo for it to execute


/sys/sbin/lilo -C /sys/etc/lilo.conf -b /dev/hda

Last edited by DavidPhillips; 03-29-2003 at 01:50 PM.
 
Old 03-29-2003, 01:45 PM   #6
Applejuice
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Posts: 29

Original Poster
Rep: Reputation: 15
oki. . . Hang on. Need to test it. Be right back. . .
thanks
 
Old 03-29-2003, 01:48 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
ok
 
Old 03-29-2003, 02:01 PM   #8
Applejuice
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Posts: 29

Original Poster
Rep: Reputation: 15
ok, listen up :the thing is when i boot from the cd i have 2 choises. The instalation or rescue mode. I tried your first suggestion cause your second did not apear on my screen before i booted down just now. I went in rescue mode and there i typed "mount /dev/hda2" It did not work. I am not good at linux but i try to learn it. My patience is running out. . Then i tried to write "lilo -C ......" then i got. Lilo command unknown. . To be honest, i dont understand shit HELP
 
Old 03-29-2003, 02:07 PM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
rescue mode,
get out to a prompt
and type the stuff dave says
 
Old 03-29-2003, 02:10 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
when you say it did not work you need to be specific

you must give a mount point to mount

mount /dev/hda2 /somewhere


rescue mode should mount the system for you and tell you where it's mounted

if you can't find where it's mounted type this command and look for /dev/hda2

mount
 
Old 03-29-2003, 02:20 PM   #11
Applejuice
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Posts: 29

Original Poster
Rep: Reputation: 15
oki. hang on
 
Old 03-29-2003, 02:25 PM   #12
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
Don't panic and start reinstalling linux either.
This is easy to fix with the right command line.
 
Old 03-29-2003, 02:35 PM   #13
Applejuice
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Posts: 29

Original Poster
Rep: Reputation: 15
first of all. Reinstalling linux is out of the question. Because my keyboard dont work during kernel boot. I had a friend to fix that for me så that i could try linux and i dont know how he did that. . .
do you whansard?? It altso crashes when apm is loading in kernel but that i can fix (i think). SO now the thing is : I need to get lilo up again, and for you david i must tell you that when i tried to mount devices from rescue it said : no root device found. When i try to mount from console
"rescue#rescue: mount /dev/hda2 (or hda1) /mnt" i get some sort of error that says : fs ext3 not supported in kernel. I say fuck linux (no i dont)
 
Old 03-29-2003, 02:38 PM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
are you sure it did not mount it for you?

If not then recue may be for running fsck

get a copy of tomsrtbt

everyone should have it.


It will support your filesystem and you can mount your system and install lilo


you can create the tomsrtbt disk from windows
 
Old 03-29-2003, 02:40 PM   #15
Applejuice
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Posts: 29

Original Poster
Rep: Reputation: 15
what is tomsrtbt disk?
 
  


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
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Upgraded kernel, lilo.conf, didn't run /sbin/lilo dtashima Linux - Newbie 4 10-18-2004 11:21 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 04:50 PM
Made a bootdisk with RedHat 7.1 to boot: Gave me SYSLINUX, not LILO:Want to use LILO Colonel Panic Linux - Software 0 08-17-2001 06:21 PM

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

All times are GMT -5. The time now is 02:20 AM.

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