Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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...)
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.