I actually did the same just yesterday on my brother's laptop (clevo machine with a 300GB HDD):
- I first installed Windows 7 on an NTFS partition with 170GB of space.
I also created a second NTFS partition as a backup with 100GB of
space, leaving 30GB totally unconfigured/unpartitioned for Ubuntu (170GB C:\, 100GB
D:\, 30GB # future Ubuntu partition #)
- I booted up from the Ubuntu CD and when the installation proceeded to the
partitioning/drive space allocation options, i was presented with the following screen:
- I just selected the first option
Install Ubuntu alongside Windows 7
.
When the setup completed, i just rebooted and everything was ok.
Grub installed, dual boot working just fine ;-)
If you want to change the default O/S when booting, you can do one of the following:
The "hard" way:
From a shell, type:
cat /boot/grub/grub.cfg | grep menuentry
You will get a list of all the entries in your grub menu.
Count them starting by zero (0), e.g.
menuentry 'Ubuntu, with Linux 2.6.38-10-generic' .... <-- #0
menuentry 'Ubuntu, with Linux 2.6.38-10-generic (recovery mode)' .... <-- #1
menuentry 'Windows 7' .... <-- #2
Then, edit /etc/default/grub
and change the entry GRUB_DEFAULT=X
to the number you want (like #2 above for Windows).
Save the file and do a sudo update-grub
in order to update grub.cfg
.
You're all set.
The "easy" way:
Install StartUpManager
by typing:
sudo apt-get install startupmanager
This application provides a GUI in order to make all the changes you need.
More information can be found here
The message indicates that your are running low of memory.
The current need is only satisfied with enabled swap space.
Most likely is that you loaded the LiveUSB content into ram at boot time.
Check the boot menu and deselect this option.
Some further remarks
As I see in your question, the swap space is not inside the partition you want to resize. So with a little bit luck you haven't the need to disable the swap space. Give it a try.
Generally I would consider to use LVM instead of bare partitions.
The "space management" is a lot easier and you can do it online without LiveUSB :-)
You can increase a partition if you have enough free space allocated for the LVM volume group.
If you run low of space in a volume group you can simply add a new physical volume to the volume group. So you work around the problem that you have to repartition your disk.
Best Answer
If you are new to Ubuntu - don't bother. Just leave some unallocated, unpartitioned space to the Ubuntu, and installer will ask what you want to achieve:
Advanced partitioning is an option only if you know what you're doing. For example, having or not having
swap
partition, isolatinghome
partition, can give some benefits, but for Linux newbies this is totally useless :)