Installing Ubuntu (again) [Solved]

Hello folks,

I’m trying to install Ubuntu 14.04 from a CD onto a laptop. The laptop has a single HDD, partitioned as Vista and Data. The Vista partition is half used, with approx 40gb free, so I want to shrink it and install Ubuntu onto the free half as a dual boot.

Problem is, when I select the install option from a live CD session, I can’t be sure whether I’ll get the option to resize partitions, or whether WUBI will just be installed with Ubuntu inside Vista. I suspect the latter, so I keep abandoning the install.

Should I use Vista to shrink it’s own partition and create some free space before starting the Ubuntu install? Would Ubuntu then default to the free space as a true dual-boot?

Thanks for any thoughts…


It might not be that simple.
Although Windows will report two partitions, there might be more hidden partitions using up the maximum of four primary partitions allowed.
I would go about it carefully. First of get the list of current partitions (boot to the LiveCD):

sudo fdisk -l

(That is a lowercase L by the way)
If this shows less than 4 primary partitions then good to go (otherwise stop and post the results here).
Boot into Windows, disable virtual memory, reboot then delete pagefile.sys if it is still there.
Run defrag to consolidate the file system (parts might be scattered all over the partition)
Once defrag completed, reboot to the LiveCD.
Fire up Gparted and shrink the Windows partition, leaving unpartitioned space.
Reboot to Windows, let it run through its checks, then re-enable the virtual memory.
Once happy that it is all OK with Windows, then re-boot to the LiveCD and install Ubuntu into the unpartitioned space.
We can walk you through this or you could have a go on your own.

If you’re BOOTING from the LiveCD (as opposed to just inserting it whilst running Windows) WUBI will NOT start.

Don’t forget to post the output SeZo asked for … we’ll be much better placed to advise once we have that :wink:

Thanks both,

Looks like I’m ready to go. There seem to be the two expected partitions, plus a Vista recovery partition. Output below.

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimoum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xef3fe0d4

Device Boot Start End Blocks Id System
/dev/sda1 2048 3074047 1536000 27 Hidden NTFS WinRE
/dev/sda2 * 3074048 159141879 78033916 7 HPFS/NTFS/exFAT
/dev/sda3 159155955 312576704 76710375 7 HPFS/NTFS/exFAT

So, can I now boot from the LiveCD and take it from there? Do I still need to run Gparted, or shrink the Vista partition from Windows? How will Ubuntu know where to install?

Personally I’d use Gparted to shrink your partitions first (leaving unpartitioned space for the Ubuntu installation).

Then I’d check Windows still boots, and run a file system check in Windows

then I’d boot to the Ubuntu disk and start the installation … the installer should then offer to use the “free space”.

You could simply allow the Ubuntu installer (ubiquity) to do this for you … it’ll offer to install “alongside windows”, then give you a slider which you can use to set the amount its going to shrink the windows partition by.

I do it manually (then check Windows still works) simply because if a problem occurs, I know when it occurred.

Thanks guys,

I followed Mark’s last suggestions and Ubuntu is now installed, and a lot faster than the Live CD!

However, the wireless connection keeps dropping out with a message that the router is out of range. Doesn’t happen in Vista… I’ll start another thread…

Thanks both of you for your help.

EDIT. The wireless connection drop-outs seem to have gone away, so I haven’t started a new thread on the subject.