LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-26-2001, 06:36 AM   #1
rovoreed
LQ Newbie
 
Registered: Apr 2001
Posts: 7

Rep: Reputation: 0
Angry Clobbered MBR ?


Somehow I have managed to clobber my hda drive.

When I boot all I get is...

LI

... presumably part of the LILO prompt, and then the PC just locks up.

My rescure floppy is giving seek errors and won't boot :-(

The good news is, I can boot the original distribution CD in "rescue mode" and can get a shell up. I can then mount hda and it seems OK. Well, there's lots of files there, and I don't seem to get seek or data read errors.

The problem is, where do I go from here? I can't run lilo because it says there is no /dev/hda device. Also I can't run e2fsck (same reason ?)

How do I create a /dev/hda device ? and will that solve my problems ?

Ultimately what I want to know is, how to make this drive bootable again. Any advice in simple steps please.
 
Old 10-26-2001, 07:31 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
If you're not too worried about re-installing your Linux distro (either you want to get rid of it, or you have no data that is vital and needs to be kept) then try and boot from a Windows Boot Floppy (preferably the same version of Win on the floppy as you're dual booting with (are you dual booting?), i.e. if you're using Win98, don't boot from a Win95 bootdisk) and type fdisk /mbr. This should restore your MBR back to the previous version (which hopefully is the one that boots Windows and Windows only). After this, you can go about re-installing.

Obviously, this is the most basic repair. I'm in no way advocating that you should not try other methods first if you feel comfortable with them. There are plenty of other threads on this website about MBR problems. Here's a link to 'MBR' search. They're sorted into order of replies (largest first).
 
Old 10-26-2001, 07:38 AM   #3
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
try posting your lilo.conf file (i know that might be a tad difficult)

if you can use your rescue disk to get at your lilo.conf an fix the problem then you need to do the following to get lilo to run.

as root go to /sbin and type
Code:
lilo -r /mnt/hda
replace /mnt/hda with whatever you named the place where you mounted your linux drive. this will tell lilo to pretend that the /mnt/hda folder is the root folder and all directory paths (in config files and in the program itself) will be referenced from here instead of the boot disk's virtual file system you are using at the moment.

you should see the normal lilo thing going

added dos *
added linux

etc.

HTH

Alex

P.S. if you can post your lilo.conf
P.P.S. try searching the forum, i think this has happened before
 
Old 10-26-2001, 08:06 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
If you can boot into Windows, then you might want to try downloading this. It will allow you to view Linux partitions from within Windows. Do not under any circumstances use the current version of explore2fs to write to your ext2 partition as this is still under development.
 
Old 10-26-2001, 08:22 AM   #5
rovoreed
LQ Newbie
 
Registered: Apr 2001
Posts: 7

Original Poster
Rep: Reputation: 0
Yippeee !

Thanks to "webtoe" I'm up and running again.

This was a Linux only system, no Windows, and 3 partitions, /boot, / (root) and /usr.

You can't imagine my relief.

Now to do a backup (Quick)

Thanks again.
 
Old 10-26-2001, 12:49 PM   #6
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
glad to be of service

(i spent 1 hr yesterday tring to get lilo to do that after i trashed the MBR)

Alex
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using mknod to restore clobbered devices Woodsman Slackware 2 11-24-2005 07:02 PM
New RedHat Enterprise distro is clobbered larry_linux Linux - Newbie 1 09-10-2005 10:46 PM
Memory clobbered error zhejunli Programming 2 01-12-2005 04:28 AM
SDL_mixer_MMX.c:16: error: PIC register `ebx' clobbered in `asm' BGuy891653 Linux - Software 0 12-12-2004 06:31 PM
RH 7.3 - Red Carpet update clobbered my ld.so.conf jdc2048 Linux - General 2 10-19-2002 07:42 AM

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

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