how do i fix a bad partition table?
i am having problems with my hardrive died so i am setting up a new one to match the old. It is a 200GB ATA/133 IDE HDD. i use Debian Linux. i have copies of all my data on another machine which i can copy across later.
i use knoppix to load then use cfdisk to set up my partitions. when i am ready to reboot and load using lilo i get the following errors when the hd partitions are being mounted.
___________
Checking file systems...
fsck 1.27
/dev/hda9 contains a file system with errors, check forced.
Inode 33342 has illegal blocks
UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
________
i have repartitioned a couple of times and each time one or more filesystems become corrupted.
Running fsck manually and fixing the errors doesnt help
if i try and then run cfdisk i get
FATAL ERROR: Bad primary partition 3: Partition ends after end-of-disk
if i do a 'fdisk -l /dev/hda' i get the following
Disk /dev/hda: 16 heads, 63 sectors, 266305 cylinders
/dev/hda1 1 247 124392 83 Linux
Partition 1 does not end on cylinder boundary:
phys=(95,53,48) should be (95,15,63)
The other hda(x)'s show the same error
i think knoppix is affecting my filesystems due to where i am mounting them. i made a directory /mnt on /ramdisk (/ramdisk/mnt) and mounted all my filesystems off that.
how do you format the hd to start again? or do you just delete all the partitions and start again?
where should i mount my filesystems so knoppix doesnt write into them?
|