Skip to content

Instantly share code, notes, and snippets.

@psftw
Created July 6, 2015 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psftw/762d30f3b9ff570684e3 to your computer and use it in GitHub Desktop.
Save psftw/762d30f3b9ff570684e3 to your computer and use it in GitHub Desktop.
Upgrading computer fun....

Original system had both Windows7 and Gentoo Linux (on separate hard drives). Windows booted the first time on the new system and I only needed to install a few device drivers from the manufacturer. Linux was a trip and went something like:

  1. attempt to boot Gentoo on the new system without any changes - kernel panic and couldn't find anything useful in Google
  2. boot non-UEFI Gentoo USB and chroot in to recompile kernel w/ the new device drivers (I needed to do it anyway)
  3. boot to non-UEFI Arch install on a separate disk - similar kernel panic
  4. verify hardware is good (played 3D games in Windows, memtest, inspect dmesg, ran other diagnostics)
  5. read about BIOS emulation on X99 being a problem for Linux, so decided to switch to UEFI boot (and I didn't have any other great ideas to pursue)
  6. since original install was one big partition on the disk -- split this into a 2M boot partition (for grub2), 128M UEFI boot partition (for my mobo), and the rest -- involved dd'ing the partition to a file, shrinking the internal ext4 filesystem, shrinking the partition-as-file, dd'ing back to the new smaller partition and finally expanding the filesystem to fill the new space.
  7. multiple failed attempts to get the motherboard to "see" the UEFI boot partition (I must have done something wrong??)
  8. motherboard options are either "legacy BIOS", or "Try UEFI first, then legacy BIOS", but there was new behavior (blank screen) so I figured was on the right track and it was using UEFI, but I had no way of knowing for sure.
  9. remember that secureboot is a thing, so disable it to get one step further into a new kernel panic -- now we are making progress!
  10. work through a couple of issues with the new kernel panic and other SSD incompatibilities (Samsung 800 series on Linux w/ NCQ is broken atm)
  11. move on with life!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment