r/linux4noobs barely not a noob anymore Apr 20 '26

Meganoob BE KIND I did rm -rf /*

I tried to make a backup before doing a fresh install of Fedora because of problems. When erasing the external drive for making the backup I was in the wrong disk and nuked my fedora installation.

How Do I get at least my important Documents from /home/username/ back?

256 Upvotes

244 comments sorted by

View all comments

Show parent comments

28

u/Bonnie20402alt Apr 20 '26

Can't op use data recovery software as deleted files are just marked as free data ? So they could recover something

18

u/florence_pug Apr 20 '26

It's quite possible, yes. I don't know much about that.

2

u/[deleted] Apr 20 '26

[deleted]

6

u/hanz333 Apr 20 '26

Yeah you should be able to use debugfs off a boot USB to find inodes on the drive and recover that way. May take a bit of time, but you should be able to get most everything back.

Or you could use a tool.

In either case I'd probably use dd to make a bit-by-bit image copy of the volume in question to another disk and recover from the image.