00:00how is it going please subscribe since we're not so far from 1000 subscriber
00:06let's try to reach it as soon as possible so i can
00:12reach the second tier of youtube monetization i am trying here to restore some of the data that i
00:22have i was trying to repartition a hard drive that i use in one of my main computers and i
00:33found that i
00:34need a hard drive to which i move the data then i can bring it back to the newly created
00:42partition
00:43however i discovered that the hard drive that i used to move the data was not good enough
00:54eventually the partition has become
01:00unreadable as you can see i mean when i try to mount it normally on my system it cannot detect
01:06it it
01:08cannot read any data on it this is the partition that i'm trying to rescue the data from i
01:15i installed a piece of software called dd rescue gnu dd rescue version 1.30 and this is the command
01:26that i ran in order to start rescuing the data from the broken hard drive the choice of the hard
01:33drive
01:34wasn't good i eventually the original hard drive from which i tried to move the data and repartition it in
01:47the initial state it has more than uh four or five partitions i only wanted to have at least the
01:57root file system
01:58partition and the home partition aside from the partitions that are related to boot
02:05i got confused how many partitions there are but at least there are two more partitions besides the home
02:13partition and i wanted to make it all one big home partition one root file system partition of course
02:21and the partitions of boot i guess they are two when i tried to move to manage the data
02:28when i want to repartition i needed an extra hard drive which i used here and it is the one
02:35that is
02:36slash dev slash sdb on this computer sdb4 i emptied some space and now it's using 353 gigabytes the rescued
02:52data now is around 340 gigabytes around 92 percent of the overall space of the partition it doesn't mean
03:02that it's all data i remember i have some empty space in that partition i made it around 350 gigabytes
03:11more or
03:12less there are probably some bad sectors on this hard drive it was making some squeak noise
03:21i disassembled it which was the main bad decision that caused it probably to become this bad
03:30this took about 17 hours of processing the whole thing the command that i run is sudo dd rescue
03:41slash d this is related to reading the hard drive partition
03:48somehow
03:50dash r three three times of trial the partition slash dev slash sdb4 here the target
03:59image it will make an image for the partition and then this is the log that i made
04:07we reached it now 93 percent i'm not gonna keep updating you very often about this
04:1693 percent of the image of the partition doesn't necessarily mean the data since the data doesn't
04:23occupy the full space of the partition it may be the data or may not be now it's
04:344th phase which is sweeping non-tried blocks the file system of the broken partition is ext4 as you can
04:44see here
04:45it may not be good for the other file systems make sure you can do it i mean the method
04:52of dd rescue dd rescue is
04:54a an enhanced version of dd you can change these arguments this one is about accessing and reading the partition
05:07this one is how many times to try with it
05:11the more fragile the disk the better it is to reduce how many times
05:18it's spinning hard drive it may not be good for ssds so please keep that in mind here i tell
05:26you about
05:26these details to make sure that they match with your situation later once this is done we can mount
05:35this partition this image of a partition and from it we can get all our data or most of it
05:45in case
05:46we weren't able to get all of it
05:50if you are sure of the partition whether it is slash dev slash sda or sdb or whatever it is
05:58you may need to run a similar command like this in case you aren't you run the command ls-al
06:07and then slash dev slash disk slash by id to get the id of the partition in case you got
06:14confused multiple times
06:16and the this one changed for you you don't want to mess with it since it may destroy the data
06:26or image the wrong
06:27partition you run ls-al like this ls-al slash dev slash disk slash by id and you
06:43get in my case this is the one that i need to get in my case this is the one
06:48that i need to get
06:48the command becomes like this sudo dd rescue dash d dash r3 there may be some other different
06:59arguments arguments here and then slash dev slash disk slash by id slash
07:13and we take this one and paste it here space and then here the image where you wanna
07:28copy the whole block device let's say image dot img and then the log which is log dot log
07:45whatever you whatever you whatever you whatever you call it here and the path you specify the path you
07:50can make it in the root directory the same for log or wherever you want you can make it under
07:57home
07:59under your user and here anywhere same it can be user and then image dot img and you run it
08:12and it should work
08:13for you i wouldn't do so since i have decided let me make the command
08:25clearer like this
08:30yes like this
08:33i don't wanna run this command again since
08:36the process is running as you can see and i don't want to interrupt it nor cause any problem to
08:41it
08:42it can be run on any partition and in my case it's with ext4 file system and the hard drive
08:52is the spinning
08:53one not the ssd i may meet you once the image is ready to show you what i got i
09:02may got some of the data
09:03corrupted since the percentage that it reached is 93 percent which is so far so good for a broken hard
09:14drive
09:14like the one i have however there may be some data that will be sacrificed for this process which included
09:26which was an wrong disk to pack up the data depending on the arguments that you chose for your command
09:36the process may take so long like in my case it took so far 21 hours and still not done
09:42yet and if the
09:43remaining time is correct it may take four more days depending on how important the data is you may need
09:51to wait that long in order to get it or to get as much as you can of them back
09:57i kept the tool running for almost four days more than four days actually and it barely
10:08increases by dot one percent maximum dot one percent it barely increases dot
10:16or one percent which means it's time to see what i got hoping that the seven percent roughly seven percent
10:26remaining is the is affecting the empty space of the partition itself because my data do not
10:35fill the empty partition itself we can cancel the process and go back later in case we are not satisfied
10:44despite needing a long time to process the remaining seven or less percent
10:59we may use some other tools like test disk and photo rec i asked the the ai about cancelling this
11:10process
11:11he gave me the command to mount the image without writing to it let's press ctrl c here to cancel
11:19this process it's safe to press it i mean cancel it
11:33yes let's make a directory but before that we check what we have in slash mnt
11:40recovery ls mnt recovery it's empty so let's make another directory we call it slash mnt
11:53slash rescued like this password let me see the command again this is the ai of google here it is
12:05we mount we mount the image running the command sudo mount dash o ro for read only loop
12:18rescued
12:22rescued dot image slash mnt slash rescued like this
12:33okay this is a bad sign we can continue with the process let's see if we wanted to
12:46yes
12:57there is a way to mount using no load you add it as an option let's hope it works
13:05no load comma all right mounted successfully mnt rescued
13:15this sounds successful so far this is
13:20similar to the content of the hard drive the original content
13:25not the hard drive the partition in such case i can copy as much as i can of this data
13:32as long as it is
13:35intact
13:36of course i need to check it before that by comparing it to the original data
13:44like the videos that i know before the pictures if i if i get any of them corrupted i can
13:51simply drop it
13:54i tried with the video that i made about zeal here
13:58that's one of the problems that i'm trying to resolve which is some of my videos were lost
14:05if i try to play it with mpv you can see it is under slash mnt slash rsqd
14:11zl dash linux and it works let's see if we yes if it is corrupted it cannot reach this moment
14:24i guess right
14:26this is good
14:41so
15:06it could be possible
15:06do
15:06you
15:06you
15:11You
Comments