0

Currently I have a laptop running Ubuntu 14.04 with a 256GB hard drive. I'm required to use a few Adobe programs so I fired up a VM (vmware workstation) and installed a Win7 in it. Unfortunately the performance is not as good, as it should be. I'm not sure if it's driver related or what ever. Anyway the easiest way for me would be to install Win7 back on the laptops hard disk (I anyway wanted to try Win10 ;)). Still I prefer Linux for development (and I'm required to use it for some stuff too). So much for the background.

I came up with a few solutions to install Win7 as main OS but be still able to use Ubuntu.

  1. Dual Boot: not really an option since 256GB for 2 OS (I'd like to sync my Dropbox with both, that would take like 90GB per OS...) -> not an option
  2. VM Host Win7, Guest Ubuntu: Should work but same issue as with Dual Boot.
  3. Moving Ubuntu to a USB3 stick or external SSD. I'm thinking about a HyperX Savage SSD with the usb3 casing.

Will I be able to boot Ubuntu from the external drive if I just copy the disk with CloneZilla? or are there better ways to copy the OS and all it's files? I'm guessing, that the MBR/Bootloader will be copied too, what happens if I wipe the internal disk and install Win7 on it, do I just have to choose which OS to boot in BIOS (selecting the boot device USB or internal)? Or will this cause problems? Will I be able to boot my Ubuntu machine at any Computer with this set up or will it only work with my laptop (because of the hardware/drivers)?

One last thing, the disk is encrypted with the LUKS stuff, I selected full disk encryption during installation. In my opinion, CloneZilla should just clone every thing including the encryption. Am I wrong about this?

wawa
  • 209
  • You know that when you dual boot, Ubuntu can access your Windows files? So you only need 10-20 gb for Ubuntu and just keep your data in the Windows partition instead of duplicating it. – psusi Nov 18 '15 at 23:50
  • True, but on the other hand I'd have to specify how much disk space witch OS will get. Let's say 200gb for win, since the installation till take up about 60gb, Dropbox 90gb, leaving roughly 50gb for programs on win and 50gb for Ubuntu. And I'll have to wipe the disk first and can't just continue using my Ubuntu system with all it's programs and settings. – wawa Nov 18 '15 at 23:56
  • You can use gparted to shrink your existing Ubuntu partition. You might need to delete your data files and restore them to the Windows partition after installing it to the free space. – psusi Nov 18 '15 at 23:58
  • Can I used gparted on an encrypted partition (LUKS)? I thought that would only work on not encrypted partitions... – wawa Nov 19 '15 at 00:00
  • Ahh, possibly not. In that case you might find this question helpful to reinstall all of the same programs after reinstalling Ubuntu in a smaller partition after reinstalling Windows: http://askubuntu.com/q/9135/8500 – psusi Nov 19 '15 at 00:06
  • Nice solution (: what is about product keys (for example vmware) and ssh keys? I think ssh stuff should be in ~/.ssh/... but what about product keys? Also what's about configuration for the programs? (sure I can just export all the settings of each program). Is there like a central storage for such stuff in Linux? – wawa Nov 19 '15 at 00:15
  • Proper unix/linux programs store their settings in files in /etc for system wide ones, and your home directory for user ones. Backing up and restoring the files in these should cover that. – psusi Nov 19 '15 at 00:19
  • But I shouldn't just backup the whole /etc folder right? what about "cherry picking" some stuff (like firefox, NetworkManager, etc.). Is that a good way or would you advise me not to copy and restore those folders? – wawa Nov 19 '15 at 00:24
  • There's nothing wrong with backing up and restoring the whole thing. There is nothing that can go wrong doing this, assuming you are reinstalling the same applications, and the same version. If you don't restore all applications, then you can just end up with extra config files you don't need. – psusi Nov 19 '15 at 02:08

1 Answers1

1

I recommend you backup the list of installed applications, backup your config files in /etc, and your home directory, the just reinstall ( Windows first ). You only need 10-20 gb of space for Ubuntu, and you can keep your data files only on the Windows partition; there is no need to upload them to dropbox and download to the other OS too. Then restore your installed applications, config files, and home directory.

psusi
  • 37,551