Re: How to restore MBR and LILO

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Josef Lowder
Date:  
To: PLUG
Subject: Re: How to restore MBR and LILO

Joe first wrote:
>> ... I have tried all the remedies I could find on the 'net, including:
>>         /sbin/lilo -v
>> which produces the following response:
>>   Unrecognized token "! Please edit /etc/lilo.conf before running lilo!"
>>   at or above line 20 in file '/etc/lilo.conf'
>> I checked /etc/lilo.conf on hda6 and it looks fine to me.
>> Can't figure out what else to try.
>> Any suggestions?


Craig wrote:
> boot from the D*mn small Linux cd and run " fdisk /dev/hda -l "and
> view the partitions. They may have been renumbered - Partition Magic
> is capable of changing things in ways that you may not anticipate.
>
> I think that you are going to have to chroot to the root directory
> of your Linux installation and actually run lilo again (lilo -v)


----------------------------------------
Here is the result f fdisk /dev/hda -l

Disk /dev/hda: 4099 MB, 4099866624 bytes
128 heads, 63 sectors/track, 993 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes

   Device  Boot    Start       End    Blocks   Id  System
/dev/hda1             419         993     2318400    5  Extended
/dev/hda2   *           1         418     1685344+   b  Win95 FAT32
/dev/hda5             419         425       28192+  83  Linux
/dev/hda6             426         764     1366816+  83  Linux
/dev/hda7             765         898      540256+  83  Linux
/dev/hda8             899         993      383008+  82  Linux swap


Partition table entries are not in disk order
----------------------------------------

I was unable to execute 'chroot' (don't know what syntax to use),
so I used sudo passwd to get to root, mounted /mnt/hda6, cd'd
to /mnt/hda5/root and typed: lilo -v ...
But I still got the same error response.

  Unrecognized token "! Please edit /etc/lilo.conf before running lilo!"
  at or above line 20 in file '/etc/lilo.conf'

What am I doing wrong?
Where is the MBR? hda1? hda5? What is in each of those?

joe

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss