From: Kenn Humborg (kenn at domain linux.ie)
Date: Tue 11 Jul 2000 - 10:42:55 IST
On Tue, Jul 11, 2000 at 09:52:58AM +0000, Paul Reilly wrote:
> Whats the best way to proceed? I could re-create the partition table as it
> should be, sync it and then try and mount /dev/hda5 under my second linux
> system, hoping the data will still be there.
Won't work. The kernel will not re-read the partition table if any of the
partitions on the driver are mounted. Therefore, any mount attempt will
end up using the older, in-memory version of the partition table.
You will need to either:
o Make the change while all partitions are unmounted (i.e. use a
root partition on the other disk (specify linux root=/dev/hdbX to
LILO) or use a rescue disk).
o Reboot after changing the partition table.
> Any ideas, advice etc would be appreciated!
Do you have another identical disk? If so, do an image backup of
the drive before you go any further:
# dd if=/dev/hda of=/dev/hdX bs=8192k
Then I think your best bet is to recreate the partition table exactly the
way it was and try mounting the partition with the files you need.
Actually, do an e2fsck first to see how fscked the filesystem is.
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:50 GMT