0

I have a laptop that has two different SSD disks (both NVME and 1TB). Since the machine is quite good I was thinking in using one disk for work and another for my personal use.

Same hardware, two independent disks, booting from different disks, but effectively with the same Operative system (ubuntu).

  1. How would I do this? I have searched for Dual boot and the hits I get are always related to Windows/Linux which is not what I want.
  2. Would this be a safe practice? My idea is that any vpn access, company data and so on, would not be accessible when I am using the laptop from my personal disk. Ie, even if my own personal disk and data is compromised, the company data wouldn't.
  3. Any other suggestions/warnings that you would have for this situation?

Thanks!

1 Answers1

1

Setup should be like any other OS combination. Install the OS on one disk, then go through the installation again but select the other disk.

Obviously the same OS would be listed twice in the grub menu, see How to safely change OS name in grub boot menu? for how to specify the name for each one. It has several viable solutions, I think this one is best for your setup. Edit /etc/default/grub with this change:

# GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_DISTRIBUTOR=`{ printf Work && lsb_release -d -s ; } 2> /dev/null || echo Debian`

This appends 'Work' to the OS, you can name the other OS 'Personal' too. Then update grub

sudo update-grub

For security, make sure you encrypt the work disk, otherwise you will still be able to easily access it from the personal one if it is compromised.

For potential issues, it's possible grub could get installed on each disk, where grub on the main disk doesn't see the second OS. That would just need grub reconfigured, or switch the default disk.

rtaft
  • 1,920