LM17 Deleted folder on USB

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sswcharlie
Level 3
Level 3
Posts: 156
Joined: Thu Jun 05, 2014 2:19 am

LM17 Deleted folder on USB

Post by sswcharlie »

Hi

Have deleted accidentally (slow brain!) a couple of folders with files that were on a USB. Dont shown the laptop 'trash' .Is there anywhere that they may have been held on the laptop? Terminal command to locate ?

Thanks

Charles Harris
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
SimonPeter
Level 5
Level 5
Posts: 579
Joined: Tue Jul 13, 2021 5:13 am

Re: LM17 Deleted folder on USB

Post by SimonPeter »

sswcharlie wrote: Sat Dec 04, 2021 2:16 am Hi

Have deleted accidentally (slow brain!) a couple of folders with files that were on a USB. Dont shown the laptop 'trash' .Is there anywhere that they may have been held on the laptop? Terminal command to locate ?

Thanks

Charles Harris
1) Plug that USB in, then look at the Trash.
2) If it isn't there in Trash, DO NOT DO ANYTHING WITH THAT USB -- leaving it undisturbed (never writing data into it) increases the chances of data recovery.
3) Unmount all partitions (DONT eject) on that USB, the clone it into a disk image (Create Disk Image using Disks or sudo dd if=/dev/sdX of=/path/to/img/file bs=4M status=progress && sync).

Use tools like photorec to try to recover the data (use this on a copy of the disk image).
Locked

Return to “Beginner Questions”