CT320

CT320: Network and System Administration                

Fall 2015                

Windows Installation                

CT320: Windows Installation and Grub Repair                

Purpose                

  1. Learn to install Windows.
  2. Learn that order is important.

Steps                

  1. Power up the system and press F9 to load the boot menu.
  2. Select CD drive from the menu after inserting your Windows 7 Installation Disk. If the CD drive does not show up, restart the system and try again.
  3. Select English as the language, Mountain Time as the time zone and US as the keyboard.
  4. Select "Custom (advanced)" in the installation wizard and proceed.
  5. Select the 80GB FAT32 partition that you will be installing Windows 7 to. If it’s not already NTFS, delete it and create an NTFS partition in its place. Let the installation proceed.
  6. After the installation completes:
    • select "ct320-X" as the system name where X is the system number
    • select ct320 as your username and password
    • select "Use recommended settings" for updates.
    • reboot your system
      • Observe that we cannot boot to Linux
      • We will need to fix Grub in order to be able to boot to Linux again.
  7. Boot from the live disk in "Try Ubuntu" mode.
  8. Use <Ctrl>+<Alt>+t to launch the terminal.
  9. Determine the partition number of your Linux partition. It should be dev/sdaX where X is your partition number.
    • One way to do it is to do sudo fdisk -l (where l is lowercase L) and then figure out which one of the entries reads "Linux filesystem".
  10. Mount your linux partition at /mnt:
    If you did "sudo fdisk -l" and one of the entries was "/dev/sda2 981409792 1913286655 931876864 444.4G Linux filesystem", your partition number is 2. Assuming that your partition number is 2, mount it at /mnt: sudo mount /dev/sda2 /mnt
  11. Bind mount some other necessary stuff:
    for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
  12. chroot into your Xubuntu installation directory (/mnt):
    sudo chroot /mnt
  13. At this point, you are now in your installation directory as root. Update grub:
    update-grub
  14. If you get any error(s) at step 13, do the following:
    grub-install /dev/sda update-grub
  15. If everything worked out, grub should be repaired now. Exit the installation directory and reboot:
    exit
    reboot
  16. When your system reboots, grub will be launched and you should be able to boot to either Windows or Xubuntu.
  17. If you still cannot boot Xubuntu and if you didn't get any errors at step 13, you will need to reinstall grub using step 14. Perform step 15 when done.

Desperation                

If all else fails, reinstall Xubuntu into the same partition where it was before. That will fix Grub, for sure.                 

Points                

Show your work to the TA.                 

Modified: 2015-09-27T19:00                 

User: Guest                 

Check: HTML CSS
Edit History Source
Apply to CSU | Contact CSU | Disclaimer | Equal Opportunity
Colorado State University, Fort Collins, CO 80523 USA
© 2015 Colorado State University
CS Building