daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest May 20th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # /dev/sdb is the the usb device with the ubuntu installation. Encryped and lvm
  2. udiskctl unlock -b /dev/sdb3 # To decrypt
  3. mount /dev/mapper/ubuntu--vg-root /mnt
  4. for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
  5. mount /dev/sdb2 /mnt/boot     # sdb2 is the boot partition
  6. mount /dev/sdb1 /mnt/boot/efi # sdb1 is the "EFI System"
  7. chroot /mnt
  8. grub-install --removable /dev/sdb
  9. update-grub
RAW Paste Data
Top