Wednesday, 23 November 2011

Step 1: Open up a terminal.

Really this is going to be your base of operations.

Step 2: Open up GParted.

In your terminal, type in "sudo gparted &" (no quotes)

Step 3: Create 3 primary partitions: EXT2 formatted at left of drive (1 GB in size), a 200 MB UNFORMATTED partition in slot 2, and an UNFORMATTED partition in slot 3 (any size you want, just leave some [min 10 GB] space for linux).

Right click unformatted space, I think the rest is self explanitory.

Step 4: Create an extended partition to take up the remaining space.

Same procedure as above, but select extended as opposed to primary.

Step 5: Inside the extended partition, create 2 logical partitions: a 4 GB linux-swap formatted partition at right, and the rest an EXT4 formatted partition (label it LINUX or something like that)

Similar procedure as above.

Step 6: Apply the changes.

Click the checkmark. This may take a while.

Step 7: Turn swap on.

In the list of partitions, right click the swap space and click swap on (or whatever it says).

Step 8: Install virtualbox and virtualbox-fuse

In the terminal, type in "sudo apt-get update && sudo apt-get install virtualbox virtualbox-fuse".

Step 9: Make a new virtual machine

When it asks to make a virtual hard drive, select dynamic VDI, in the size menu click the folder icon next to name and select LINUX on the left and create it in there.

Step 10: Attach your ISO file for windows 7 to the virtual machine

In the main interface, hit settings, then storage, click the thing attached to the IDE drive, and select your ISO.

Step 11: Start the virtual machine and install windows 7 inside of it.

Wait for it to stop rebooting before you power off the machine.

Step 12: Mount virtual machine's VDI file to /mnt

run "sudo vdfuse -p -f [VDIFILE] /mnt"

Step 13: Copy Partition1 to the smaller of the two UNFORMATTED partitions.

run "sudo dd if=/mnt/Partition1 of=/dev/sda2" (assuming /dev/sda2 is the small one).

Step 14: Copy Partition2 to the larger of the two UNFORMATTED partitions.

run "sudo dd if=/mnt/Partition2 of=/dev/sda3" (assuming /dev/sda3 is the big one [thats NOT what she said]). THIS WILL TAKE A WHILE.

Step 15: Resize the NTFS filesystems.

run "sudo ntfsresize --force /dev/sda2 && sudo ntfsresize --force /dev/sda3" (replace /dev/sda2 & /dev/sda3 if they're different)

Step 16: Install ubuntu

When it asks you for formatting, do manual. The ext2 partition at the front, use it as an EXT2 filesystem as "/boot". The ext4 partition in the extended partition, use as EXT4 as "/".

Step 17: Reboot :D


Post a Comment