submitted 2 weeks ago by [email protected] to c/linux4noobs

Hello, I broke my laptop about a week ago and could use a hand figuring out the best approach for recovering the files when my new laptop arrives

The laptop was running fedora and would have used whatever encryption option is default in the fedora installer (The laptop required a password before it'd fininish booting so I'm pretty confident it was encrypted), which I believe would be LUKS?

If I understand correctly the ssd is a socketed sata drive, so I figured I'd buy a sata drive enclosure when I get my new laptop that'd let me plug it in via USB

I have the password I needed to boot when the device was working, if I get a sata enclosure can I access the files?

Any input, guidance, thoughts or suggestions are appreciated :)

all 10 comments
sorted by: hot top controversial new old
[-] [email protected] 7 points 2 weeks ago* (last edited 2 weeks ago)

# cryptsetup luksOpen /dev/sdX mydisk

(You will be prompted for password)

# mount /dev/mapper/mydisk /mnt

Then files will be accessible under /mnt. Typically a GUI might do this for you, see gnome-disks, maybe nautilus too. There is no reason why you couldn't access the files really, everything should work normally, given you put in the password correctly and you have the correct drivers (only have to worry about that if you compile your own custom kernel).

[-] [email protected] 4 points 2 weeks ago

Thank you so much! I'll investe this avenue of recovery once I have the enclosure and new laptop!

I'd you don't mind, what do you mean by correct drivers? Do I need to worry about using the same distro or a device with hardware related to the old one?

[-] sudo 4 points 2 weeks ago

Do I need to worry about using the same distro or a device with hardware related to the old one?

No. Only if you were doing something very weird on the old laptop or on the new laptop. In which case I'd assume you'd know what you were doing and wouldn't be asking us.

[-] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago)

Thank you, I really appreciate your input!

I'd offer you like a cookie or a smooch on the cheek or something, but the internet has not mechanism for that, so just know you have my appreciation

Hope you have a great day ☺️

[-] [email protected] 3 points 2 weeks ago* (last edited 2 weeks ago)

You can install ssd/hdd from your current laptop to another pc and launch your os, enter password, and just copy files out of it, just remember to boot from it, enter boot priority in bios

[-] [email protected] 3 points 2 weeks ago* (last edited 2 weeks ago)

Unfortunately the new laptop will use and nvme m.2 drive where the old one I believe uses a regular old sata ssd, so I don't think I can install it. Perhaps there's a way I can do this with a old piece of junk hardware I have laying around if the enclosure and crypt setup avenue doesnt pan out

Thank you for your suggestion!

[-] [email protected] 3 points 2 weeks ago* (last edited 2 weeks ago)

Then you can also boot from live usb and "dd" whole drive from enclosure to new nvme drive, good luck in restoring your data brother

[-] [email protected] 3 points 2 weeks ago

Ahhh, I hadn't considered that, thanks, I'll keep that in mind too!

Thank you, I really appreciate the advice and guidance :)

[-] [email protected] 2 points 2 weeks ago

Good luck in your progress)

this post was submitted on 29 May 2024
7 points (100.0% liked)


1094 readers
1 users here now


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.

Seeking Support?

Community Rules

founded 10 months ago