Resizing HDD Space for Ubuntu? (Wubi)

Asked by Ben

I used Wubi to install Ubuntu 8.04 on. i selected 5GB to just try... Now i want to add more space. how can i resize it without touching any of my Windows Files?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Galen Thurber (godfree2) said :
#1

one option is to download, burn to cd, gparted linux
and resize the partitions.
but!
ubuntu's boot manager grub uses an UUID to identify a partition, this UUID changes when you resize partitions.
search for techniques to edit grub boot manager's /boot/grub/menu.lst
in order to use partition numbers (eg. /dev/sda1) instead of UUID

you can manually change UUID values to their partition number inside
/boot/grub/menu.lst

#sudo gedit /boot/grub/menu.lst

and if you see line like this

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=4162e8f4-aa16-401e-b674-xxxxx ro splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet

the line
root (hd0,1)
indicates my linux is on partition 2
so I'd need to change
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=4162e8f4-aa16-401e-b674-xxxxx ro splash
to
kernel /boot/vmlinuz-2.6.24-19-generic root=/dev/sda2 ro splash vga=792

Revision history for this message
Galen Thurber (godfree2) said :
#2

one option is to download, burn to cd, gparted linux
and resize the partitions.
but!
ubuntu's boot manager grub uses an UUID to identify a partition, this UUID changes when you resize partitions.
search for techniques to edit grub boot manager's /boot/grub/menu.lst
in order to use partition numbers (eg. /dev/sda1) instead of UUID

you can manually change UUID values to their partition number inside
/boot/grub/menu.lst

#sudo gedit /boot/grub/menu.lst

and if you see line like this

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=4162e8f4-aa16-401e-b674-xxxxx ro splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet

the line
root (hd0,1)
indicates my linux is on partition 2
so I'd need to change
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=4162e8f4-aa16-401e-b674-xxxxx ro splash
to
kernel /boot/vmlinuz-2.6.24-19-generic root=/dev/sda2 ro splash vga=792

Can you help with this problem?

Provide an answer of your own, or ask Ben for more information if necessary.

To post a message you must log in.