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.
OK, so I've been an idiot and tried to resize an ext4 partition without fscking or backing it up first and now I'm paying the price.
The scenario is this. I was trying to reinstall Xubuntu and, as part of the process, resize my /home partition - a logical, ext4 partition - using SystemRescueCD-X86-3.3.0 / gparted. I wanted to grow both the partition itself and the 'containing' partition by 20GB by extending it 'down'. The process went to about 85% and then failed with an I/O error. The partition is now unmountable and un-fsck-able (surprise!)
I've tried dd'ing it over to a stand alone hard drive, but that also fails with an I/O error. safecopy --stage 3 claims to recover all but about 150,000 bytes.
Is there any chance of recovering the data from this partition, or do I just kick myself - hard, and repeatedly - and chalk it up to experience?
To make an image of the partition use ddrescue instead of dd, it is specifically designed to handle errors on disks. After that you can try to recover your files.
Apologies for taking so long to respond - personal issues, I'm afraid :-(
Well, testdisk didn't say much. Just went into a never ending loop saying that it the partition but couldn't find anything on it, doing a deep scan and returning back to the start.
ddrescue seemed to do a better job than safecopy, but the result is pretty much garbage. I've used photorec to recover some files, but it's a pretty small percentage of what was on there, so I guess it's a case of lesson learned.
In other news, one of my NT formatted portable drives also went bad on me this week, losing my entire music library. This <expletive deleted> computer has it in for me ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.