LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-23-2015, 02:54 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
Hard Disk failed


Dear all,
I have a huge problem. My laptop last week never turned back on... I had to order a new computer. I removed the hard disk to my computer to copy my old files.

Windows. See a hard disk that is not formatted at all (my old disk had linux and windows partitions)..
Linux only see the first linux partition and the rest of the space looks unpartitioned

I guess I would need a special tool to help me recover what I can
Otherwise I would need to go some special recovery services in the market but I guess these would be expensive

Alex
 
Old 05-23-2015, 03:14 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,598

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
Not dead yet...

There ARE some tools that may help, but this is where we have to revisit the standard SYSADM reminder: "This is exactly what BACKUPS are for!". If you had good backups, you would already be recovered.

Ok, now THAT is out of the way. There are some tools that are excellent for recovery of files and folders. My first advice is to read up about "testdisk" and general partition probe and recovery. Yes, I said READ not TRY. The first step is to learn what tools are out there AND what the risk is. Even with the best tools, if the drive was part of the reason for your failure you may get nothing back. I suspect you are not that unlucky, but would advise you first to not make it worse.

Hey team: any other suggestions for Alex?
 
Old 05-23-2015, 03:49 PM   #3
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,969
Blog Entries: 32

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
alaios,

As wpeckham has advised, do a lot of reading and research first!

To recover your data, the best method is to copy/clone the failed drive's data to another hard disk before attempting recovery. Do NOT operate on the original failed drive.

Cloning:

http://dimitar.me/clone-disk-drives-with-ubuntu/

Install Testdisk using:

Code:
sudo apt-get install testdisk
In the guide “PhotoRec Step by Step” at:

http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step

To run Photorec:

Code:
sudo photorec

ddrescue……………Diaz's version.

http://www.forensicswiki.org/wiki/Ddrescue

Code:
sudo apt-get install gddrescue
Using PhotoRec:
http://dottech.org/10756/testdisk-ph...will-ever-use/
 
Old 05-23-2015, 06:11 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
sounds like the partition table

READ!!!!
read up on using FIRST

then REREAD

the documentation for testdisk

you really only get ONE shot
 
Old 05-23-2015, 06:27 PM   #5
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
If you can, I'd strongly recommend making a duplicate of the hard drive before running anything like testdisk of fsck. These programs make changes to the data on the drive, and could potentially be destructive.

You say Windows didn't "see" any partitions. Did you check the Disk Management console? If Windows identifies a disk as "foreign", it has to be "imported" in order to work (see the warning above about tools making potentially destructive changes to a drive).

I think you should do some basic troubleshooting first. Does the drive spin up when power is applied? Does it make any strange noises? Is it detected by the computer BIOS? If the answers to any of those questions are "no", "yes" or "no" respectively, a professional recovery service is your best bet of getting any of your data back.

However, if the drive spins up normally and is seen by the BIOS, the next step should be to determine whether the data on the drive can be accessed at all. You should look at the partition table with fdisk -l <device> or gdisk -l <device> or parted -l <device>, and check the S.M.A.R.T. status of the drive with smartctl -a <device>.

The information obtained by the above procedures should tell you enough about the current state of the drive that you can make an informed decision on how best to proceed. You should then ideally use a suitable tool (say, dd if the drive is physically OK) to make an exact duplicate of the drive to another drive or an image file, and perform any further data recovery operations on the copy rather than the original.
 
1 members found this post helpful.
Old 05-23-2015, 09:04 PM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by alaios View Post
Otherwise I would need to go some special recovery services in the market but I guess these would be expensive
Hi...

That's probably true but if what you have on your hard drive is extremely important (i.e. irreplacable,) then this might be the better option.

Regards...
 
Old 05-24-2015, 01:48 AM   #7
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,969
Blog Entries: 32

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
alaios,

Yet more READING material for you regarding lost partitions:

http://www.geekyprojects.com/storage...-table-or-mbr/

Last edited by beachboy2; 05-24-2015 at 01:53 AM.
 
Old 05-25-2015, 03:20 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Booting to any of the live medias can either let you try testdisk or download it live to see what you can get.


A long time ago I used to use Ranish, wish it was still being updated, you can try it.
 
  


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
[SOLVED] Unable to install OS on hard disk after failed to format linux partition from Windows Tridibesh Linux - Newbie 21 05-04-2014 10:05 AM
Unable to install OS on hard disk after failed to format linux partition from Windows Tridibesh LQ Job Marketplace [Archive] 3 09-15-2013 01:49 AM
[SOLVED] Hard disk failed due to permanent errors, using debian 6, how do I move important animalcrackers Linux - Newbie 13 12-23-2012 05:02 AM
Failed hard disk on HP DL380 running Debian Zombie13 Linux - Hardware 2 06-08-2006 01:44 AM

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

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