recover data from hard drive sata using linux ubuntu

sergiofreeman

New Member
Joined
Jun 3, 2020
Messages
8
Reaction score
0
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:


Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,506
Reaction score
1,241
Credits
11,004
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.
 

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
2,752
Reaction score
1,364
Credits
15,090
You can also boot to a Live Linux USB or CD/DVD and back up all of the data to an external drive.
 

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,910
Reaction score
1,970
Credits
18,114
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
 

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,910
Reaction score
1,970
Credits
18,114
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.
 
OP
S

sergiofreeman

New Member
Joined
Jun 3, 2020
Messages
8
Reaction score
0
Credits
54
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?
 

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,506
Reaction score
1,241
Credits
11,004
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:
OP
S

sergiofreeman

New Member
Joined
Jun 3, 2020
Messages
8
Reaction score
0
Credits
54
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,
 
OP
S

sergiofreeman

New Member
Joined
Jun 3, 2020
Messages
8
Reaction score
0
Credits
54
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,
 

sp331yi

Well-Known Member
Joined
Apr 11, 2020
Messages
721
Reaction score
326
Credits
4,584
Congrats!
woulda been easier using puppy linux. may i suggest making a livecd or liveusb for next time? See above -- "Download Linux"
Welcome!
 

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,506
Reaction score
1,241
Credits
11,004

jglen490

Well-Known Member
Joined
Mar 10, 2020
Messages
736
Reaction score
505
Credits
4,106
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?
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top