[99391] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Recovering from Partition Magic

daemon@ATHENA.MIT.EDU (Eric Goforth)
Sat Nov 14 00:58:03 1998

Date: Sat, 14 Nov 1998 00:50:11 -0500
To: redhat-list@redhat.com
From: Eric Goforth <ericgoforth@csi.com>
In-Reply-To: <19981029030055.32116.qmail@mail2.redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

I resized several of my Linux partitions using Partition Magic 4.0 several
days ago.  The next time that I rebooted I saw LI on the screen instead of
the familiar LILO.  PM 4.0 had apparently screwed up LILO on my MBR.  I
rebooted with a Windows 95 recovery disk and did an FDISK /MBR which
allowed me to use Windows 95 again.

I downloaded linuxfd.zip from Powerquest's website and went through the
steps in "Reactivating Linux after Changing Partitions."  I used the
RAWRITE.EXE to make a Linux recovery disk.  I was then able to mount my
root partition using mount -t ext2 /dev/hda5 /mnt.  I then found the kernel
and set its root filesystem partion with rdev vmlinuz /dev/hda5 and set the
swap partition with rdev -s vmlinuz /dev/hda9.

I then looked at the entries in my fstab and in my lilo.conf and all their
device names seemed to agree with what was displayed when I typed 

grep /dev/hd * */* */*/* 2>&1 | more 

(the device named didn't appear to have changed from before I ran Partition
Magic).

The next step is where I ran into problems, as suggested I tried setting
the lilo boot sector with lilo -r /mnt.  It then complained that the
version code in the boot record was the wrong one, as the instructions said
it might so I tried /mnt/sbin/lilo -r /mnt instead.  I then get a message
saying "No such file or directory."  However, if I change to the /mnt/sbin
directory I see lilo there.  Doing an ls -l showed that root could rwx the
file.  Any idea why it doesn't recognize /mnt/sbin/lilo?



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post