simeon87
February 6th, 2010, 08:12 PM
The following is a step-by-step guide on dual-booting Windows 7 and Ubuntu 9.10 on a HP dm3-1010ed notebook. I'm just sharing it because it might save others some trouble.
Requirements: (aka, what I've used, yours could be similar)
A desktop computer running Ubuntu 8.04
A 4GB USB stick
HP dm3-1010ed running Windows 7
Overview:
Since the hp dm3-1010ed has no CD/DVD, we need to boot Ubuntu 9.10 from a USB stick and install it from there. The general procedure is as follows: create a bootable USB stick for Ubuntu 9.10, backing up a partition that needs to be deleted, modify partitions in Windows 7, boot Ubuntu 9.10 from the USB stick and install it using the installer in the largest continuous free space (or whatever partitioning schema you like for your install).
Step 1: Create a bootable USB-stick
Download the Ubuntu 9.10 64 bits .iso file from ubuntu.com
Install the program usb-creator using the following command in a terminal (Applications > Accessories > Terminal):
sudo apt-get install usb-creator
If the Ubuntu version you're running doesn't have the program in its repository, like Ubuntu 8.04, you'll need to enable backports in Synaptic first: Start Synaptic (System > Administration > Synaptic, then Settings > Updates and check the one for hardy-backports).
After installing usb-creator, it can be found in System > Administration > Create a USB startup disk
Plug the USB stick and select the .iso file in the top menu.
Create the bootable USB stick; the amount of reserved space doesn't matter because we're not going to use the USB stick for long
Backing up a partition that needs to be deleted:
First, some background knowledge: one can only have 4 primary partitions on a hard-disk and the hp dm3-1010ed already has 4 primary partitions pre-installed. The four partitions are: SYSTEM, OS, RECOVERY and HP_TOOLS. To see this, boot into Windows 7, open the menu and right click Computer, then Manage. Then go to Disk management to view the disk. The first partition is for booting, the second contains Windows 7, the third is for restoring the machine to factory condition when things go awry and the fourth partitions contains some HP specific tools.
There is however a way around this limitation of 4 primary partitions and that is to create an extended partition. An extended partition is also a primary partition but it can contain other partitions as well, called logical partitions. Since we can't create an extended partition right away (since that would require having 5 primary partitions at once), we need to delete a partition first. The easiest way is to let the Ubuntu installer handle it for us. In any case, we do need to remove a primary partition to enable the installer to create the needed partitions for Ubuntu.
The first three don't seem to be a good choice but the HP_TOOLS partition can go. This partition contains tools that HP has installed, depending on the type of computer. On the dm3-1010ed, it only contains a SystemDiags tool which can be used as a visual interface for system diagnostic when you boot. To see it, start the computer, press Esc while booting and select System Diagnostics. The white/blue interface is provided by this tool and when the partition is removed, it'll still work but it'll simply be a black/white text interface. I haven't checked it thoroughly but some tests may not be available afterwards. Searching online for 'HP EFI Guidelines' also gives a document with more information about this partition.
To back it up:
Plug the USB stick with Ubuntu
Reboot the computer and press Esc while booting
Select boot options
Select the USB stick
Let it boot Ubuntu 9.10 from the USB stick
Go to Places > HP_TOOLS to mount it, then Places > Computer > HP_TOOLS to view the contents. In the Hewlett-Packard directory, you should have a directory called SystemDiags. If there are more, you should search online to see what tools you'd 'lose' when removing this partition. Make a copy of the whole partition and store it somewhere. It may also be possible to restore this functionality by recreating the HP_TOOLS FAT32 partition afterwards but I haven't checked that.
Managing partitions in Windows 7:
We now have a backup of the HP_TOOLS partition and we can now make some changes.
Reboot in Windows 7
Start menu > Right-click Computer, Manage
Go to Disk Management
Here's a panel with all the partitions on your hard-disk
We're going to do two things: shrink the OS partition and delete the HP_TOOLS partition.
Right-click the second partition with Windows 7 and use Shrink Volume. This is going to create free space where we can install Ubuntu 9.10 later on. How much space you want for Windows 7 and how much for Ubuntu 9.10 is up to you.
Right-click the HP_TOOLS partition and delete it.
It should now look like this: [ SYSTEM ][ OS ][ unallocated ][ RECOVERY ][ unallocated ]
Reboot to let Windows 7 update its configuration files.
Installing Ubuntu 9.10:
Reboot into Ubuntu 9.10 using the USB stick.
You could move the RECOVERY partition so that it is behind the OS partition but it's probably safer to leave it where it is, unless you really want the unallocated space at the end (only 100 MB here). If you want to move it, use Applications > Accessories > Terminal, then
sudo gparted and move the partition there. If you do, you must restart and boot into Windows 7 to make sure it knows that the partitioning has changed.
You can now use the Install Ubuntu 9.10 option and when asked, install it in the largest continuous free space or specify your own way of partitioning using the advanced option.
Ubuntu 9.10 should now be installed. Just reboot to check that you get the GRUB boot menu which now shows Ubuntu and Windows 7 as bootable operating systems.
Requirements: (aka, what I've used, yours could be similar)
A desktop computer running Ubuntu 8.04
A 4GB USB stick
HP dm3-1010ed running Windows 7
Overview:
Since the hp dm3-1010ed has no CD/DVD, we need to boot Ubuntu 9.10 from a USB stick and install it from there. The general procedure is as follows: create a bootable USB stick for Ubuntu 9.10, backing up a partition that needs to be deleted, modify partitions in Windows 7, boot Ubuntu 9.10 from the USB stick and install it using the installer in the largest continuous free space (or whatever partitioning schema you like for your install).
Step 1: Create a bootable USB-stick
Download the Ubuntu 9.10 64 bits .iso file from ubuntu.com
Install the program usb-creator using the following command in a terminal (Applications > Accessories > Terminal):
sudo apt-get install usb-creator
If the Ubuntu version you're running doesn't have the program in its repository, like Ubuntu 8.04, you'll need to enable backports in Synaptic first: Start Synaptic (System > Administration > Synaptic, then Settings > Updates and check the one for hardy-backports).
After installing usb-creator, it can be found in System > Administration > Create a USB startup disk
Plug the USB stick and select the .iso file in the top menu.
Create the bootable USB stick; the amount of reserved space doesn't matter because we're not going to use the USB stick for long
Backing up a partition that needs to be deleted:
First, some background knowledge: one can only have 4 primary partitions on a hard-disk and the hp dm3-1010ed already has 4 primary partitions pre-installed. The four partitions are: SYSTEM, OS, RECOVERY and HP_TOOLS. To see this, boot into Windows 7, open the menu and right click Computer, then Manage. Then go to Disk management to view the disk. The first partition is for booting, the second contains Windows 7, the third is for restoring the machine to factory condition when things go awry and the fourth partitions contains some HP specific tools.
There is however a way around this limitation of 4 primary partitions and that is to create an extended partition. An extended partition is also a primary partition but it can contain other partitions as well, called logical partitions. Since we can't create an extended partition right away (since that would require having 5 primary partitions at once), we need to delete a partition first. The easiest way is to let the Ubuntu installer handle it for us. In any case, we do need to remove a primary partition to enable the installer to create the needed partitions for Ubuntu.
The first three don't seem to be a good choice but the HP_TOOLS partition can go. This partition contains tools that HP has installed, depending on the type of computer. On the dm3-1010ed, it only contains a SystemDiags tool which can be used as a visual interface for system diagnostic when you boot. To see it, start the computer, press Esc while booting and select System Diagnostics. The white/blue interface is provided by this tool and when the partition is removed, it'll still work but it'll simply be a black/white text interface. I haven't checked it thoroughly but some tests may not be available afterwards. Searching online for 'HP EFI Guidelines' also gives a document with more information about this partition.
To back it up:
Plug the USB stick with Ubuntu
Reboot the computer and press Esc while booting
Select boot options
Select the USB stick
Let it boot Ubuntu 9.10 from the USB stick
Go to Places > HP_TOOLS to mount it, then Places > Computer > HP_TOOLS to view the contents. In the Hewlett-Packard directory, you should have a directory called SystemDiags. If there are more, you should search online to see what tools you'd 'lose' when removing this partition. Make a copy of the whole partition and store it somewhere. It may also be possible to restore this functionality by recreating the HP_TOOLS FAT32 partition afterwards but I haven't checked that.
Managing partitions in Windows 7:
We now have a backup of the HP_TOOLS partition and we can now make some changes.
Reboot in Windows 7
Start menu > Right-click Computer, Manage
Go to Disk Management
Here's a panel with all the partitions on your hard-disk
We're going to do two things: shrink the OS partition and delete the HP_TOOLS partition.
Right-click the second partition with Windows 7 and use Shrink Volume. This is going to create free space where we can install Ubuntu 9.10 later on. How much space you want for Windows 7 and how much for Ubuntu 9.10 is up to you.
Right-click the HP_TOOLS partition and delete it.
It should now look like this: [ SYSTEM ][ OS ][ unallocated ][ RECOVERY ][ unallocated ]
Reboot to let Windows 7 update its configuration files.
Installing Ubuntu 9.10:
Reboot into Ubuntu 9.10 using the USB stick.
You could move the RECOVERY partition so that it is behind the OS partition but it's probably safer to leave it where it is, unless you really want the unallocated space at the end (only 100 MB here). If you want to move it, use Applications > Accessories > Terminal, then
sudo gparted and move the partition there. If you do, you must restart and boot into Windows 7 to make sure it knows that the partitioning has changed.
You can now use the Install Ubuntu 9.10 option and when asked, install it in the largest continuous free space or specify your own way of partitioning using the advanced option.
Ubuntu 9.10 should now be installed. Just reboot to check that you get the GRUB boot menu which now shows Ubuntu and Windows 7 as bootable operating systems.