LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-08-2013, 09:08 AM   #1
tihnessa
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
Data recovery following gparted fubar?


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?

Many thanks,

David Shaw
 
Old 04-08-2013, 10:50 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,619
Blog Entries: 2

Rep: Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076
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.
 
Old 04-08-2013, 05:13 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,967

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
See what testdisk says too.
 
Old 04-16-2013, 05:34 AM   #4
dtmc
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
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 ;-)

Ho hum.

Anyway, many thanks for the help,

David Shaw
 
Old 04-16-2013, 07:49 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,619
Blog Entries: 2

Rep: Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076Reputation: 4076
Now that you have to cases of "data lost" you should think about backup strategies to prevent such things in the future.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can this harddrive be saved? not data recovery. Gparted doesn't want to work with it. keithostertag Linux - Hardware 3 02-19-2013 08:05 PM
[SOLVED] Combining anti-virus + data recovery + image recovery? littlebigman Linux - Software 8 08-12-2010 03:39 AM
[SOLVED] Ever lose data after using gparted? bluesword1969 Linux - Software 6 02-09-2010 04:18 PM
ntfs partition on usb disk messed up by gparted needs recovery cristiano.fava Linux - Hardware 8 03-09-2009 11:02 AM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 01:21 PM


All times are GMT -5. The time now is 07:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration