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 - 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-07-2003, 02:48 AM   #1
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Rep: Reputation: 15
Question Recreating boot record/LILO hassles


I had previously copied all of the Linux partitions from one HD to another....recently set up a new box and fired up the new drive...wouldn't boot. This is a RedHat 7.3 system.

It turns out that I had forgotten to re-create the boot record on the new drive.

The fix is simply to get to a console prompt and re-run LILO. The problem is, because /dev/hda5 (the boot partition) doesn't have a boot record (it was on /dev/hda on the old drive, and I am now using System Commander on this machine), RedHat's (or Mandrake's) rescue routine on their distro CDs can't tell that /dev/hda5 *should* be bootable and won't mount it, so I can't use those options. I can get the Linux BBC to boot and see all the partitions, but when I try to run lilo, I get:

lilo -r /mnt/0

Reading boot sector from /dev/hda5
Merging with /boot/boot.b
Map1 segment is too big

and no, I don't have a boot disk from this particular machine in its old incarnation.

Anyone have a q&d fix?

Thanks!!
Bob
 
Old 03-07-2003, 01:43 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Well, you can use Mandrake/RedHat 'rescue' mode. You just need to mount the partitions manually, then use chroot to change the /.
What way you used to copy the partitions? dd or manual copying?
 
Old 03-08-2003, 11:35 AM   #3
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
Mara:

It turns out there were a couple of other problems. When I was finally able to get the / partition mounted, I found that /etc/fstab had been corrupted....fixed that and went ahead and upgraded the box to RedHat 8.0; all's well now.

Thanks...Bob
 
  


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
mandrake boot hassles z3nith Linux - Newbie 6 01-30-2005 07:01 PM
recreating previously deleted users box_l SUSE / openSUSE 1 12-10-2004 09:18 AM
I need to delete my Main Boot Record(Lilo) RestInPieces Linux - General 5 08-22-2004 04:40 PM
LILO and currupted master boot record Bengal571 Linux - Newbie 2 08-13-2003 08:56 AM
LILO in master boot record guerilla fighta Linux - General 1 02-10-2002 03:32 PM

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

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