Discussion:
Corrupted partition table/drive
(too old to reply)
J Merritt
2007-03-14 20:30:16 UTC
Permalink
I have a machine with three fixed disks:
hda = Windows XP (40 gb)
hdb = (see below) (60 gb)
hdc = ext2 partition for data storage (30 gb)

hdb is the disk I'm having serious problems with. Before, the disk had several partitions on it. I am not sure how many primary or secondary partitions there were, although all of them were Linux partitions.

My goal was to erase the first three partitions (because I never used them anymore) and combine them into one large ext2 partition for more data storage. (There were a total of five or six between the primary/extended.) Using the Ultimate Boot CD and XFDISK, I deleted the first three partitions, rebooted, and attempted to use the same utility to create one large ext2 partition. However, after it created the partition, XFDISK reported an error writing the partition data.

The result is that none of the hdb partitions are accessible. I cannot boot from any hdb partition and the partition utilities I've tried have not been able to “see” the hdb partitions. One partial exception is R-Linux, which I ran from a bootable CD. While it cannot read all of the partition data, it did see a partial file structure for the partitions while performing a scan of the drive, even though it was sketchy and the filesizes were not accurate.

I also attempted to use a gparted live CD, and it could not even see hdb (it does see the other two just fine). Using gpart on the command line returns:

'*** Fatal error: cannot get sector size on dev(/dev/hdb).'

When I open a terminal and type in 'gpart -C 29437,16,255 /dev/hdb' to try forcing it to recognize the drive configuration, it gives the same error.

The BIOS reports that the drive is there. It detects it automatically.

I've been trying to figure this out for awhile. So far, no real success with anything. Any suggestions are appreciated.


---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
Matthew K Poer
2007-03-14 22:50:08 UTC
Permalink
Post by J Merritt
hda = Windows XP (40 gb)
hdb = (see below) (60 gb)
hdc = ext2 partition for data storage (30 gb)
hdb is the disk I'm having serious problems with. Before, the disk had
several partitions on it. I am not sure how many primary or secondary
partitions there were, although all of them were Linux partitions.
My goal was to erase the first three partitions (because I never used
them anymore) and combine them into one large ext2 partition for more
data storage. (There were a total of five or six between the
primary/extended.) Using the Ultimate Boot CD and XFDISK, I deleted
the first three partitions, rebooted, and attempted to use the same
utility to create one large ext2 partition. However, after it created
the partition, XFDISK reported an error writing the partition data.
The result is that none of the hdb partitions are accessible. I cannot
boot from any hdb partition and the partition utilities I've tried
have not been able to “see” the hdb partitions. One partial exception
is R-Linux, which I ran from a bootable CD. While it cannot read all
of the partition data, it did see a partial file structure for the
partitions while performing a scan of the drive, even though it was
sketchy and the filesizes were not accurate.
I also attempted to use a gparted live CD, and it could not even see
hdb (it does see the other two just fine). Using gpart on the command
'*** Fatal error: cannot get sector size on dev(/dev/hdb).'
When I open a terminal and type in 'gpart -C 29437,16,255 /dev/hdb' to
try forcing it to recognize the drive configuration, it gives the same
error.
The BIOS reports that the drive is there. It detects it automatically.
I've been trying to figure this out for awhile. So far, no real
success with anything. Any suggestions are appreciated.
If you're just trying to format/re-partition the drive, boot a Live cd
(knoppix or whatever) and run use parted or QTParted.
(don't partition or format if you want to keep any of the data. Data
recovery would be a different issue entirely, be warned.)
--
Matthew K Poer
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Andrei Popescu
2007-03-14 23:30:16 UTC
Permalink
Post by J Merritt
My goal was to erase the first three partitions (because I never used
them anymore) and combine them into one large ext2 partition for more
data storage. (There were a total of five or six between the
primary/extended.) Using the Ultimate Boot CD and XFDISK, I deleted
the first three partitions, rebooted, and attempted to use the same
utility to create one large ext2 partition. However, after it created
the partition, XFDISK reported an error writing the partition data.
The result is that none of the hdb partitions are accessible. I
Had similar trouble after erasing a partition with the Windows
partitioner. I used testdisk
(http://www.cgsecurity.org/wiki/TestDisk) and managed to recover
everything, but YMMV, do it on your own risk, ....

Beware that usage (at least for me) was not very intuitive. I was
missing only one partition. On the first run I managed to recover it,
but lost all others due to misunderstanding the interface. I managed
to recover all of them on the second run though.

HTH,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Loading...