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 :)

  • potosi@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    6 months 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).

    • Cris@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      6 months 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@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        6 months 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.

        • Cris@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          6 months 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 ☺️