{
  "$type": "site.standard.document",
  "canonicalUrl": "https://rickymoorhouse.uk/blog/2014/recovering-encrypted-filesystems",
  "path": "/blog/2014/recovering-encrypted-filesystems",
  "publishedAt": "2014-02-25T10:25:55.000Z",
  "site": "at://did:plc:r53zv4vpzeihop3aliwyejlu/site.standard.publication/3mos5q3a7jf2w",
  "tags": [
    "tech"
  ],
  "textContent": "1. Boot from Live CD / USB\n\n\t\n  2. Decrypt the filesystem\n\n    \n    <code class=\"markdown\">cryptsetup luksOpen /dev/sda5 <span class=\"emphasis\">hostname</span>\n    </code>\n\n\t\n  3. Mount filesystems\n\n    \n    <code class=\"sql\">mount /dev/dm-2 /mnt\n    mount /dev/dm-3 /mnt/home\n    mount /dev/sda1 /mnt/boot\n    mount <span class=\"comment\">--bind /dev /mnt/dev</span>\n    mount <span class=\"comment\">--bind /sys /mnt/sys</span>\n    mount <span class=\"comment\">--bind /proc /mnt/proc</span>\n    </code>\n\n\t\n  4. Enter chroot\nchroot /mnt\n\n/etc/crypttab should have: sda5_crypt UUID=sda5_uuid",
  "title": "Recovering encrypted filesystems"
}