PDA

View Full Version : [ubuntu] I can't make partitions.



dsman
March 6th, 2012, 07:30 PM
Hey guys,I have problem with ubuntu installation.
I want to make dual-boot install,but when I start with installation and I reach the step with partitions there are no partitions,just clear...
Please help! =(

Youtube video:http://www.youtube.com/watch?v=BFCqUaTD6rg

sikander3786
March 6th, 2012, 08:04 PM
Hi and welcome to the forums! :)

Please press the <super> (Windows logo key) and search for 'Terminal' and open it. Now run this command:


sudo fdisk -l

Please copy&paste the outputs here so we can have a look.

The problem most probably is being caused because your HDD is formatted "Dynamic disk" in Windows which is a Microsoft proprietary thing and doesn't work with Linux. However, there are some workarounds which we can offer once we see those outputs.

darkod
March 6th, 2012, 08:12 PM
It might be that the disk was used in raid before and has meta data remains. Ubuntu can see this and doesn't show the partitions list.

If you ARE NOT running raid right now, you can boot with the ubuntu cd in live mode and in terminal do:
sudo dmraid -E -r /dev/sda

Confirm to remove the meta data. It should work after that.

dsman
March 9th, 2012, 05:25 PM
Here are my outputs from "sudo fdisk -l"

darkod
March 9th, 2012, 06:58 PM
Did you try the dmraid command mentioned in post #3?

dsman
March 9th, 2012, 08:14 PM
Darko what will happen if i delete my meta that?
Is meta data important?

darkod
March 9th, 2012, 08:24 PM
It is only important if you are running raid in your system. You seem to have only one hdd so it's impossible to run raid.

If your disk has been used in raid before, the ubuntu installer ignores the disk/partitions until you delete the raid meta data remains. Windows ignores it, but ubuntu doesn't.

dsman
March 10th, 2012, 09:21 AM
Thank you,darko!
I deleted meta data and partitions showed,but after i made manually swap and "/" root partition I installed ubuntu.After installation i restarted my computer and I got this error "no such partition
grub rescue>"
I deleted ubuntu partitions,but I still have the same error
Now i can't even start my windows 7.
Please,help!

sikander3786
March 10th, 2012, 09:45 AM
That doesn't sound good at all. Please be patient and remember that this has nothing to do with the removal of Raid meta-data.

Probably Grub wasn't installed correctly. Or you somehow didn't install it to its preferred location.

Whatever it was, now we need you to boot an Ubuntu Live CD/USB and post the output of bootinfoscript as per instructions here:

http://bootinfoscript.sourceforge.net

No need to panic, your Windows 7 install will be there hopefully and also the Ubuntu one probably. The only thing you lose is some time, and also some effort. ;)

After we see the outputs of that script, we can give you easy instructions to re-install the bootloader whether the Windows one or Grub.

darkod
March 10th, 2012, 09:59 AM
You shouldn't have deleted the root partition. In situation where you get grub error, don't panic and try to solve it first.

Deleting the ubuntu partitions will definitely break grub2 even further since it depends on configuration files which are on the root partition. Now they are gone.

You can try installing ubuntu once more into the same unpartitioned space (if you really deleted it) and if grub still gives you an error run the boot info script as suggested and post the results. It will show more details.

If nothing of this works, don't worry, there is still an easy way to make win7 boot. Don't worry about win7, lets make your dual boot work.

dsman
March 10th, 2012, 10:42 AM
I fix the problem with the grub error.I'm in windows 7 now,but I still want to multi boot windows 7 and ubuntu without grub errors -.-
Maybe is my mistake I made 1 swap partition and one "/" root and I installed ubuntu in root partiton,do I need to make boot partition or what I need to do =(

darkod
March 10th, 2012, 10:46 AM
No, root and swap is enough. You can make a separate /home partition to host your Home folders but that is option too. If you don't create it it will be on root.

The minimum it needs is root + swap. And make sure you write the bootloader (grub2) to the MBR of the disk, for example /dev/sda. There shouldn't be a number in it, a number means partition, not the MBR.

There are cases when it doesn't install grub2 correctly but in that case you can try adding it later.

dsman
March 10th, 2012, 05:30 PM
So I need to write "/dev/sda bootloader (grub2)" in terminal?

darkod
March 10th, 2012, 05:48 PM
So I need to write "/dev/sda bootloader (grub2)" in terminal?

No, I was talking when installing using the manual option (Something Else). In that case under the list of disks/partitions you have a drop down menu to select where to install the bootloader. If you are installing with the manual method make sure you select /dev/sda and not a partition.

If you use any of the auto methods it installs on a MBR by default.

In case it still doesn't install correctly, you can reinstall it to the MBR manually but it first depends why it didn't install. So, instead of speculating, do the ubuntu install again and only if it doesn't work we will investigate.

dsman
March 10th, 2012, 07:54 PM
Hi,darko i made everything u said,but still doesn't work.
I got the error again "no such partition
grub rescue"
Is there a way to add grub manually?

darkod
March 10th, 2012, 08:01 PM
You can add grub, but this sounds like an error where it can't find a certain partition. Look at the no such partition error and write down the last 5-6 characters of the long entry it says it can't find (that is a UUID value).

Then boot into live mode again, and you can check the UUIDs in terminal with:
sudo blkid

Does that UUID exist on the disk or not?

dsman
March 10th, 2012, 08:22 PM
Darko the error is just:
error:no such partition
grub rescue>

darkod
March 10th, 2012, 08:49 PM
Hmm, strange. Lets get more details. Follow the link in my signature, run the boot info script and post the results as explained there. You can do all that from live mode.

That will show more details of the OSs and boot process.

dsman
March 10th, 2012, 09:20 PM
I tried "sudo blkid" and this is what it shows.I will try Boot Info Script now.

dsman
March 11th, 2012, 10:51 AM
This is the Result.txt from Boot Info Script. If you are with windows open it with Wordpad,because with notepad you can't see it.

darkod
March 11th, 2012, 11:01 AM
Strange. The grub2 on the MBR is pointed to a totally different location. Boot into live mode and in terminal try:


sudo mount /dev/sda6 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

Restart and see if that helped.

dsman
March 11th, 2012, 12:32 PM
I did it,but this doesn't help too =(
Still same problem.

genyue
March 11th, 2012, 03:14 PM
I have the same problem.
I'm currently running Windows 7 64bit.
I want to dual boot Windows 7 and Ubuntu, but I cannot install Ubuntu.

Here's the details:

1. Ubuntu installation cannot detect any partitions.
2. GParted cannot detect any partitions.
---- GParted has an error "Can't have overlapping partitions."
3. fdisk -l <-- It shows my partitions

My guess is either:
there's some problem with my HDD
or Ubuntu (11.10) cannot detect HDD with many partitions (partitions with different sorts of filesystem).
I'm suspecting the latter.

And please take a look at the screenshot.
It shows what I'm saying very clearly.

genyue
March 11th, 2012, 03:16 PM
I did it,but this doesn't help too =(
Still same problem.

dsman, how many partitions have you created in ur Windows HDD?

Is it three?

oldfred
March 11th, 2012, 03:57 PM
@genyue
Please do not hijack someone else's thread. It sounds like if you have overlapping partitions you have a partition table error. Almost any systems that read partition table will not work until it is fixed.
Better to post terminal output than screen shot as I cannot make out details in fdisk. Use sudo fdisk -lu and post in new thread.

dsman
March 11th, 2012, 06:30 PM
Do I need to have istalled ubuntu for outputs from "sudo fdisk -lu"?

darkod
March 11th, 2012, 09:39 PM
Do I need to have istalled ubuntu for outputs from "sudo fdisk -lu"?

No, it works in live mode without installing anything. The command is included on the cd.

dsman
March 12th, 2012, 02:24 PM
Here are my outputs from "sudo fdisk -lu".

jlh68
March 12th, 2012, 04:32 PM
Shrink those Windows partitions to free up space on your HD.


Then use your Ubuntu CD as a "live OS", and use the disk partitioner that is on the CD.

Alternative is to download SystemRescueDisk, and run as "live OS", use the application GParted on SysResDK.

dsman
March 14th, 2012, 09:51 PM
I still can't find solution of my problem =(

dsman
March 17th, 2012, 04:17 PM
Any ideas guys?
After i install ubuntu i get following error "no such partition grub rescue>
Please help =/

oldfred
March 17th, 2012, 04:24 PM
Boot script was suggested before so we can see your entire configuration.

This is an easy way to run boot info script.
Boot Repair:
https://help.ubuntu.com/community/Boot-Repair
You can repair many boot issues with this or post the link to a run of boot info script so we can see your exact configuration.

Grub Rescue Prompt Megathread - drs305
http://ubuntuforums.org/showthread.php?t=1594052