LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices

Reply
 
Search this Thread
Old 12-14-2008, 08:33 PM   #1
abd el-hamid ibrahim
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
Unhappy Problem with lilo [backtrack]


hey, every one
last i was installed backtrack final 3 and then my brother install windows then the lilo boot loader disappeared !!
please , any one tell me how can i fix this problem
 
Old 12-14-2008, 11:03 PM   #2
laitcg
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Rep: Reputation: 3
Windows install may reset the bootable partition and mbr. Make sure your MBR is clean (from linux boot cd: dd if=/dev/zero of=/dev/hda1 bs=446 count=1) and use a partition manager to reset your boot partition to your lilo/grub partition.
 
Old 12-15-2008, 02:40 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
Quote:
Originally Posted by laitcg View Post
Windows install may reset the bootable partition and mbr. Make sure your MBR is clean (from linux boot cd: dd if=/dev/zero of=/dev/hda1 bs=446 count=1) and use a partition manager to reset your boot partition to your lilo/grub partition.

that would just zero out the boot record of the first partition, not the MBR. hda1. the master boot record would be at the beginning of hda. I think doing this will just make things worse. If hda1 is a linux partition, you could mess up something there. If it's a windows partition, you could mess up something there.
You should be able to boot from a rescue cd and reinstall lilo from there.
 
Old 12-15-2008, 04:29 AM   #4
abd el-hamid ibrahim
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
when i installed fedora before i fixed the grub boot loader by using the grub shell in ubuntu live cd
can't i fix the lilo one by using the backtrack live cd ?? because i havn't the rescue one
if can then how i can do that !!??
 
Old 12-15-2008, 03:54 PM   #5
duncan_roe
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Smile

Sure you can rebuild your boot from the live CD.
The method I use is: mount your regular root disk and chroot to it.
Mount /proc.
You may need to create a device node for you HDD using mknod (I never do, but my system is old). E.g. if your lilo.conf references /dev/hda and there is no such file, do:
cd /dev
mknod hda b 3 0
Now you should be able to run lilo without changing lilo.conf. You may get a warning about a mismatch between (I forget what) but if it's jus a warning then no need to worry.
If you had a separate /boot, you'll need to mount it (*after* doing chroot). You may need to make the device node for that disk as well - check in another window (not chroot'd) what the numbers are for that device (use ls -l)
 
Old 12-15-2008, 03:55 PM   #6
mastemmer
Member
 
Registered: Jul 2007
Location: Porto Alegre, Brazil
Distribution: Slackware
Posts: 35

Rep: Reputation: 16
1. Boot from a Linux live CD.
2. Mount your main Linux partition. Assuming your Linux partition is in
/dev/hda5 do:

mkdir /mnt
mount /dev/hda5 /mnt

3. chrrot to your Linux partition:

chroot /mnt

4. Check the lilo configuration: (/etc/lilo.conf) and run lilo
lilo

This will reinstall lilo, restoring the mbr.
 
Old 12-15-2008, 03:58 PM   #7
duncan_roe
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
You might want to update your lilo.conf so it will boot windows - this is from my lilo.conf:

# DOS bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# DOS bootable partition config ends
 
Old 12-17-2008, 01:13 PM   #8
abd el-hamid ibrahim
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by mastemmer View Post
1. Boot from a Linux live CD.
2. Mount your main Linux partition. Assuming your Linux partition is in
/dev/hda5 do:

mkdir /mnt
mount /dev/hda5 /mnt

3. chrrot to your Linux partition:

chroot /mnt

4. Check the lilo configuration: (/etc/lilo.conf) and run lilo
lilo

This will reinstall lilo, restoring the mbr.
the problem is solved .. THANQ
 
  


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
Backtrack -install problem gocys Linux - Newbie 1 09-24-2008 07:48 PM
Help!! Backtrack+Suse+Lilo razorren Linux - Software 7 07-12-2008 02:11 PM
Backtrack installation problem...... alice_neo Slackware 1 05-30-2008 05:57 AM
problem with backtrack raffigee Slackware 27 09-03-2007 10:40 AM
Problem in using using startx from Backtrack 2.0 live cd dipti.bajaj Linux - General 4 07-17-2007 09:56 AM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration