Encrypted dual boot install tutorial - Linux Mint and OEM Windows

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024

Комментарии • 34

  • @AvalonNexus
    @AvalonNexus 3 года назад +6

    Thank you for this walk-through! As a first-time Linux user, you made it very approachable to install for dual boot.

  • @awvalenti
    @awvalenti 3 года назад +1

    Many thanks for such a detailed tutorial! Never thought Mint did so much stuff behind the scenes when "Encrypt my whole disk" was selected. For my current situation, just encrypting my /home dir will do.

  • @marshallhyasi6213
    @marshallhyasi6213 3 года назад +1

    Great video, btw guys on the last step when editing the file just do as he does and to save, press ctrl+x to close and then it will ask ykuif you want to save just press Y then enter. Works thx !!

  • @TheImpactus
    @TheImpactus Год назад +1

    The best guide on the web, it's been two years, I hope you are okay mate!

  • @sargentjanthony
    @sargentjanthony 2 года назад +1

    Thank you!!! Worked a treat on mint 20.3 dual booting with an older version of mint.

  • @hiei90
    @hiei90 Год назад +1

    Thank you very much, great guide. I was trying this with Ubuntu 23.04 and had to download the version with the legacy desktop installer because the new one doesn't show lvm partitons.

  • @alvnbn
    @alvnbn 2 года назад +2

    ALERT! /dev/mapper/vgmint-lvroot does not exist. Dropping to a shell!
    That's what i get when trying to boot ububtu after installing

    • @williamguides8284
      @williamguides8284  2 года назад +1

      Did that happen before or after the encryption password was asked during boot? I suspect that before, so something is not right in the encryption configuration, i.e. /etc/crypttab and/or the update-initramfs was not called or with wrong chroot. Can you provide more info?

    • @ucsbhien
      @ucsbhien 10 месяцев назад

      Your /etc/crypttab probably is incorrect. For example, my encrypted volume is /dev/mapper/sda6_crypt, and my /etc/crypttab has this line:
      sda6_crypt UUID= none luks
      Thanks to Williamguides. I used the steps below to install a dual-boot Linux Mint 21.2 Cinnamon and Windows 11 with encryption.
      In Windows, resize your hard drive by using Disk Manager
      Restart and boot from the USB Linux Mint
      Click Install Linux Mint
      Select your language
      Keyboard layout:
      Select your keyboard
      Multimedia codes:
      Select to Install multimedia codecs
      Install Type:
      Select Something else
      Select the free space
      Click + to create a new partition
      500MB
      Type Primary
      Chose ext4
      mount to /boot
      Select the free space
      Click + to create a new partition
      size is default (all available free space)
      Type: Primary
      Use as: physical volume for encryption
      Security key: type in your passphrase for the encrypted volume
      #Note the name of the newly encypted volume
      #Mine is /dev/mapper/sda6_crypt
      open a terminal:
      sudo pvcreate /dev/mapper/sda6_crypt
      #change "mint" to your desirable volume group name
      sudo vgcreate mint /dev/mapper/sda6_crypt
      #2G for swap space is probably enough
      sudo lvcreate -L 2G mint -n swap
      #root partition should be around 15G to 30G
      sudo lvcreate -L 30G mint -n root
      #use all of the availabe space left
      sudo lvcreate -l +100%FREE mint -n home
      sudo blkid
      #copy the UUID of the encrypted volume (TYPE="crypto_LUKS"
      sudo mount /dev/mapper/mint-root /mnt
      sudo mount /dev/mapper/mint-home /mnt/home
      #mount the partition created for /boot above
      sudo mount /dev/sda5 /mnt/boot
      sudo mount --bind /dev /mnt/dev
      sudo chroot /mnt
      mount -t proc proc /proc
      mount -t sysfs sys /sys
      mount devpts devpts /dev/pts
      sudo nano /etc/crypttab
      #add the line below; paste in the UUID of the encrypted volume:
      sda6_crypt UUID= none luks
      #Crtl-X to save
      update-initramfs -k all -c

    • @elejtrox8501
      @elejtrox8501 25 дней назад

      Same happend to me. Initramfs didnt output any text after running the command. What can ne done now?
      Thanks for the video!​@@williamguides8284

    • @elejtrox8501
      @elejtrox8501 25 дней назад

      ​​@@williamguides8284same here. Initramfs didnt output anything into console.
      Thanks for the video!

  • @privateagent
    @privateagent 3 года назад +3

    Terrific tutorial, many thanks !

  • @oni2ink
    @oni2ink 2 года назад +1

    It worked, thanks!

  • @stopkillingkidsdotinfo
    @stopkillingkidsdotinfo Год назад

    Nice video... Wish I'd found this before I reinstalled Mint 20.1 and Win10 so I could encrypt my duelboot with this vid! Question... can I encrypt the Grub 2 way after the original install with this same method, or would it mess up Grub 2 for dual booting ???
    Again than you for your fine video!

    • @williamguides8284
      @williamguides8284  Год назад

      The key is that /boot is a separate unencrypted partition (that is where grub2 lives). To encrypt the rest of the Mint system you are probably better off making a backup and reinstalling/restoring Mint completely. But that's much faster than reinstalling Windows, so you can save that time at least.

  • @intertween
    @intertween Месяц назад

    very good and useful information

  • @moiseslodeiro
    @moiseslodeiro 2 года назад

    Worked like a charm ❤️

  • @yn5061
    @yn5061 Год назад

    Very good! Works - Thank you

  • @dpferguson1
    @dpferguson1 2 года назад

    This is an excellent walk through and worked as shown, is there a way to customize this process for Debian distros with the Calmares installer ? specifically since Calamares does not allow you to select the bootloader device ?

  • @utubepunk
    @utubepunk 2 года назад

    So I wiped the laptop, installed Linux Mint with LVM & encryption, but then I couldn't resize the partition to create a new partition for Windows 10. Hopefully your video will steer me in the right direction.

  • @AndreyZloy
    @AndreyZloy 2 года назад

    awesome! thank you!

  • @watchyoutube7826
    @watchyoutube7826 2 года назад

    Great video

  • @kristianjones8701
    @kristianjones8701 2 года назад

    Super useful

  • @huseyinturkcan1925
    @huseyinturkcan1925 Год назад

    Hello, thanks for the video. Can I follow same steps for Fedora?

    • @williamguides8284
      @williamguides8284  Год назад

      Unfortunately I cannot really say, but I assume the tools are generic enough to give it a shot. But first I would google around LVM, LUKS and grub on Fedora to double-check if the tools work similarly as in the video.

  • @mahadevgouda1949
    @mahadevgouda1949 2 года назад

    Thanks buddy😊

  • @utubepunk
    @utubepunk 2 года назад

    If my laptop has 32 GBs of RAM do I need to create a 32 GB swap file?? I read somewhere swap needs to match the RAM footprint to support hibernation.

    • @williamguides8284
      @williamguides8284  2 года назад

      That is usually the rule of thumb, but less is enough if you do not run anything mission critical. Be warned though, your system or memory hamster program will crash when you run out of RAM+swap space.

  • @luizhp
    @luizhp 3 года назад

    Thanks

  • @matthiascami4002
    @matthiascami4002 2 года назад

    I followed your steps to install dual boot linux ubuntu (but everything worked just the same), but the only problem I have now is when I boot, it indeed asks for a password ("please unlock disk cryptmint" (yes I still choose cryptmin as name)) but as far as I know we chose no password as you type "none"?

    • @yungfabio420
      @yungfabio420 2 года назад

      he did in fact write a password, it's just that linux terminal stays blank when it prompts you to type a password

    • @williamguides8284
      @williamguides8284  2 года назад +1

      Indeed. The "none" means there is no keyfile, so it will ask for a password. Otherwise the encryption would not make much sense. (Alternatively you could carry around your keyfile on a usb stick, etc.)