grub after WEA lab has installed their sandbox Ubuntu | CSIM Technical Notes

Mon Dec 9 18:02:05 ICT 2013

Re-install grub after WEA lab has installed their sandbox Ubuntu

Part of WEA class is installing Ubuntu on the machines in the lab. During the process, the students will install their own version of grub.

To have the machines boot normally, you must re-install a stanard version of grub.

  1. Choose CSIM Ubuntu from grub. The name may vary, the version number will be different, but it should be on /dev/sda3.
  2. Mount the WEA sandbox Ubuntu:
    # mount /dev/sda5 /mnt
    
  3. Open /mnt/boot/grub/grub.conf in a text editor:
    # edit /mnt/boot/grub/grub.conf
    
  4. Locate the first menuentry and copy it to the clipboard.
  5. Open /boot/grub/grub.cfg in a text editor:
    # edit /boot/grub/grub.cfg
    
  6. Locate the entry for Windows.
  7. After the entry for Windows, paste the contents of the clipboard from point 4 above.
  8. In the entry you just pasted, change the label to WEA Ubuntu 13.4 (on /dev/sda5).
  9. Re-install grub:
    # grub-install --nofloppy /dev/sda5
    
  10. Reboot.

Posted by Olivier | Permanent link | File under: administration, ubuntu