Jump to content

How do i recover data from my /home, its my fault!!!

Go to solution Solved by Joe Jackman,

i know the answer, will update the process soon but its not what i have desired but it seems to be the only way. I may have found a better solution, will make a separate entry to confirm the idea and mark it as solution here and there. Basically would snapshot work- via TIMESHIFT?
Would it ignore the stuff that is not useable and do the ones that can?

   

i drop kicked my pc, and my /home drive has bad sectors (has been flagged to fail soon) now. i rsync it but in a span of 14 hours, it managed to copy 270 gigs  (got 6.7gb/1tbh) and ofc it spends about 20 mins trying to copy 1kb of file. on disks i see like 2002 bad sectors. i don't know what to do. 
Dual boot windows-Linux/deb
got separate drives for both OS- one is a Toshiba(/home) but oddly enough it reported those bad sectors like after 4 days pior to the kick, its old tbh.  the other is a WD blue 3 years of use of the shelf. also very new to Linux but am comfortable with terminal and vim.
also Data recovery does not exist where i live, or the the whole damn country.    

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, jaslion said:

Stop using the driver and send it to a data recovery center.

money. also i dual boot from windows to linux. using my windows now. this part seems fine, or at least it is now showing me errors automatically

. i should check. how do check for that on windows. 

 

Link to comment
Share on other sites

Link to post
Share on other sites

14 minutes ago, Joe Jackman said:

money. also i dual boot from windows to linux. using my windows now. this part seems fine, or at least it is now showing me errors automatically

. i should check. how do check for that on windows. 

 

just checked via gui, no errors found it says.

 

Link to comment
Share on other sites

Link to post
Share on other sites

WHY DID YOU DROP KICK A COMPUTER WITH HARDDRIVES IN IT?!?!?!?!?!?!?!?!

 

 

but yes, send it to a data recovery specialist. 

She/Her

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Ashley xD said:

WHY DID YOU DROP KICK A COMPUTER WITH HARDDRIVES IN IT?!?!?!?!?!?!?!?!

 

 

but yes, send it to a data recovery specialist. 

you wont believe the reason. but i was happy it fixed one problem i had with my pc. created another one :).
also where i am wrong, There is no recovery specialist. i may be among 1k in 220 mil population.

 

Link to comment
Share on other sites

Link to post
Share on other sites

17 minutes ago, Joe Jackman said:

There is no recovery specialist

then you're screwed basically. 

She/Her

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Ashley xD said:

then you're screwed basically. 

well not really, i can fix it but all route points me to above 24 hours of pc run time which is impossible where i live and also i got no time for that. but the good news is i can still save the HDD and reuse it - https://superuser.com/questions/665214/how-to-quickly-format-a-hdd-with-bad-sectors-in-linux/665232  
the reason i want to rsync it, so that my os doesn't freak out and i need to redo all my con-figs and app installs. Basically i wanna do this https://www.distrotube.com/blog/move-your-home-folder-to-second-drive/

i done it before (thats how i moved to my new 1tb HDD(old)) but nvr with bad sectors and its gonna take me above 4 days to basically copy and potentially have a unscratched drive like nothing happened.
these are the bad sectors. and i have on a LIVE cd. so that i don't break any more sectors/blocks. wait you use windows and mac. um did any of these made sense to you?image.thumb.png.ca6693c43db2661f691385c4fd6005fe.png

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, Joe Jackman said:

i drop kicked my pc

wtf, why?

4 hours ago, Joe Jackman said:

it managed to copy 270 gigs  (got 6.7gb/1tbh) and ofc it spends about 20 mins trying to copy 1kb of file. on disks i see like 2002 bad sectors. i don't know what to do. 

stop using it right now and take it to a specialized recovery center.

3 hours ago, Joe Jackman said:

also where i am wrong, There is no recovery specialist.

Ship the drive to one that isn't close to you then... or give up on the data because trying to use it is likely going to break it completely.

1 hour ago, Joe Jackman said:

with bad sectors and its gonna take me above 4 days to basically copy and potentially have a unscratched drive like nothing happened.

The problem is not time. A bad sector doesn't mean it's slow, it means it's damaged and the data can't be read. If you keep trying it's going to keep timing out and report spurious times. Let me repeat: your data cannot be read. Any attempt to copy it elsewhere is just going to result in corrupted and unusable files or a failed operation.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Stop telling the OP to take his drives to a recovery specialist! There is no recovery specialist in his country, he's telling you more then once! And if there was, he hasn't got the money to pay for it.

 

Now, as for the problem at hand, you should indeed stop using the drive. Purchase another drive, same size or larger, and a USB stick as this is required for the next steps.

 

First, visit the Unetbootin website (google it!) and download the application. Start the application (as administrator under Win-OS) and let it find the USB stick you've inserted. Select a Linux distro from the list, Sysrescuecd is a good choice (if not in the list, either select a LiveCD version from the list of download the SysrescueCD image separately) and install it on the USB stick. Install the 2nd harddrive then boot from the USB stick. SysrescueCD comes with an option to boot into a GUI, this makes it easier for you to perform tasks if you're not used to a terminal/cli.

 

Report back when you get this far.

 

(goal is to mirror your defective drive to the new one, then perform recovery on the mirror image instead. Alternatively, the photorec tool may be able to recover directly from the broken drive to the new one)

"You don't need eyes to see, you need vision"

 

(Faithless, 'Reverence' from the 1996 Reverence album)

Link to comment
Share on other sites

Link to post
Share on other sites

10 hours ago, Dutch_Master said:

Stop telling the OP to take his drives to a recovery specialist! There is no recovery specialist in his country, he's telling you more then once! And if there was, he hasn't got the money to pay for it.

 

Now, as for the problem at hand, you should indeed stop using the drive. Purchase another drive, same size or larger, and a USB stick as this is required for the next steps.

 

First, visit the Unetbootin website (google it!) and download the application. Start the application (as administrator under Win-OS) and let it find the USB stick you've inserted. Select a Linux distro from the list, Sysrescuecd is a good choice (if not in the list, either select a LiveCD version from the list of download the SysrescueCD image separately) and install it on the USB stick. Install the 2nd harddrive then boot from the USB stick. SysrescueCD comes with an option to boot into a GUI, this makes it easier for you to perform tasks if you're not used to a terminal/cli.

 

Report back when you get this far.

 

(goal is to mirror your defective drive to the new one, then perform recovery on the mirror image instead. Alternatively, the photorec tool may be able to recover directly from the broken drive to the new one)

i am a linux user xd and ik i shouldn't be using my linux, if its a physical bad sector then i am gonna make it worse if not then a gparted repair should work but i really need to back it up, thats what i am trying to do now. Taking whatever i need via a live CD for the time being. I already managed a HDD of similar size (external). tried rsync but ye the bad sector takes forever and sometimes an hout or 2 just to say "we cant do it, we will try it again".
image.thumb.png.1185feb2adeb9497034dfc2152e2b0f0.pngmy distro already has that. if not i can just sudo install em- or what they want me to do to install it.

Link to comment
Share on other sites

Link to post
Share on other sites

Use the ddrescue tool the distro provides, it's specifically intended for bad drives. See the man pages on how to use it.

man ddrescue

HTH!

"You don't need eyes to see, you need vision"

 

(Faithless, 'Reverence' from the 1996 Reverence album)

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Dutch_Master said:

Use the ddrescue tool the distro provides, it's specifically intended for bad drives. See the man pages on how to use it.


man ddrescue

HTH!

ic, no matter what. i be looking at around a day or two to recover

Link to comment
Share on other sites

Link to post
Share on other sites

Yup. If you have a UPS to bridge power gaps, that would be neat.

"You don't need eyes to see, you need vision"

 

(Faithless, 'Reverence' from the 1996 Reverence album)

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, Dutch_Master said:

Yup. If you have a UPS to bridge power gaps, that would be neat.

right after i commented that, the power went out. not possible then. i am planning to redo, take whatever config i need. (thats what ddrescue does but rsync makes sure that u can just swap ur HDD if u were need to and the OS will still take the new HDD as if its was the original). make my usb persistant and attach my new HDD as its /home. if i need anything along the way i can go to my old hdd and retrieve it. also if my old HDD stay unused, would it go bad?

Link to comment
Share on other sites

Link to post
Share on other sites

i know the answer, will update the process soon but its not what i have desired but it seems to be the only way. I may have found a better solution, will make a separate entry to confirm the idea and mark it as solution here and there. Basically would snapshot work- via TIMESHIFT?
Would it ignore the stuff that is not useable and do the ones that can?

   

Edited by Joe Jackman
update
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×