--- layout: post status: publish published: true title: Tech things I have learned in the last 12 hours wordpress_id: 2567 wordpress_url: https://www.martineve.com/?p=2567 date: !binary |- MjAxMi0xMi0zMCAxNDoxMDo1MiArMDEwMA== date_gmt: !binary |- MjAxMi0xMi0zMCAxNDoxMDo1MiArMDEwMA== categories: - Technology tags: - Linux - windows comments: [] ---
  1. It is not worth trying to restore a Windows partition using dd unless you restore it to *exactly* the same offset on the new drive. Even then it might not work. No amount of dicking around with bootrec fixmbr rebuildbcd etc. will solve this.
  2. A fresh Windows install that complains that it is missing the "cd/dvd driver" actually means that there's a problem reading the DVD you've booted from. Do this by USB instead.
  3. There's a cool piece of software called WinUSB that will create a Windows installation USB stick for you from inside Linux. You need to download the install media for this, but they're easy to find (and legally distributed).
  4. Windows' partitioner isn't as aggressive as I'd feared, but it will overwrite grub and you need to go back in and use the chroot method to reinstall it.
  5. Bumblebee is great, but hardly works "out of the box"
  6. The "discard" flag has to be added to both fstab and crypttab to enable TRIM on a luks device.