You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



How do I recover a data partition: gparted interrupted while extending it ...?

Author (Read 8475 times)

0 Members and 2 Guests are viewing this topic.

 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
@Moltke
I normally have 2 backups, so that's 3 copies including the original - just to be sure, except on this occasion...!!!
It seems to be that something always goes wrong when you don't have a back-up - Murphy's Law!

After today's major fright, my wife backed up all her stuff.
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
Hi @m654321

I faced a similar situation, mine was a usb 1TB hdd and it looked like I'd lost almost 800gb of data  :-X but I recovered my data/partition with testdisk following instructions from here: https://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
Since then I  bookmarked it in case - hope never but better safe than sorry - I ever need it again. To be honest it was quite very easy and I recovered my data with little no effort.
Good luck recovering yours!

EDIT: By the way, I almost forgot but for best results you should use test disk from a live environment. Here: https://www.pcworld.com/article/3132067/linux/how-to-recover-lost-data-using-testdisk.html
 
Hope this helps! :)

Many thanks for your help.
I've now wiped the drive. I discovered I had a backup on setup3 below (Phew!!!!) , though the backup was done 3 months ago. So I only loose the last 3 months of data - putting it into perspective, the data represent a total of 15 years data: photos, videos, admin, etc, so I've got the bulk of it. I'll keep your & TC's links though, as they might be useful next time - though as you say let's hope there wont be a next time!

Glad you solved it! :)  Back then I didn't have and still don't any backups because that usb hdd is my backup drive! I need to get a new one to backup the backup lol If you can afford it I suggest you do the same, -in fact, I think everyone should...cause you never know, right? -   and keep that well guarded and unplugged from your machine/s, that way you'll know it will always be there in case the worst scenario  happens, hope it never does but again, better safe than sorry :)   

Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
Hi @m654321

I faced a similar situation, mine was a usb 1TB hdd and it looked like I'd lost almost 800gb of data  :-X but I recovered my data/partition with testdisk following instructions from here: https://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
Since then I  bookmarked it in case - hope never but better safe than sorry - I ever need it again. To be honest it was quite very easy and I recovered my data with little no effort.
Good luck recovering yours!

EDIT: By the way, I almost forgot but for best results you should use test disk from a live environment. Here: https://www.pcworld.com/article/3132067/linux/how-to-recover-lost-data-using-testdisk.html
 
Hope this helps! :)

Many thanks for your help.
I've now wiped the drive. I discovered I had a backup on setup3 below (Phew!!!!) , though the backup was done 3 months ago. So I only loose the last 3 months of data - putting it into perspective, the data represent a total of 15 years data: photos, videos, admin, etc, so I've got the bulk of it. I'll keep your & TC's links though, as they might be useful next time - though as you say let's hope there wont be a next time!
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

 

trinidad

  • Platinum Level Poster
  • **********
  • 1472
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
The data is probably still there, but you may be stuck using a file carver which will take many hours. I recently recovered most of a Debian base OS 150gig that way in about 20 hours, but it took almost a week to indentify all the files. 400gig would be overwhelming without major resources. If you can be selective: that is go after whats most important to you from the disk; that could trim down the time involved. Imaging the partition would be best and then working at it selectively.   

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
Read here first:  https://help.ubuntu.com/community/DataRecovery
In my experience imaging the partition first without tampering any further is the safest if you have the resources to do so, especially if the partition contained an OS. Recovering the partition is faster than recovering the files, but if you can't recover the partition you can still recover a lot of the files. The caveat is that file carving 400gig will take many hours.
TC

Thanks TC.  It's a data partition only (it's SSD2, containing /home partition) - not bootable. As I said above, I was only able to recover three home directories and they were all empty!  The 400GB od data therefore seems to be lost.
« Last Edit: December 30, 2017, 10:43:25 AM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

 

trinidad

  • Platinum Level Poster
  • **********
  • 1472
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
Read here first:  https://help.ubuntu.com/community/DataRecovery

In my experience imaging the partition first without tampering any further is the safest if you have the resources to do so, especially if the partition contained an OS. Recovering the partition is faster than recovering the files, but if you can't recover the partition you can still recover a lot of the files. The caveat is that file carving 400gig will take many hours.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
Hi @m654321

I faced a similar situation, mine was a usb 1TB hdd and it looked like I'd lost almost 800gb of data  :-X but I recovered my data/partition with testdisk following instructions from here: https://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
Since then I  bookmarked it in case - hope never but better safe than sorry - I ever need it again. To be honest it was quite very easy and I recovered my data with little no effort.
Good luck recovering yours!

EDIT: By the way, I almost forgot but for best results you should use test disk from a live environment. Here: https://www.pcworld.com/article/3132067/linux/how-to-recover-lost-data-using-testdisk.html
 
Hope this helps! :)
« Last Edit: December 30, 2017, 08:04:08 AM by Moltke »
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
Have you tried using Testdisk to look for the lost partition?
Use the extended search option, it will yield better results.

Many thanks - I'm now running testdisk.
I can only see one option: "Quick Search" - can't find Extended Search or Deeper Search ...


Using Quick Search, I was only able to recover 3 of the original 9 home directories, i.e. lost+found, Downloads & Templates. However, all three directories were empty ...


« Last Edit: December 30, 2017, 07:41:04 AM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

 

ptyerman

  • Occasional Poster
  • **
  • 62
    Posts
  • Reputation: 28
  • Linux Lite Member
    • View Profile

  • CPU: Core i7 920

  • MEMORY: 16Gb

  • VIDEO CARD: Radeon RX580
Ouch! Avoid any more work using Gparted or any other partitioning software as it may make things worse. Have you tried using Testdisk to look for the lost partition? If it finds it there is a very good chance it would recover the original partition. Use the extended search option, it will yield better results.
I've recovered partitions before using Testdisk, it's extremely good at what it does.
 

How do I recover a data partition: gparted interrupted while extending it ...?
« Reply #1 on: December 30, 2017, 04:32:46 AM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x

Just to report probably the worst case scenario. Am in a bit of a daze at the moment ...
Please don't anyone remind me that I should have backed-up the data before using gparted - I know - I usually do but didn't this time ...

I've just been extending a data partition on an SSD using gparted.
The SSD, plugged in as USB drive, was accidentally moved during the operation, temporarily disconnected, and gparted ceased completing the operation.

Its a 1TB drive: I was extending a 700GB ext4 partition (with 400GB data written on it) to absorb the remaining 230GB of unallocated space.

How do I recover the data? I hope it's not lost as it's not backed up!
Gparted is showing nothing stored on the SSD - the undo operation didn't work.


Quite frankly, I'm hoping for a miracle to recover the data ...
 
« Last Edit: December 30, 2017, 05:10:58 AM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section