LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2020, 09:13 PM   #1
jrgile
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Rep: Reputation: Disabled
Restore an interrupted format of 2.5 Tb drive


Linux Mint 19.3: my grandson intended to format a thumb drive and instead started to format his 2.5 Tb drive. When he realized what was happening he panicked and pulled the plug on the drive. Can this drive be restored or can all the files be recovered. He hasn't done anything to the drive since he did that.
Thank you,
John
 
Old 06-11-2020, 09:22 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,133

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Depends. You knew that was going to be the answer ...
Depends on what you mean by "format":
- simple repartitioning ?
- mkfs ? which partition.
- GUI disk manager format ? which partition.
- which filesystem type are we talking about.
 
1 members found this post helpful.
Old 06-11-2020, 10:00 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Testdisk is a common way to see if you can get files back.

There used to be some tools on windows and some have claimed it can work on linux for unpartition.

Systemrescue disk might have testdisk photorec but really almost any live boot has it or can add it in live.

https://www.r-studio.com/unformat-disk/
 
1 members found this post helpful.
Old 06-11-2020, 10:45 PM   #4
jrgile
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Wow! Some very quick replies! The format was through the GUI and it seems the disk table (?) was removed because the drive, he says, is not 'recognized'? I will need to talk with him again. Thank you for all the input. I did mention to him about Testdisk as I saw that when I was looking for help so we'll see what he says. We live about 15 miles apart and even further when you consider Covid19 and how we are 'senior' age and are being very careful. At any rate, I will get back to this post after I talk with him in the next day or two. Thanks again!
 
1 members found this post helpful.
Old 06-11-2020, 10:59 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,133

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
You might be lucky. If he still has the USB he installed Mint from, he can boot that in "live" mode which will give him a usable system that won't update his disk in any way. Then he can connect to his network, and we can get him to run commands. Will be much quicker and accurate.
 
Old 06-12-2020, 02:47 PM   #6
jrgile
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you. I didn't get a chance to talk with him today but will hopefully talk with him tomorrow. By the way, what commands are those that would speed up recovery? I wish I had known about this site a long time ago, it would have saved me a lot of grief in the past!
 
Old 06-12-2020, 03:35 PM   #7
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 336

Rep: Reputation: Disabled
Quote:
Originally Posted by jrgile View Post
Linux Mint 19.3: my grandson intended to format a thumb drive and instead started to format his 2.5 Tb drive. When he realized what was happening he panicked and pulled the plug on the drive.
I rest the case for having an external backup drive. Or two.

How far into the format process, was the electronic marvel when the pulled the plug?

Quote:
Can this drive be restored or can all the files be recovered.
If the drive's existance is acknowledged by gparted under the Devices tab there are two options. Create partition table and attempt data rescue.

Whilst I have not tried then, I would, in turn, select them. Gparted might work.

Note that whichever way you go, you'll need a drive bigger than the one your trying to rescue data from. And data recovery is not a quick process.
 
Old 06-12-2020, 06:20 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,133

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by jrgile View Post
By the way, what commands are those that would speed up recovery?
What I meant was if we can get a person on the machine to issue commands and give us the output, it's a lot quicker than waiting for an intermediary to hot-foot over there to relay the same.
The commands will be the same, just hopefully more targetted.

I concur with the above as per my sigline.
 
1 members found this post helpful.
Old 06-12-2020, 07:04 PM   #9
jrgile
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you for your suggestions. I may not have made myself very clear. The drive that he accidentally started to format was his external backup drive that he had been storing his pictures on. He loves to do photography and he was trying to format an SD Card for his camera. The system he was using was a Mint 19.3 version of Linux. He can see the drive in the drive section but he gets a message that says: "Unable to read or write." He was trying to format it to Ext. 4 and it seemed to freeze up and when he saw that it was trying to format his 2.5Tb drive, he unplugged it. So, I got a hold of him today and had him download/install testdisk on a windows 10 system. Unfortunately, all we ended up getting was some virus with it. Go figure. Would you recommend recovery in Linux then? I found CGSecurity.org seems to have a valid program. I see it also works in Linux.
 
1 members found this post helpful.
Old 06-12-2020, 07:05 PM   #10
jrgile
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Well, my grandson says he is going to get the system and drive over to me and then I will be able to do whatever you suggest. He isn't very computer knowledgeable, he just takes awesome pics.
 
Old 06-12-2020, 07:12 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,133

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Testdisk is excellent at what it does, and I only ever use it on Linux. But it may not be the tool you require - we need to better understand what the actual problem is before recovery starts.
 
1 members found this post helpful.
Old 06-12-2020, 07:13 PM   #12
jrgile
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
I'll have more info when I get the system. Thank you.
 
1 members found this post helpful.
Old 06-13-2020, 11:07 AM   #13
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by jrgile View Post
... He loves to do photography and he was trying to format an SD Card for his camera....
Always format cards for camera use in camera... will prevent all kind of issues (including the above) and is recommended in the camera user manual.

Just a footnote. Carry on!


/edit: if he loves the photo files as well, do keep at the very least two backups...
 
  


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
partition and format a advanced format drive marcelvl Linux - Newbie 2 01-09-2013 10:06 PM
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 06:30 AM
Download Interrupted Gerardoj Linux - Software 4 05-02-2004 09:47 AM
apt-get : reset an interrupted install process kazuni Debian 1 10-10-2003 01:21 PM
lynx download interrupted...do I need to clean up? 360 Linux - General 3 08-30-2001 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 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