I accidentaly deleted my external HDD is there any easy way to recover the files?
I am running Arch Linux and I want the best way to recover them.
thanks anon
Good job you backed up your files to the cloud senpai!
Ask the NSA they probably have a copy of all your data
>>51314143
What do you mean you "deleted" your external HDD
It's pretty easy, actually. Type lsblk into a terminal and find the name of your drive; it should start with "/dev/sd", so just identify which one by your HDD size. Take that name and type the following commands (replace "/dev/sda" with yours):sudo umount /dev/sda
sudo dd if=/dev/zero of=/dev/sda
Wait maybe a couple hours and when it's done, any lost files should be back where they used to be. There might be a few things out of place, but that's to be expected with hard drive recovery.
>>51314414
I deleted the partition
>>51314425
>sudo dd if=/dev/zero of=/dev/sda
Isn't that the delete command?
>>51314461
It tells dd (Defragment Drive) to look for missing pieces on the drive (zeroes) and restore them.
>>51314489
>Defragment Drive)
Why? What's the reason for misleading informations?
>>51314433
I did that at some point in the past, I can assure you my heart was beating fast. Luckily it was just the partition table : the data at the beginning of the disk that says "partition 1 starts here, partition 2 starts there". parted has a recover command that can find partition content without a partition table entry. dopacman -S partedand then look for instructions.
>Deleted a hard drive
>Deleted
How
>>51314489
ABSOLUTE BULLSHIT DO NOT RUN CMD
>>51314433
Incase you didn't do anything else than delete the partition from the partition table you can just add the partition with the same size and type again and all your files will still be there.
>>51314569
Ikr what afgt
>>51314545
Also how exactly did you 'delete' it? If it was through gparted or something, recovery of lost partitions is probably just a few clicks away
>>51314580
>an delete the partitio
how do i use it? does it have some kind of graphical interafec
>>51314600
I deleted it while Arch Linux process (partioning) picked the wrong one.. but yea..
>>51314619
Can't you google for "how to restore deleted partition with linux"?
>>51314619
Installing you were? parted normally in the iso is. parted command and see issue
testdisk, why it's so hard to read?
>>51314915
this.
>>51314378
Kek underrated post
>>51314143
>deleted my external hdd
That made me kek harder than it should have desu
>>51314143
Not sure what you mean by deleted by try photorec, should be in the repos
that's what you get for using arch Linux. hope you don't get shit back
>>51316241
What's shit on Arch?
>>51314489
Top kek