You probably deleted your recovery partition during the Ubuntu installation. This can happen if you choose the "Use entire disk" option when installing. The Windows 8 recovery CD's may restore these partitions if they are branded with the OEM manufacturer of your computer (Lenovo).
Unfortunately, using these restore disks will completely re-partition the disk, destroying all data that is currently on it. Therefore, if you want to dual boot you will have to make a backup of some things in Ubuntu before proceeding.
This can be done by repartitioning an external drive, for example, with an EXT4 partition using gparted-pkexec
. EXT4 is needed in order to preserve file permissions and ownership. Copying the necessary files to an NTFS or FAT32 partition made with Windows or shipped by default on most externals will not work.
NOTE: /media/[username]/[external partition UUID or label] needs some replacements. After you create a new EXT4 partition on an external drive, it will be assigned a random UUID (or label if you chose to label it in gparted-pkexec
). Once you plug in the drive it will be mounted to a place like /media/tony/1961fe96-3398-4094-94af-6445c4a8b9fc.
You will need to back up your home folder(s) in order to migrate your settings to a new Ubuntu installation after reinstalling Windows.
sudo rsync -av /home/ /media/[username]/[external partition UUID or label]/
Additionally, you'll probably want to make a list of installed packages as well so you can restore them later
echo -e '#!/bin/bash\n\nsudo apt-get install ' $(comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u) | awk '{printf("%s ",$0)}') > /media/[username]/[external partition UUID or label]/packages.sh;chmod +x /media/[username]/[external partition UUID or label]/packages.sh
Also, if you've many any changes to configuration files in /etc, you may want to back those up as well.
Finally, you can install Windows 8 using the recovery CD's.
After using the recovery disks to re-install Windows 8, the first thing you should do before installing any software is go to the Disk Management tool in the Control Panel->System and Security->Administrative Tools->Computer Management and then click Disk Management. Find your C: drive and resize it as small as it will go, but leave as much space at the end as you need for other applications. The remaining space will be used for Ubuntu.
After this process, reboot the computer with the Ubuntu USB inserted.
When Ubuntu asks, tell it you want to install it alongside Windows 8.
Wait for the installation to finish and reboot into Ubuntu
In Ubuntu, open a terminal and run
sudo rsync -a /media/[username]/[external partition UUID or label]/home/ /home/
Copy over the /etc config files if applicable
Restore your old packages with this command (be patient, they'll have to be re-downloaded):
sudo ./media/[username]/[external partition UUID or label]/packages.sh
Now, your Ubuntu should be back as it was and it is installed alongside Windows 8!