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.
This is strange for a while I didn't think my harddrive was working. Recently though I pluged the broken hd back in and noticed that the bios recognized 200-oddgb HD so I booted a liveCD and ran cat /dev/hda. My data is clearly there but there's no partition table or any way to actually read the harddrive.
Like I can cat for things I know are on the hd and it finds it.
I can also look at it and I see grub close to the begining, reiserfs, and even entire text files like bash scrips I've written. I also saw a file that I'm pretty sure I deleated but I guess that makes sense because deleated files aren't actually explicitely removed.
I know there are plenty of other threads about recovering data but this seems like I could almost create a reiserfs and two ext2 partitions and everything would be there (the other two were actually ext3).
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Well the first partition should start at sector zero, so try that as your starting point. Choose the ending point of your hard drive (24792) for the first partition. Choose the end of the first partition plus one for the next partition and so on.
Was this hard drive in the system when you installed linux? Is it the main drive with the system on it? When you install Linux, often an MBR backup is stored in /boot. If you backed up the /boot directory in the past, and this is the drive that the system booted from when you installed, you can use dd to restore the backup_mbr file to the first block of the drive.
If you saved a backup of the fdisk -l listing, you could use that info to recreate the partition table.
---
Sorry, I was slow typing and didn't see that you had the situation resolved. When you get it going again, be sure to run fdisk -l and print it out. This could help in the future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.