I have an HP pavilion g7 with a 500GB HD and 4GB RAM.
My first problem was while I was installing Ubuntu 12.04 for the first time on this laptop. I accidentally deleted Windows 7. So I installed Ubuntu 12.04 on the entire disk.
Then I decided to install Windows 7 again. So I made a partition and installed Windows into that partition. I knew I might lose Ubuntu but did not consider that a problem because I was already thinking of installing Ubuntu again.
The problem is that I can't install Ubuntu into that partition. I tried deleting the partition, but in Windows I can't merge the partition so I can follow the instructions on Ubuntu when it makes a partition for itself. (And I do not want to break the machine again.)
This is how my disk is partitioned.
- 270GB Unallocated
- 100MB System
- 200GB C:/ (Windows 7)
- 20MB (I don't remember)
I want to merge the number 1 with number 3 and then start installing Ubuntu. When I try to install Ubuntu with that partition it will not let me install. The install is not allowed because there are more than 3 primary partitions or something like that. The system will not allow me to create another primary partition.
Any suggestions? I just want to merge the partition C:/ disk with the partition I made so I can install Ubuntu in a new partition created at the moment.
I searched in forums and blogs and they all said that once I delete a partition Windows is able to "expand" the C:/ disk. But in my case, I can't do that. I assume that I can't because I created that partition BEFORE I installed Windows 7 again.
I would appreciate any suggestions. If I could I would delete Windows but I depend on it for my work.
Windows cant see your Ubuntu partition as windows cant read the file format ext4, which is normally used for Ubuntu 12.04..
Two ways to tackle the problem:
Firstly just reinstall Ubuntu 12.04. During the installation process both partitions will be shown and you can decide to reinstall Ubuntu on the ext4 partition.
Secondly you can recover the grub boot manager. This will allow you to access both operating systems without reinstalling them.
How to recover grub after window install
Have fun
The thing is that you have to install Windows first because it wont run if it's not first on the disk. I should just use a live cd and make the whole disk a NTFS partition Install Windows on it and then install Ubuntu (Without deleting Windows). Or just stick with Ubuntu and install the Windows programs you need with wine and playonlinux.
I suspect your problem is that you have a mixture of both primary and logical partitions on your drive. Yes, Windows 7 can extend a simple volume (partition) if free space is available. However, if the free space is in a logical partition it cannot be used to extend a primary partition.
Before you do anything else you should make a backup in case you do lose your data again. you want to be particularly careful if you do not have either
Many computers today store the recovery media in a "special" partition on the hard drive itself. If that is how your laptop works then you want to be especially careful so you do not delete or damage the recovery partition.
According to the manual on HP's web site you can determine if your laptop has recovery media on the drive by doing the following.
Speaking for myself, I would not feel comfortable giving you any advice on how to modify your partitions until you provide a more detailed explanation of how your disk is currently partitioned. Providing a list of partitions and their sizes does not tell us enough about how the partitions are actually defined on your disk.
One way to provide this information is to create a Bootinfo Summary using a tool named the Boot-Repair. You can install and use this tool after booting your Ubuntu Live CD. Here are instructions for doing this.
First, boot your laptop using the Live CD and select the option to Try Ubuntu.
Once the Ubuntu desktop is ready, open a terminal window so you can install and run the Boot-Repair tool and use it to
Create a Bootinfo summary
. Enter the commands below into the terminal to install the tool usingapt-get
.boot-repair
in the terminal window to start the tool.boot-repair
will prompt you to download the newest version. Since you just installed the latest version, answerNo
.boot-repair
asks to install thepastebinit
package, respond withYes
.Create a Bootinfo summary
box/button. This will collect information about your hard drive's partitions, but will not make any changes.boot-repair
will display a message containing a URL which should look like this:http://paste.ubuntu.com/123456/
.REMEMBER THIS URL!
Please update/edit your question and add this URL. The information in the pastebin this link points to will help us understand how your computer is partitioned so we can suggest changes.
Thanks you all for your answers but I fix my problem doing the following.
I was unable to merge disk C:/ with the unallocated area. I think the problem was that the System "partition" or space (the one with 100MB) was in between of the unallocated area and the C:/ disk. So, I merge the unallocated are with the System partition. Once I got that I proceed to shrink the System partition and there was the free space I needed to expand the C:/ disk. I run ubuntu from USB, make the partition again with "install alongside windows 7" and that was all.
Again, thanks a lot for your answers and even maybe there was an easy way to do that, well, I needed to fix my computer and this answer really help me.
PS: Yeah, I shouldn't be answering my own question but I though that maybe this can help someone with the same problem.