[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: sad.jpg (18 KB, 501x374)
18 KB
18 KB JPG
Chatgpt just gave me a command that overwrote an external drive of mine. I started it before reading.
I just wanted to test the speed and check if the drive is ok bc there was an error before. I aborted after a few seconds but the drive still doesnt show up anymore.
tried photorec for recovery but it only gives out unreadable trash. Any possibilities I get the files back?
>>
File: 1710398262319504.png (362 KB, 688x530)
362 KB
362 KB PNG
>>1539627
>Chatgpt just gave me a command that overwrote an external drive of mine. I started it before reading.
>>
>>1539629
What command did it give you? Depends
>>
>>1539630
sudo dd if=/dev/sda of=/dev/sde bs=16M status=progress
>>
>>1539634

You overwrote sde with sda, that means you overwrote the partition table, boot sectors and whatever data was there until you stopped. The data itself after that is still there, it's just not normally accessible anymore.
It's like you took a book an ripped out the table of contents, the pages are still there, but the index what is on which page is gone. Except your book as a few milion pages.

dd is like a knife. Very powerful and can fe extremely useful, but you gotta know how to use it. You can either cut an onion or stab your heart.
>>
>>1539637
and is there any way to restore that? I used a backup program but it only gave out gibberish. 180 directories full of mostly text files. And the contents are mostly things I dont need.
Text searching stuff I cant find what Im looking at.
>>
>Chatgpt just gave me a command that overwrote an external drive of mine
You deserved this for using ChatGPT you stupid fucker
>>
>>1539641
seconded
>>
>>1539638

I'd try restoring the table with TestDIsk an then try writing a new boot sector.
But before that I'd copy it over - with dd, ironically - and ONLY work on the copy.

Never try writing restoration operation on the original, always make a 1:1 copy first.
>>
File: Amateur_repairs.jpg (119 KB, 960x720)
119 KB
119 KB JPG
>>1539638
>and is there any way to restore that?

That depends if you took precautions such as:

--- Storing all parts of each file in order --> if free space is contiguous, a file's sectors are written in the order it was received. Thus the pages of your book (that is missing the list of contents) are in order. Otherwise, all the pages are mixed up (out of order) and that means reading all the datablocks for EOF markers is not the singular easy cure.

--- Kept all files contiguous. --> If you frequently defragged to keep both files AND empty space contguous, then chances are better that all pieces of your file are adjacent to each other. You can look for EOF markers and read them out to a different drive as File001.ext, file002.exe, file003.ext, etcetera. I've done that before and then examined each file and renamed them manually based on what I found.

TESTDISK and other partition+file repair tools can help. Of course, you probably asked ChatGPT how to either reverse or recover from that command, right? Did it tell you to use Testdisk or a partition+file repair tool?
>>
>>1539806
no, only photorec even after telling it its useless. Ill try TestDisk next.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.