LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Partition begins after end-of-disk (https://www.linuxquestions.org/questions/linux-hardware-18/partition-begins-after-end-of-disk-313071/)

cornleader 04-14-2005 12:49 AM

Partition begins after end-of-disk
 
I think I fried a hard drive. I was about to transfer a file from a Gentoo box to a Slackware box. I opened the shared dir on the slackware box and it hung. Then I tried to access the same shared folder over the network and same thing. Thats when I noticed the Slackware box locked up. It was locked up solid. My keyboard lights were flashing on and off. I had to press the restart button. After 15 minutes of inode checking the machine told me to enter my root password to enter maintenance mode or something. I ran e2fsck -v -y on /dev/hda and restarted a few times and the machine finally booted. When I started X I noticed that some of my settings were wrong like window styles and colors and silly stuff like that and there were a few extra icons in my tray. Thats when I noticed the drive I was trying to access originally was screwed. (hdb)

When I run cfdisk /dev/hdb I get this...
Quote:

FATAL ERROR: Bad primary partition 0: Partition begins after end-of-disk
When I run fdisk i get this...
Quote:

Disk /dev/hdb: 8190 MB, 8190443520 bytes
255 heads, 63 sectors/track, 995 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 2089 4521 19535264+ 83 Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(2, 3, 1) logical=(2088, 179, 11)
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(4520, 186, 18)
/dev/hdb2 2433 4867 19551105 83 Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(1023, 254, 63) logical=(2432, 8, 9)
Partition 2 has different physical/logical endings:
phys=(1023, 254, 63) logical=(4866, 8, 8)
/dev/hdb3 2089 4178 16777472 0 Empty
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(2, 2, 0) logical=(2088, 178, 11)
Partition 3 has different physical/logical endings:
phys=(2, 2, 0) logical=(4177, 101, 20)
Partition 3 does not end on cylinder boundary.
/dev/hdb4 2089 4178 16777472 0 Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(2, 2, 0) logical=(2088, 178, 11)
Partition 4 has different physical/logical endings:
phys=(2, 2, 0) logical=(4177, 101, 20)
Partition 4 does not end on cylinder boundary.
I noticed that the drive is showing that it is only 8190MB when its a 40 gig drive and its also wrong in bios. It only shows 8 gigs there as well. I cant run e2fsck on this drive either.

Is this drive totally screwed ar can it be repaired?

jiml8 04-14-2005 09:18 PM

That is pretty wierd. Is there anything on this drive you want to keep?

Have you tried a power off, wait a few minutes, and power back on?

You might need to low level format it. It has been a long time since I low level formatted an IDE drive; I'd have to research it, but in spite of what some people will tell you it is possible.

What brand/model of drive? (It matters considerably since low level formatting is different depending on brand...)

jiml8 04-14-2005 09:40 PM

As I think further about it, I am forced to wonder. How old is this computer? Do you need some kind of disk manager for the HD to compensate for an old BIOS? Perhaps the drive is reporting the wrong size because the disk manager needs to be reinstalled?

Have you done an fdisk/mbr?

cornleader 04-15-2005 09:45 AM

How do I do a fdisk/mbr?

I am thinking that the drive is just screwed. I only use it to store data but I would like to recover the data that is on it.
I have had strange things happen to this computer before because of an issue with this drive. One time I tried to mount it and it locked up the machine so bad It screwed up my boot drive and I couldn't restart the machine so I had to reinstall slackware.

I'm not sure of the model of the drive but I am sure it's an older Maxtor.


All times are GMT -5. The time now is 03:01 PM.