LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-12-2003, 05:45 PM   #1
powadha
Member
 
Registered: Nov 2003
Location: Utrecht
Distribution: Debian SID
Posts: 651

Rep: Reputation: 31
Lilo MBR (?) problem


A reinstall of Debian somehow destroyed my MBR. Linux lives on drive hdb and windows on hda (partitions c - h). Weird thing is that when this happens it's normally fixed by using the xp setup and using fixmbr. This time however it's not working. For some reason even setup doesn't see the disk. When I run it only ' unknown' partition types are shown, even partitions d-h are unknow and lilo doesn't touch those partitions during install. I can only boot using the Debian bootfloppy but as you'll understand I need access to my C drive since there is still some stuff I need to do in Win. Setup only gives the option to remove the partition and format it as NTFS. This is not what I want since all my stuff is on that drive! Any clues on how to get this fixed? I guess it's only the MBR that is screwed but it was never so complicated to get it back to work!

Regards
 
Old 12-12-2003, 10:22 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Which setup program are you referring to? I'm not too clear on whether you're trying to fix things from Windows or from Linux

Lilo should easily be able to make your drive bootable again. If you can boot up using a floppy or some such, or (even better) a Linux CD that gives you the option to go into maintenance mode, you can mount your Linux drive and get at your /etc/lilo.conf, and run LILO again to fix the MBR. I wouldn't trust any Windows utility to fix an MBR. I recently had a problem with my Windows boot record (on the C: drive, not on the MBR), and Windows couldn't even fix that properly!

As long as you can get to your bootable image (/boot/vmlinuz or whatever it's called; it should be listed in lilo.conf), you should be able to fix it!
 
Old 12-13-2003, 05:39 AM   #3
powadha
Member
 
Registered: Nov 2003
Location: Utrecht
Distribution: Debian SID
Posts: 651

Original Poster
Rep: Reputation: 31
For some weird reason this wont work. I'm trying to fix my C (hda) from LInux on D (hdb) with a boot floppy to get into D (hdb) running Lilo gives me:

Fatal: Bios device code 0x80 is being used by two disks
/dev/hdb (0x0340) and /dev/hda (0x0300)

This is what I get from running Lilo in a console. Any clues where to go from here?

Regards
 
Old 12-13-2003, 07:47 AM   #4
powadha
Member
 
Registered: Nov 2003
Location: Utrecht
Distribution: Debian SID
Posts: 651

Original Poster
Rep: Reputation: 31
Well, got it fixed. My final hope was to change the disk from master to slave and see if I could recover some of the partitions (160gig disk) I still can't believe it but winxp just booted (my bios also picked the disk up agian) So I'll try to set it back to master and see what happends. At least I got my data back!
 
  


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
LILO problem - is my MBR corrupt? mattbenton Linux - Newbie 1 10-31-2005 06:41 PM
problem with lilo and mbr ajk48n Slackware 11 07-13-2005 11:11 PM
Problem with LILO and MBR pirgos_madden Slackware 4 11-03-2004 01:02 PM
lilo mbr problem heathpitts Linux - Newbie 3 06-10-2003 12:29 PM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 03:55 PM


All times are GMT -5. The time now is 06:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration