LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 08: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, 09:50 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 04:13 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
See what testdisk says too.
 
Old 04-16-2013, 04: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, 06:49 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

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


Reply



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 07:05 PM
[SOLVED] Combining anti-virus + data recovery + image recovery? littlebigman Linux - Software 8 08-12-2010 02:39 AM
[SOLVED] Ever lose data after using gparted? bluesword1969 Linux - Software 6 02-09-2010 03:18 PM
ntfs partition on usb disk messed up by gparted needs recovery cristiano.fava Linux - Hardware 8 03-09-2009 10:02 AM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration