11

When I just tried to install Ubuntu 12.4 alongside Windows 7 on my new "HP Pavilion 64k desktop with Windows 7" computer, Ubuntu said

this computer has no detected operating system

and someone said

I suggest you chkdsk your Windows partition. I also suggest you resize the NTFS in Windows, then install Ubuntu to the free space.

In response, I did the following:

To shrink a simple or spanned volume using the Windows interface

In Disk Management, right-click the simple or spanned volume you want to shrink.

Click Shrink Volume....

Follow the instructions on your screen.

When I tried to install Ubuntu 12.4 again after doing that, I received the same error. I was going to undo what I did but I see that I lose 1g when I do that, so now what do I do? It says I can do a new simple volume and maybe then the space will no longer be unallocated. Please help me.


I think I have a bad Ubuntu CD, because from my research, I see that I am not supposed to get the "no detected operating system" message. I hope I did not mess up my computer with a bad CD; please advise.


OK, I think I am following what you said about how to edit my question, irrational john.

I did chkdsk as you and actionparsnip (andrew-woodhead666) told me to, and I also did a lot of other things before I found out how to chkdsk. No problems. Thank you. Then I put back the space (extended) I took from system. I still was only able to put back 15 and not 16 so it is up to 99mb not back to 100mb.

Then I shrank HP (C) as you told me, to 10 13,240 mb which is (12.93gb Unallocated). I did not change it into NTSF by doing the (New Simple Volume Action) I just left it.

Then I tried to install from the Ubuntu 12.04 LiveCD AMD64 and it gave me the results it was sometimes giving me before, which is result (THAT Ubuntu) does not tell me whether I have or have not an already-installed Windows 7. It just goes to a window that would have showed me information on what I have and on the bottom

DEVICE FOR BOOT LOADER INSTALLATION      /dev/sda

and the options

BACK, QUIT, or INSTALL

(I think it is the INSTALLATION TYPE window). Therefore I do what I have been doing and I QUIT. What do I do now?


Sorry that it seems like I cannot do anything on my own. On the YouTube video how to install ubuntu dual-boot alongside windows, Ubuntu gets installed so easily. The installation option page gives three options including dual installation and the disk even lets you use a slider to slide to the size of the partition size you want. Yet my Ubuntu LiveCD is a mess. I checked it as one of you guys told me to and got back information that it is good.

Oh, well. This guy says you should press a control key to tell which device you are using to install Ubuntu before the screen comes up... I guess 'cause it is old.

This page also shows you easy stuff that do not show up on my CD: how to dual-boot UBUNTU and windows 7

P.S. I saw this on the Windows 7 "Create a boot partition" website:

To create a boot partition
Warning
Warning

If you are installing different versions of Windows, you must install the earliest version first. If you don't do this, your computer may become inoperable.

Open Computer Management by clicking the Start button Picture of the Start button, clicking Control Panel, clicking System and Security, clicking Administrative Tools, and then double-clicking Computer Management.‌ Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

In the left pane, under Storage, click Disk Management.

Right-click an unallocated region on your hard disk, and then click New Simple Volume.

In the New Simple Volume Wizard, click Next.

Type the size of the volume you want to create in megabytes (MB) or accept the maximum default size, and then click Next.

Accept the default drive letter or choose a different drive letter to identify the volume, and then click Next.

In the Format Partition dialog box, do one of the following:

If you don't want to format the volume right now, click Do not format this volume, and then click Next.

To format the volume with the default settings, click Next.

For more information about formatting, see Formatting disks and drives: frequently asked questions.

Review your choices, and then click Finish.

and I saw the following on yet another page:

Formatting disks and drives: frequently asked questions

Hard disks, the primary storage devices on your computer, need to be formatted before you can use them. When you format a disk, you configure it with a file system so that Windows can store information on the disk. Hard disks in new computers running Windows are already formatted. If you buy an additional hard disk to expand the storage of your computer, you might need to format it.

Storage devices such as USB flash drives and flash memory cards usually come preformatted by the manufacturer, so you probably won't need to format them. CDs and DVDs, on the other hand, use different formats from hard disks and removable storage devices. For information about formatting CDs and DVDs, see Which CD or DVD format should I use?
Warning
Warning

Formatting erases any existing files on a hard disk. If you format a hard disk that has files on it, the files will be deleted.

What I did was: I got to the computer management section, then I clicked on the drive "HP (C)" and it became striped to show it was selected. Then I clicked on ACTION, selected ALL TASKS and then selected SHRINK VOLUME and then chose how much space from what it was giving me that I wanted (12.93gb).

And that was all I did.

Then I tried to instal Ubuntu. I never got to the third screen that is in the video I linked earlier (the YouTube video with the English guy). I also did not get the fourth screen that allows you to select a partition size. What I got was the second INSTALLATION TYPE window shown on the LINUX BS DOS.COM page that I linked, and it showed no information about any drives (no drives/partition or stuff was shown) only the Boot Loader statement and the dev/sda bar and that's why I did not press install but chose to QUIT.


SORRY I JUST NOW SAW YOUR ANSWER IRRATIONAL JOHN. I SHRANK HP(C) BY 12.93GB MY UNALLOCATED SPACE IS NOW 12.93GB HP(C) = 907.17gb NTSF...YOU ARE CORRECT WITH EVERYTHING YOU SAID

This is what I read on http://windows.microsoft.com/en-US/windows7/Create-a-boot-partition:

Create a boot partition

You must be logged on as an administrator to perform these steps.

A boot partition is a partition that contains the files for the Windows operating system. If you want to install a second operating system on your computer (called a dual-boot or multiboot configuration), you need to create another partition on the hard disk, and then install the additional operating system on the new partition. Your hard disk would then have one system partition and two boot partitions. (A system partition is the partition that contains the hardware-related files. These tell the computer where to look to start Windows.)

To create a partition on a basic disk, there must be unallocated disk space on your hard disk. With Disk Management, you can create a maximum of three primary partitions on a hard disk. You can create extended partitions, which include logical drives within them, if you need more partitions on the disk.

[Picture of disk space in Computer Management Unallocated disk space]

If there is no unallocated space, you will either need to create space by shrinking or deleting an existing partition or by using a third-party partitioning tool to repartition your hard disk. For more information, see Can I repartition my hard disk? To create a boot partition
Warning
Warning

If you are installing different versions of Windows, you must install the earliest version first. If you don't do this, your computer may become inoperable.

Open Computer Management by clicking the Start button Picture of the Start button, clicking Control Panel, clicking System and Security, clicking Administrative Tools, and then double-clicking Computer Management.‌ Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

In the left pane, under Storage, click Disk Management.

Right-click an unallocated region on your hard disk, and then click New Simple Volume.

In the New Simple Volume Wizard, click Next.

Type the size of the volume you want to create in megabytes (MB) or accept the maximum default size, and then click Next.

Accept the default drive letter or choose a different drive letter to identify the volume, and then click Next.

In the Format Partition dialog box, do one of the following:

If you don't want to format the volume right now, click Do not format this volume, and then click Next.

To format the volume with the default settings, click Next.

For more information about formatting, see Formatting disks and drives: frequently asked questions.

Review your choices, and then click Finish.


I did what you told me, @irrational john, and this is the "screenshot":

I entered

ubuntu@ubuntu:~$ sudo os-prober

The computer did not respond, so I entered

ubuntu@ubuntu:~$ sudo apt-get -y remove dmraid

to which the computer responded with

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  dmraid
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 141 kB disk space will be freed.
(Reading database ... 147515 files and directories currently installed.)
Removing dmraid ...
update-initramfs is disabled since running on read-only media
Processing triggers for man-db ...

I then entered

ubuntu@ubuntu:~$ sudo os-prober

and the computer responded with

/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda3:Windows Recovery Environment (loader):Windows1:chain
ubuntu@ubuntu:~$

@obsessiveFOSS I don't know what a GRUB menu is, and I do not know what the Ubuntu boot option is.

The answer you gave to me was correct. This one {This apparently removes the dmraid metadata. After doing that, you can use the desktop icon Install Ubuntu 12.04 LTS to start the Ubuntu installer. This time the Installation Type window should contain the option to Install Ubuntu alongside Windows 7.}

This is what I decided to do. I did not see the rest of your help 'til now. Nevertheless....

I think the best thing for me to do now is to get a cheap used laptop and either do a dual installation or just install Ubuntu on to it. This way if I have any issues that I cannot solve like the one I had here, at least I will still have a usable computer to work on and to use to get answers with because I am not an expert like the people on this forum.

Thanks a lot. I will try to keep learning and do research enough to some day help someone else.

10
  • The second install window you see should be Preparing to Install Ubuntu screenshot. The third window should be this Installation Type (or similar to it). It sounds as though you are instead seeing this. Is that correct? If it is, then what happens when you click on Back? May 29, 2012 at 21:03
  • I have to thank you for your diligence and help. I am going to try that soon. I am really tired and I do not want to make mistakes. Thanks
    – jacinta
    May 30, 2012 at 20:21
  • Do you get any sort of GRUB menu when you boot with Ubuntu boot options?
    – nanofarad
    Jun 3, 2012 at 22:55
  • @obsessiveFOSS I don't know what is a Grub menu is and I do not know what is the Ubuntu boot option is
    – jacinta
    Jun 3, 2012 at 23:51
  • 1
    I'm digressing from this question's main subject for an FYI. In case you did not notice it, the 15'th edit of your question contains the added comment [made Community Wiki by jacinta editing at least 10 times]. Rather than try to explain here what the heck happened, I'll point you towards my user profile on meta Stack Overflow. I have added a number of links to other Meta Stack Exchange questions which discuss what a community wiki question is and how and why a question can be automatically converted into a community wiki. cc: @ObsessiveFOSS Jun 4, 2012 at 23:36

4 Answers 4

7

NOTE:
I am trying out a change in the way I add updates to an answer. The most recent updates/edits to this answer are now at the top. Older and potentially less relevant material is further "down" the body of the answer.

Update Responding to os-prober results (June 04)

Jacinta, my understanding is that the utility os-prober is what the Ubuntu installer uses to determine if any other operating systems (i.e. Windows, in your case) is installed on the computer.

What you want os-prober to return is your second result:

/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda3:Windows Recovery Environment (loader):Windows1:chain

The above says that your Windows 7 installation was detected on your computer.

The fact that dmraid can in some cases interfere with the Ubuntu installer detecting the Windows installation on a computer was taken from the answer to this question:
Why doesn't the installer see all of my hard drives?

According to that question all you need to do is boot your install CD, choose Try Ubuntu, and then issue the command below in a terminal window.

sudo dmraid -rE

This apparently removes the dmraid metadata. After doing that, you can use the desktop icon Install Ubuntu 12.04 LTS to start the Ubuntu installer. This time the Installation Type window should contain the option to Install Ubuntu alongside Windows 7.

Note: If for some reason the above does not work, then please try using the command below to remove the dmraid package. I do not think you will need to do this, but I wanted to mention it "just in case".

sudo apt-get -y remove dmraid

Update Responding to BootInfo summary (May 28)

Jacinta, I looked at your first pastebin. The second attempt seems to have more errors. I'm not sure what happened with it, but the first pastebin seems to have been collected with no problems so that is the one I am using.

What I believe you said you want to do is install Ubuntu 12.04 LTS alongside Windows 7 on your HP Pavilion 64k desktop computer. According to your BootInfo summary you have a 1000 GB WDC WD10EADS-65M hard drive which currently contains the 3 Windows NTFS primary partitions shown below.

Partition  Boot  Start Sector    End Sector  # of Sectors   ~Size     Partition Label
/dev/sda1    *          2,048       174,079       172,032   88.1 MB   "SYSTEM"
/dev/sda2             206,848 1,929,785,343 1,929,578,496  988   GB   "HP"
/dev/sda3       1,929,785,344 1,953,122,303    23,336,960   11.9 GB   "FACTORY_IMAGE"

This is my guess as to the function of each of these three partitions.

  • "SYSTEM" is the Windows boot partition. It contains the windows bootloader which will display the Windows boot menu. Windows starts up by first booting this partition and then transfering control to the code in 'sda2', "HP", your Windows 7 partition.

    The "SYSTEM" partition is apparently the one which you attempted to shrink to free up space on your drive to install Ubuntu. However, this partition is too small for this. Shrinking it will not provide enough space to install Ubuntu.
  • "HP" contains your Windows 7 operating system. It uses most of the space on the drive. If you want to free up space to install Ubuntu, this is the partition to shrink.
  • "FACTORY_IMAGE" is your system (Windows) recovery partition.
    Be very careful to avoid damaging this partition!
    This partition contains whatever software HP has provided for restoring your computer's software to the state it was in when HP manufactured it. If you ever need to re-install Windows to this computer, you would use the software in this partition.

What I suggest you try is to shrink your second, "HP", partition by 10 to 40 GB and then try one more time to install Ubuntu.

I agree with the previous recommendation that you should first run chkdsk against your Windows (C:\) partition. (You will need to reboot to do this.)

Then shrink the "HP" partition in Windows by following the steps listed in your question.

  • In Disk Management, right-click the simple or spanned volume you want to shrink.
  • Right-click on the largest partition, which should be labeled "HP", and select Shrink Volume
  • Follow the instructions on your screen.
  • If you are unsure how much room to free up and at this time only want to experiment with Ubuntu, then I suggest you shrink the volume by between 10 to 40 GB (10,240 to 40,960 MB).

After completing the above, try installing Ubuntu again using your "Ubuntu 12.04 LTS amd64" install CD and see what type of an install is recommended. If you are still having problems, you can update your question here to get further suggestions on how to proceed.


Update Requesting BootInfo summary (May 26)

I cannot tell from the information you have provided what is happening on your computer. But if you have unallocated space then you should be able to install Ubuntu into it. We just need to figure out how your computer is currently set up so that we can suggest the proper way to accomplish this.

Could you please look over the steps below to see if it is something you could do? The steps below describe how to install and run a utility called Boot-Repair. You can use this tool to create a Bootinfo summary containing information about how your disk is partitioned.

Note: The steps below assume you have booted your Ubuntu 12.04 install CD (or USB) and selected Try Ubuntu to use a "Live Session". Any software you install during a Live Session will disappear after you reboot your computer. Nothing is installed on your computer's hard drive.


Using "boot-repair" in a Try Ubuntu Live CD Session to provide a BootInfo summary.

  1. Boot your Ubuntu 12.04 LTS desktop install CD and select Try Ubuntu.
  2. When the Ubuntu desktop appears, open a terminal window. (You can use the keyboard shortcut CtrlAlt+T to do this.)
  3. Your Live CD session needs to be connected to the Internet for the remaining steps below to work. If your network is not connected, then try clicking on the connection in the Network Indicator's menu in the upper right-hand of the desktop. (See example below.)

    picture of networking indicator menu
  4. Enter the commands below one at a time into the terminal window. These commands use the system tool apt-get to install the boot-repair tool.
    sudo add-apt-repository ppa:yannubuntu/boot-repair
    sudo apt-get update
    sudo apt-get install -y boot-repair 
    


    Note: If you display this answer in your Live CD session's Firefox browser then you can copy a command into the clipboard and then paste it into the terminal. You can use the keyboard shortcut ShiftCtrl+V to paste into a terminal window.

  5. After the commands above complete, enter the command boot-repair to start the tool.
  6. After a slight delay, boot-repair will prompt you to download the newest version. Since you just installed the latest version, answer No.
  7. If boot-repair asks to install the pastebinit package, respond with Yes.
  8. The tool will now scan your system and (eventually) display the window shown in the example below. Click on the Create a Bootinfo summary box/button. This will collect information about your system's boot configuration, but will not make any changes.


    Initial Boot-Repair Window

  9. When the bootinfo summary has been created, boot-repair will display a message containing a URL which should look like this: http://paste.ubuntu.com/123456/.

    Important: Please update/edit your question and add this URL. The information in the pastebin this link points to will help us to understand what is happening on your computer.

    screenshot of edit link for a question

Original Response (May 25)

If you create a partition in Windows, a New Simple Volume as you refer to it, then Ubuntu will NOT use it. Ubuntu will only attempt to install into space that is considered "unallocated".

If there is insufficient unallocated space on your drive, then the Ubuntu installer will probably suggest trying to modify one of you existing partitions to create space it can install into. Since you have already done this, I think you do not want to do this.

Do NOT let the Ubuntu installer erase your disk to install Ubuntu.
This will permanently delete your Windows installation.

5
  • I shrank the system volume is what i did and not C. Maybe that is why Ubuntu would not go into the unallocated space.(it was not from a boot able drive I guess from all that i read and research in the help on my computer). I was looking at ways to extend the system back to its original size and try ubuntu on an old computer instead but I was afraid to extend the volume because the computer will not extend back to all 16g It only extends to 15G in the unallocated space. It is because only 15g is behind the partition. I chose system cause i was told ubunto only needed 10g and System looked RITE
    – jacinta
    May 26, 2012 at 11:04
  • Thanks a lot for all your help. I ran out of room to write so I had to delete and now add this comment. I have to fix system before I do what you said. I am very thankful for everything and am very sorry to have not known what I did so that you could help me better.
    – jacinta
    May 26, 2012 at 11:08
  • You ran out of room because you are responding in a comment rather than updating your question. To add more information about your question you should edit your question as described in this faq and illustrated in this screenshot. May 26, 2012 at 18:41
  • This could be a good Community Wiki... :-)
    – nanofarad
    Jun 3, 2012 at 22:54
  • @ObsessiveFOSS Here is my attempt to create a canonical answer on how to collect a BootInfo summary using boot-repair. Jun 12, 2012 at 22:14
0

If you made a new partition via windows (or any other means) and then went to install ubuntu onto that clean partition and it some how corrupted. Your windows installation should still be fine.

You could also check the checksum of your ubuntu installation material to see if it's good shape. https://help.ubuntu.com/community/UbuntuHashes

If you are unsure of what/how to do this check out https://help.ubuntu.com/community/HowToMD5SUM

gparted on the ubuntu live cd is a great tool for when your have partition issues too.

5
  • Thanks I guess my question is confusing. WHAT HAPPENED IN THE END WAS, After all that I did above, when I tried to install Ubuntu 12.4 again it gave me the original message (This computer has no detected operating system) THE SCREEN I AM SUPPOSE TO GET IS A SCREEN INCLUDING THE CHOICE of DUAL instillation. I DO not know what to do.
    – jacinta
    May 24, 2012 at 13:24
  • I am not smart enough to follow your suggestion
    – jacinta
    May 24, 2012 at 13:32
  • The MD5 test is for an .iso image. Once it is already burned to a CD/DVD or written to a USB flash drive, you should verify the installation medium (i.e., the CD/DVD or USB flash drive) using the facility built in to Ubuntu (zootlinux.blogspot.com/2010/05/…). This applies to both optical media and flash (or other) installation media, and it applies later versions of Ubuntu (including 12.04 LTS) as well. @dibs You might want to edit your answer to incorporate information about this. May 24, 2012 at 13:49
  • Thank you. I checked the disk and it is good. I think I have to go through the (New Simple Volume ) option on the new un allocated drive that I created. I can run the cd again and see if it sees windows and then put it on that drive if it does let me have dual instillation then or I can delete the drive once I have used the (New Simple Volume) option. Is any of this usable information. Thanks.
    – jacinta
    May 24, 2012 at 16:12
  • I edited your answer to show what I did @irrational john I did not use comments. I don't see it right now. I think it said it has to be reviewed. If i do not see anything in a day or so I will try to do it again. I think I did your suggestion too Eliah Kagan
    – jacinta
    May 28, 2012 at 20:54
0

okay, after several several hours of not being able to get my drive to show up on the installer, i came across this handy code

sudo apt-get -y remove dmraid

VOILA! had brand new options, and was able to unmount/remount my single raid drive, and i am now installing....thank god for these ubuntu forums!

-1

Ubuntu 12.04 installer does not recognize Windows 7 has something worth to try

key seems to be partioning the drive using ubuntu's gparted. after that windows will allow you to install with what you did with gparted and ubuntu will then see that win7 is installed as the partioning was done in ubuntu's terms without win7 messing it up.

Not the answer you're looking for? Browse other questions tagged .