[Wylug-help] [Wylug-Help]messed up FAT32 partition
Gary Stainburn
gary.stainburn at ringways.co.uk
Thu, 27 Feb 2003 09:06:48 +0000
On Thursday 27 Feb 2003 7:20 am, Matthew Smith wrote:
> Help!
>
> hd0 = dual boot LILO 1st partition 2GB FAT32 (Win98SE) , 2nd partition
> 15GB ext2 (Mdk 7.1)
>
> hd1 = single 30GB FAT32 partition, successfully defragged (4.7GB used) but
> with a broken partition table (PM4 crashed during resizing). The cluster
> size is either 16k or 32k
>
> I think I just need to write a clean partition table but I would appreciate
> knowing also how I can make an image of the first 5GB and maybe extract the
> files before I attempt it. The directories and files were intact until I
> rebooted.
>
>
> Many many thanks in advance
>
> Matt
Hi Matt,
Firstly, make sure that the FAT partition on hd0 is mounted somewhere and that
the FAT partition in hd1 isn't
then as root run the following command (asuming hd1 is primary disk on 2nd
controller and that you used primary partitions)
dd if=/dev/hdc1 of=/<mnt>/hdc1.img bs-1024 count=<numblocks>
where
<mnt> is the mount point of the FAT partition on hd0
<numblocks) is the number of blocks you wish to copy.
Fixing the partition depends on what state PM left it in. You could try using
the linux version of fdisk to delete/recreate the partition table in both the
16k and 32k cluster sizes until you get something that works.
Chances are though, that if it was half way throught the conversion - you're
stuffed.
Gary
>
>
> _______________________________________________
> Wylug-help mailing list
> Wylug-help@wylug.org.uk
> http://list.wylug.org.uk/mailman/listinfo/wylug-help
--
Gary Stainburn
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000