recover data from hard drive sata using linux ubuntu

sergiofreeman

New Member
Joined
Jun 3, 2020
Messages
8
Reaction score
1
Credits
54
Hi there,

I have a Seagate barracuda full of family pics, videos and valuable personal information, all of a sudden is not allowing me see its information anymore, gparted detect it with two partitions , 1. dev / sdb1 349 gb 2. unallocated 2.39 TB.

I already used testdisk on terminal, I followed all steps and finally it did not work. gparted did not work as well, so, I need help to recover this data.

thank you for your help.
 
Last edited:


Hi there,

I had a Seagate barracuda full of family pics, videos and valuable personal information, all of a sudden is not allowing me see its information anymore, gparted detect it with two partitions , 1. dev / sdb1 349 gb 2. unallocated 2.39 TB.

I already used testdisk on terminal, I followed all steps and finally it did not work. gparted did not work as well, so, I need help to recover this data.

thank you for your help.
Try with this https://www.r-studio.com/free-linux-recovery/ it helped recover most of my data from my 1TB USB disk, mostly because I didn't have another 1TB to save all of it, otherwise ... Download the .deb package from that website to your home dir, once downloaded, open a terminal and type
Code:
sudo apt install ./RLinux5_x64.deb
Once R-Linux's been installed you can locate it in your DE menu and launch it by clicking on its icon. It's pretty easy to use and even has a preview feature of the files to recover before recovering them so you make sure they are good and not corrupted saving time and frustration.
 
You can also boot to a Live Linux USB or CD/DVD and back up all of the data to an external drive.
 
you might try photorec , i'm sure thats an available command of testdisk - is that wha tyou tried ?

otherwise probably use dd rescue its designed for failing disks; played with it a few times you can select partition at a time to get ;data will then be saved as an ".img " file. You can then play etc with that file. Probably best to get dd rescue on a usb stick. you really want to use your hd as little as possible now if theres a problem

To get data off a partition the syntax is :

# ddrescue -d -r3 /dev/sdax data.img data.log

// x is your choice of partition
// data isj ust any name mayeb use data1.img, data2.img etc foreach partition
//data.log is where meta info will be

the log file and .img will be stored in "context" to where bash terminal thinks it is.

eg if on live OS that has persistence , you have opened terminal and have cd'd to Desktop thats where you img will be .

I guess trouble is 1) you need live OS with persistence and 2) is there enough room

other wise do it from your iffy PC to external drive in which ca
 
to launch photorec launch from terminal as root :

# photorec

i've got it on my slackware box, on launch it will detect and give you a choice of partitions to look at ; i've deliberately deleted files before and it did find them. Sometimes though you need to look where it recovered them to.
 
Sorry I couldn't install RLinux with that command.
it says
Unsupported file ./RLinux_x64.deb given on commandline
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
 
Sorry I couldn't install RLinux with that command.
it says
Unsupported file ./RLinux_x64.deb given on commandline
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Is your distro/OS a 64bit or 32bit system? Did you have some package manager tool open at that moment? synaptic? gdebi? The problem is, you either downloaded the wrong file since your machine/OS is 32bit or sudo was being used by another program at that moment and that's why he refused to install the app. Make sure which one it is; to check whether your OS/pc is a 32 or 64 bit, open a terminal and type
Code:
arch
press enter and check the output, if it is 64bit, you'll see
Code:
x86_64
otherwise you'll see something else in which case you'll have to visit the R-Linux website again and download the appropiate file for your pc's architecture, also check no sudo process is running this time and try again.
 
Last edited:
s your distro/OS a 64bit or 32bit system? Did you have some package manager tool open at that moment? synaptic? gdebi? The problem is, you either downloaded the wrong file since your machine/OS is 32bit or sudo was being used by another program at that moment and that's why he refused to install the app. Make sure which one it is; to check whether your OS/pc is a 32 or 64 bit, open a terminal and type
My distro is 64 bit,
Maybe yes , I had synaptic open maybe,
 
Is your distro/OS a 64bit or 32bit system? Did you have some package manager tool open at that moment? synaptic? gdebi? The problem is, you either downloaded the wrong file since your machine/OS is 32bit or sudo was being used by another program at that moment and that's why he refused to install the app. Make sure which one it is; to check whether your OS/pc is a 32 or 64 bit, open a terminal and type
Code:
arch
press enter and check the output, if it is 64bit, you'll see
Code:
x86_64
otherwise you'll see something else in which case you'll have to visit the R-Linux website again and download the appropiate file for your pc's architecture, also check no sudo process is running this time and try again.


Anyway is not working,
 
Congrats!
woulda been easier using puppy linux. may i suggest making a livecd or liveusb for next time? See above -- "Download Linux"
Welcome!
 
Hi there,

I have a Seagate barracuda full of family pics, videos and valuable personal information, all of a sudden is not allowing me see its information anymore, gparted detect it with two partitions , 1. dev / sdb1 349 gb 2. unallocated 2.39 TB.

I already used testdisk on terminal, I followed all steps and finally it did not work. gparted did not work as well, so, I need help to recover this data.

thank you for your help.
So is this drive part of your normal configuration? Such as would normally expect to have this disk be mounted when you boot the machine? Or is it an external drive that you mount as it is needed?
 
Finally I made it, using Photorec
Hadn't heard of Photorec, thanks for mentioning it:-

Have you now been able to recover everything on your external HDD?
 
My multboot 64G USB stick always contains the following:
Parted Magic, Fossapup, Bionicpup plus the current distro I use (MX).
That save my skin many times.
Even a bizarre one like this: ... DLL not found on a Windows computer. Searched & downloaded the DLL, problem fixed. I don't know why a DLL can disappear by itself.:(
 
Hadn't heard of Photorec, thanks for mentioning it:-

Photorec is a part of the TestDisk suite.

Wiz
 

Members online


Top