PDA

View Full Version : Grub not booting Ubuntu, does boot windows 7



Avinaash
June 26th, 2012, 10:08 AM
I'm using Windows7 and Ubuntu 12.04 LTS. When I choose Windows from boot loader menu, its booting and launching windows7 but when I choose Ubuntu, GNU GRUB command prompt is launched instead of GUI. I tried some of the commands from the forum posts. The results are like...

ls
(memdesk) (loop0) (hd0) (hd0,msdos6) (hd0,msdos5) (hd0,msdos2) (hd0,msdos1)

all X & Y in ls (hdX,Y) resulted in error: unknown file system except ls (hd0,msdos1).
but ls (hd0,msdos1)/boot is resulting in error: file not found so, I don't know about vmlinuz or initrd

I then tried code from this post and the results are like...

insmod ntfs
-> nothing happend

set root (hd0,msdos1)
-> nothing happend

loopback loop0 /ubuntu/disks/root.disk
-> error: file not found

But I have the folder ubuntu and file root.disk on my C drive.

Please help me out!
This is the first time I'm posting in ubuntu forums. Thanks!

nothingspecial
June 26th, 2012, 11:45 AM
Question moved to it's own thread.

darkod
June 26th, 2012, 11:53 AM
Are you sure msdos1 is your C: partition? Win7 often has a System Reserved partition not showing in Computer which would be msdos1. In that case C: would be msdos2.

YannBuntu
June 26th, 2012, 02:07 PM
But I have the folder ubuntu and file root.disk on my C drive.

That means you have installed Ubuntu inside Windows (via the Wubi installer).
You can try Boot-Repair (https://help.ubuntu.com/community/Boot-Repair), it should (mount&)open the Wubi folder in a file browser so that you can backup your documents which are in the Wubi filesystem.
Then (if nobody has better idea) I recommend you install Ubuntu the standard way (outside Windows, see https://help.ubuntu.com/community/GraphicalInstall )

prcdslnc13
June 26th, 2012, 02:48 PM
The same thing is happening to me. At first I wasn't getting grub at all so I installed easyBCD. Now I can at least get to select my OS but when I try to boot into Ubuntu I get this issue.

I don't know about the OP but I didn't use wubi to install. I did the normal way and selected "something else" from the menu and created my own root, swap, and home partitions.

One thing that comes to my mind is at the bottom when it asks for the device I selected the hard drive itself and not a partition.

Any ideas?

martinr
June 26th, 2012, 06:57 PM
One thing that comes to my mind is at the bottom when it asks for the device I selected the hard drive itself and not a partition.

Any ideas?
Sounds exactly like the problems I had. Have a look at this UEFI boot issue (http://ubuntuforums.org/showthread.php?t=2003442) and its solution (http://ubuntuforums.org/showthread.php?p=12030957#post12030957)

Avinaash
June 27th, 2012, 05:12 PM
Thanks people for your replies!


Are you sure msdos1 is your C: partition? Win7 often has a System Reserved partition not showing in Computer which would be msdos1. In that case C: would be msdos2.

Yes it is msdos1.

With ls (hd0,msdosX) all other resulted in error: unknown file system


That means you have installed Ubuntu inside Windows (via the Wubi installer).
You can try Boot-Repair (https://help.ubuntu.com/community/Boot-Repair), it should (mount&)open the Wubi folder in a file browser so that you can backup your documents which are in the Wubi filesystem.
Then (if nobody has better idea) I recommend you install Ubuntu the standard way (outside Windows, see https://help.ubuntu.com/community/GraphicalInstall )

I can't boot Ubuntu to run Boot-Repair :confused:

I installed the automatic updates from update manager ubuntu. And when I restart the computer to complete the installations it was redirected to GRUB. Grub boot loader is not compatible with my recent updates. This is my actual problem.

YannBuntu
June 27th, 2012, 07:37 PM
I can't boot Ubuntu to run Boot-Repair :confused:

Boot-Repair can be run from a live-CD (or live-USB) ;)

Avinaash
June 28th, 2012, 12:00 PM
Boot-Repair can be run from a live-CD (or live-USB) ;)

:) Yeah, I'm preparing a LiveCD now! Once it is done I'll run Boot-Repair.

Thanks!

Avinaash
June 29th, 2012, 03:20 PM
Hello,

I ran Boot-Repair from LiveCD. My problem is still unsolved.

Boot-repair URL:
paste.ubuntu.com/1066034/

Latest version of GRUB is installed on my system.

GNU GRUB version 1.99-21ubuntu3 This is there at the top of GRUB menu.

Thanks!

darkod
June 29th, 2012, 03:37 PM
It looks like wubi wasn't installed correctly. There is no root.disk, only /ubuntu/disks/swap.disk.

YannBuntu
June 29th, 2012, 05:22 PM
@Darkod: I think that is a bug of bootinfoscript, i will report it to Gert. Boot-Repair detected a /ubuntu/disks/root.disk file on sda2 (via [[ -f sda2mntpoint/ubuntu/disks/root.disk ]] ). It also performed a fsck on it (https://wiki.ubuntu.com/WubiGuide/#How_can_I_access_my_Wubi_install_and_repair_my_in stall_if_it_won.27t_boot.3F), but this gave a "mount: /dev/loop1: can't read superblock" error, which I can't interpret.

@Avinaash: if i were you, i would reinstall Ubuntu the standard way (OUTSIDE Windows, see https://help.ubuntu.com/community/GraphicalInstall )

prcdslnc13
June 29th, 2012, 05:43 PM
That's pretty much what I had to do. I used easyBCD to erase my current bootloader ( I don't recommend this unless your prepared to completely redo your PC), and used a windows restore disk to rebuild it.

Then I reinstalled 12.04 using the "install side by side" option. Defining my own partitions always resulted in the above issue.