LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2010, 05:28 PM   #1
Wolfcube
LQ Newbie
 
Registered: May 2010
Posts: 4

Rep: Reputation: 0
GRUB Xubuntu Boot Problems


I had been using Xubuntu 9.10 successfully for some time. Recently, however, I tried to boot Xubuntu, and instead of reaching the login screen, a "GRUB" interface appeared.

The title was "GNU GRUB VERSION 1.97~beta4"

Below that, there were a few instructions describing the use of the Tab key and a blank command line interface beginning with "sh:grub7".

Before this started occurring, my computer would turn on and then display a menu to choose the OS. If I selected Xubuntu, a few lines would flash by, and the login screen would appear. My computer is a Dell XPS M1530 laptop. The operating systems installed are Windows Vista Ultimate and Xubuntu 9.10. The Xubuntu was installed using a Wubi installation.

As far as I remember, I did not make any changes that may have caused this. The only significant event that did occur was a power outage, but my computer was not plugged in nor on at this time.

If everything works normally, how would I boot Wubi Xubuntu from the GRUB interface? Are there any other solutions to this problem?

Thank you for any help.
 
Old 05-24-2010, 07:17 PM   #2
mitchell7man
Member
 
Registered: Jan 2007
Location: Draper, UT
Distribution: Ubuntu, Windows 10, OSX
Posts: 461

Rep: Reputation: 31
I can't give too much advice, but when the grub menu comes up, hit e and look at the boot settings, this might just be a case of an update gone wrong, in there make sure that your boot options look as they should something like:
Code:
title	 Ubuntu 9.04, kernel 2.6.28-11-generic
uuid	 394136cb-4e75-4ddf-806a-41da223ec840
kernel	 /boot/vmlinuz-2.6.28-11-generic root=UUID=394136cb-4e75-4ddf-806a-41da223ec840 ro quiet splash 
initrd	 /boot/initrd.img-2.6.28-11-generic
quiet
Good Luck.

Grub2: http://ubuntuforums.org/showthread.php?t=1435808
 
Old 05-24-2010, 09:37 PM   #3
Wolfcube
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for your suggestion.

I tried pressing 'e' at every stage and screen of turning on my computer, but it had no effect. I don't seem to be reaching a GRUB menu, just an interface.



Pressing 'set' in the command line of the GRUB interface listed some information, including a "kernel: hd0,3".

I tried entering "boot hd0,3" and was told that no kernel existed.

Again, this is on a Wubi installation.
 
Old 05-24-2010, 10:32 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Follow the grub2 link above - then go to the link in post 2 of that reference. It is quite a detailed article - and at the end has some troubleshooting notes.
I have no experience with wubi, so can't help you there.

Last edited by syg00; 05-24-2010 at 10:39 PM. Reason: Deleted comment - hadn't read post closely enough
 
Old 05-25-2010, 06:55 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
To boot using grub2 ubuntu from the grub command line
Quote:
root (hd0,1)
linux /vmlinuz root=/dev/sda?
initrd /initrd.img
boot
I don't know what drive or partition your ubuntu is on but start from zero for drives and start from one for partition for the numbering in the root line ( maybe root (hd0,3)) and replace the ? (maybe sda3) with the actual partition number, should allow you to boot into your ubuntu installation then you can reinstall grub.

Last edited by colorpurple21859; 05-25-2010 at 09:35 AM.
 
Old 05-26-2010, 01:28 AM   #6
rowelyn
LQ Newbie
 
Registered: Jan 2010
Posts: 16

Rep: Reputation: 0
i encountered the same problem, when i hit the e it says record fail=1 if [ -n ${have_grubenv} ]; then save_env recordfail; fi set quite=1
insmod ext2
set root =(hd0, 1)
search --no floppy --fs-uuid --set 1574800c-0386-45f9-a627-449a559d\0ea
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=1574800c-0386-45f9-a\
627-449a599d70ea ro quite splash
initrd /boot,initrd.img-2.6.31-14-generic

i've read your reply, and it has different root=UUID number, is it neccessary to change to the one that you replied to the other? then after, what will i do?

thank you so much. hope you will help me with my problem. thanks
 
Old 06-01-2010, 06:18 PM   #7
Wolfcube
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I've looked through the article for all references to Wubi.

I tried

Code:
set root=(loop0)
linux /vmlinuz root=/dev/sda3 loop=/ubuntu/disks/root.disk ro
initrd /initrd.img
boot
as suggested in the article, but I always get something like "no disk found" after the second command is entered.

When I enter ls, I get the drives (hd0), (hd0,1), (hd0,2), (hd0,3), and (hd0,5). I've tried sda, sda1, sda2, sda3, and sda5, but I always get the same response.

Are there any other suggestions? This is Xubuntu on a Wubi installation.

If I do choose to reinstall Xubuntu, is there anything I could do to prevent this issue from reoccurring?
 
Old 06-01-2010, 06:41 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
My suggestion is to not use wubi. I saw a reference from a Ubuntu dev that wubi would be dropped - issues with grub2 IIRC.
I did try and find it later, but couldn't - maybe they changed their mind. I generally use dual boot, but if I have to use virtualisation on Windoze (which I do a fair bit) I use VirtualBox and install Linux (and OpenSolaris) there.
 
Old 06-02-2010, 09:02 AM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

most ubuntu distros use grub2 with gfxmode so instead of pressing E for edit....press ESCape to escape graphical mode and enter text mode....then press E to edit

2) they have a nasty habit of using hiddenmenu as well.

this is best solved by using a live cd to mount your /boot partition using root powers

Then part 1 test.... just edit /boot/grub/grub.cfg to put a # in front of hiddenmenu....report if you don't see one pls
reboot and if that works....search each file of /etc/default/grub or /etc/grub.d
I do not use Ubuntu so am only guessing
 
Old 06-02-2010, 12:12 PM   #10
brian3
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Rep: Reputation: 0
stop mucking around with, renstall it it safes lot hassle
 
Old 06-02-2010, 08:40 PM   #11
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Rep: Reputation: 167Reputation: 167
grub2 problems

Cannot understand why it worked ok without alteration unless it was an update/upgrade problem, especially if done on the gui.
Perhaps, boot into a live ubuntu, drop to init 1, 'umount' the relevant partition,run fsck, then reboot and use the (still inserted) to boot from the first hard drive- providing that is where you linux is. Otherwise, after running fsck, remove that disk and use System rescue disk or supergrub to reinstall the MBR. This is only a suggestion.

Fred.
 
Old 07-17-2010, 12:58 PM   #12
Wolfcube
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I made a video to show exactly what is happening:

http://www.youtube.com/watch?v=prdt7EXEIq4


I'm beginning to think that I wont be able to recover my system. I'll reinstall it using a proper partition instead of Wubi. Is there any way at all to get my files back? In Windows Explorer, I can find the folder that Wubi created. I assume that all my files are somehow contained in the "install" folder, which only contains one file: a large .fuse_hidden0000000400000001 file.
 
Old 07-17-2010, 06:37 PM   #13
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
yeah well looks like its more of a wubi issue than a grub2 issue. I re-read syg00 post on grub2 and wubi.

IMHO you have only windows installed to the partition....then your windows bootloader has an option to boot a single file on the windows partition that is a "virtual" linux
http://linux.about.com/od/dist/gr/dstwubi.htm

The problem is....grub2 is NOT installed in MBR or in the partition boot record so normal command modes will fail IMHO.

2) I don't blame you for being conservative and trying out linux. Instead of wubi can I suggest you download the windows version of virutualbox and then you can boot up windows...open virtualbox....install any linux distro you like into it....and play with it?

3) other suggestions depending on your risk profile....get rid of windows....install linux....install linux virtualbox and run windows from that if you need something?
b) wipe the drive with a linux cd....partition it for real....install windows....into partition 1 = c.....install linux into partition 2 ....partition 3 is windows swapfile and partition 4 is linux swap.....assuming you have a msdos partition table and not GPT

When linux installs....install grub2 into MBR and let it chainload to your windows bootloader.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 02:19 AM
Problems with /boot/grub/grub.conf not being read properly on reboots cmeyer Linux - Software 1 10-11-2008 06:34 PM
Grub Boot Problems tobyconnected Linux - General 3 08-02-2007 05:34 PM
can't boot, grub problems. mbquartnut Linux - Newbie 4 06-12-2006 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration