I'm having some really horrible trouble with HDDs these last two days. It all started when one of two HDDs in my computer suddenly just died. I had another one lying around somewhere so I deciced to replace it with that. However the drive that died had my OS on it so I've been using Damn Small Linux to get everything I need off it.
Moving everything I need from partition to partition was really difficult. The partitons where NTFS which Damn Small doesn't write to it. So I've needed to create some FAT32 partitions to transfer the files over and reinstall Windows XP.
I had created the FAT32 partitions using
cfdisk and used
mkdosfs to format them. While I can't be entirely sure, I think that
mkdosfs has a bug. I currently have all the files I need on the NTFS and a FAT32 partiton. All that's left to do is, resize the NTFS partition, move the files from FAT32 to NTFS partitons and then delete the now unused FAT32 partitions.
My trouble is that both programs I have tried;
cfdisk &
Partiton Magic 8 both won't read the partiton table because it seems to be messed up (which I think was caused by
mkdosfs). However both Linux and Windows can detect, read and write to the partitons.
Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1155 9277506 7 HPFS/NTFS
/dev/hda2 7180 9729 20482875 c Win95 FAT32 (LBA)
Disk /dev/hdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 6135 9965 30769263 7 HPFS/NTFS
/dev/hdb2 3703 6135 19531008 c Win95 FAT32 (LBA)
Partition 2 does not end on cylinder boundary.
/dev/hdb3 1272 3703 19531008 c Win95 FAT32 (LBA)
Partition 3 does not end on cylinder boundary.
That's my output of
fdisk -l.
All I trying to do now is to delete the partitions
hdb2,
hdb3, resize
hdb1 because
hdb2 is in it's way, move the files from the
hda2 to the now larger
hdb1 & then delete
hda2,
hdb2 &
hdb3.
The message that
cfdisk /dev/hdb is giving me is:
Code:
FATAL ERROR: Bad primary partition 0: Partition ends after end-of-disk
Press any key to exit cfdisk
Anybody know how to fix this? I've tried everything I can think off that won't cause any data loss.
I really don't want to lose any thing on hdb1! I don't any places to make a backup either.
A huge thanks to anybody who replies.