The dreaded GNU Grub Boot Prompt after trying to install Elementary OS
Okay, so today I tried to install Elementary OS. I got through the installation and when I was prompted to reboot and select Elementary OS (I dual booted it with Windows 8), I got what is apparently known asthe dreaded grub boot prompt.
I see that there are steps there to help get through it, but I don't quite understand how to apply them to my PC. When I 'ls', I get "(hd0) (hd0,msdos1) (hd1) (hd2) (hd2,gpt5) (hd2,gpt4) (hd2,gpt3) (hd2,gpt2) (hd2,gpt1)." When I boot into Windows, I have the partitions C:/ and L:/ and I am not sure which one is which. Any help is appreciated. Thanks in advance. |
Hi:
Sorry to hear your having trouble with your Elementary OS. I (think) that you can now use the next command (ls and the (hd0) and all the rest; to look at each partition to determine which one is the Linux root, boot, and swap. Look for the dev/sda1 that is your "/boot partition" If this partition contains /boot, the output will show the full name of vmlinuz and initramfs. Code:
4. With this information you can now probe each partition of the drive and locate your vmlinuz and initramfs files: Also is this a Desktop computer or a laptop? What make and model? I have asked another member to help here because I don't know about your Windows C:/ or L:/ and I don't want to tell you the wrong thing. https://help.ubuntu.com/community/Grub2/Troubleshooting https://wiki.ubuntu.com/Initramfs |
After consulting with another member here It would be better for you to use a Linux LIVE-CD to determine what each drive contains.
With Windows 8 that particular partition is on a UEFI partition all of it's own. http://www.ehow.com/how_8248552_hidd...n-windows.html https://www.linuxquestions.org/quest...st-4175478139/ |
Thank you for your help, Ztcoracat.
First of all, I apologize for being unable to reply quicker. To answer your questions, this a desktop that I built. No, it did not say "error: file not found grub rescue." I am unfarmiliar with Linux LIVE-CDs. How would I go about using one to determine what each drive contains? Also, since this new partition that I created only contains Elementary OS files that the installer installed, would it be easier to just start the process over? You know, wipe the partition then reinstalling? I guess a better question is, is this issue caused by an error in the installation that is most likely a one time thing, or is this caused by an incompatibility issue, or something else? Because I wouldn't mind retrying if you think it might fix this issue. |
You are very Welcome. It's my pleasure to assist you.
If Elementary OS is the only operating system on your new computer than yes, it would be considerably easier to just re-inatall Elementary. Depending on the size of the HDD you could create your own partitions or just allow the installer do it for you if you want the OS to take up the entire disk. Otherwise you would have to prepare for a dual boot (Windows and Linux) on the same HDD:- Quote:
Quote:
That is if Windows 8 is installed on your computer-- Once the Linux CD loads you can use the terminal to run this command and post the output of it- Code:
fdisk -l |
I don't believe I was specific enough about how I went about installing Elementary OS in my original post.
I extracted the elementaryos-stable-amd64.20130810.iso onto a USB drive and booted into that. I then went through the installation process, and I was then prompted to restart my computer and select Elementary OS. When I booted back up, instead of getting a screen where I could select my OS, I got the grub boot prompt. I would be happy to boot into the Elementary OS USB drive tomorrow and run the fdisk command, but right now, I need to go. Again, thank you for your time. |
Quote:
What does your hardware consist of? How many hdd's do you have? Do you know if you installed to the msdos disk or did you install to the gpt partitioned disk? |
Quote:
Quote:
Quote:
Also, I attempted to run the Quote:
Quote:
I'd like to mention something that I noticed while watching an installation video. In the video, one of the options for installation was "Install elementary OS alongside Windows 8," and I didn't have that option. I was thinking that that might relate to my issue in some way, but I'm not sure. |
Did you build this system or did they buid?
Is windows bootable? Try using a live-cd |
The commond 'fdisk -l has to be ran as 'root' That's the small letter l, BTW-
Code:
sudo fdisk -l Code:
Device Boot Start End Blocks Id System Quote:
Do you recall making 2 partitions? Quote:
|
Quote:
Quote:
This is what comes up when I typed in the command: Quote:
Quote:
Quote:
|
To read gpt partitioning you have to use gdisk
What os are you using on live-usb? Quote:
|
Quote:
Unless I am mistaken- Quote:
There should be at least another /W95/Fat32 partition and I am having trouble understanding why you don't have another Windows partition- Because you should:- (bizarre) Quote:
Because of the WARNING about fidisk you will have to use GNU parted. https://www.gnu.org/software/parted/ https://www.gnu.org/software/parted/manual/ If you don't want to do that (use GNU Parted) than you will have to format the usb that has Elementary OS on it. Than you should be able to install Elementary alongside of your Winows OS. Quote:
Don't forget to create another partiton for the swap. I would dedicate 1 to 2 GB for the swap partiton. The swap holds temporary memory packages. A server can boot w/o a swap partition as long as there's enough RAM. (if your running a server) |
Quote:
|
Quote:
Quote:
Elementary is capable of installing to GPT & UEFI so it should have gdisk on it. |
Quote:
Since Elementary is capable of this all our friend; Caskla now needs is to use gdisk? Right? I didn't know that gdisk comes with Elementary. I used a Live Elementary CD yesterday and I was able to use g-parted to look at my friends Lenovo's partitons- Don't know if that helps- |
Quote:
|
The Live CD is no longer with me.
My friend took it to install it on his Lenovo- |
Caskla:
The Elementary .iso image is on your usb isn't it? |
Quote:
Quote:
Quote:
|
Looking at the output gdisk in now installed. ;)
You should be able to install Elementary OS now (onto the partiton that you made) from your usb memory stick. |
So I should go through the installation process again?
|
Quote:
If you don't than I don't think Elementary Os has been installed. We should see what Mr. Eddy has to say about the /dev/sda1 partition that you have. /dev/sda5 EXT 4 4068 MB- You should be able to install to that partition. |
As you know, I'd like to install it to the partition that I made, but according to the installer, /dev/sda1 is only 300 MB. /dev/sda5 seems to be the partition that I made. Here is an album of photos of the installer and my options: http://imgur.com/a/Vulvh
|
sudo gdisk /dev/sda
|
Quote:
|
Code:
dev/sda2 is the efi partition Code:
dev/sda3 134 MB unknown Code:
dev/sda4 is 894.8 GB which is way more than what you need for your Windows partition. That's what I would do if this was what I had to work with. I'd reduce it to about 1/2 the size it is now. Code:
dev/sda5 ext4 4068 MB |
4068 is used space on the partition, but partition is 104.9Gigs, so os is most likely installed but no bootloader. At this point the OP needs somebody like evo, tobisdg or other members who are more experienced with this type of setup.
Quote:
|
Quote:
|
10/04/13 Update
I have asked our Moderator to join this thread- ;)
BTW approx. 30 GB's is recommended for Windows 8- However; it depends on how many other programs you must install on the boot disk partition:- http://www.softwareok.com/?seite=faq-Windows-8&faq=5 |
Quote:
|
Wow! 70 Gig's- That's just crazy:-
|
Currently, I have 833gb on my Windows 8 partition, so there's no reason to worry. I plan on keeping that size, and having the extra 100gb on my HDD for Elementary OS.
Anyway, thank you, Ztcoracat, for asking for help. |
Quote:
|
If you haven't reinstalled yet at the grub prompt what is the output of the following
Code:
set |
I too colorpurple21859; was suspicious of /boot/grub/grub.cfg file missing.
How do we get that file that is needed? This thread that our Guru: business_kidd SOLVED may be helpful in your case Caskla. To say the least to learn from. Code:
Disabling secure boot disables gpt (i.e. hard disk) booting. Trying to help the best I can. :~$@ Claska run those commands that colorpurple21859 needs when you have time. :~$@ colorpurple21859: thank you for joining our thread! |
that is what ls /boot is for to see what the kernel and initrd files are, then can manual boot with the linux and intrd commands. once booted either can run grub-update or grub-mkconfig to create a grub.cfg, or can create one manually with a text editor.
|
Quote:
So...like you said once booted you will know wether to run grub-update or use grub-mkconfig to create the grub.cfg file. I'm thinking that running "grub-update" and running "grub-mkconfig" performs differnt things. Obviously 'grub-mkconfig' will give you the ability to make and configure the needed file- Is that right? |
It has been a while since I ran grub-mkconfig. If I can't get grub-update to work then I usually create one with a text editor.
|
Quote:
Thanks-;) |
Sorry it took me so long, guys. I lead a busy life. So, I ran the commands, and here are the results:
Quote:
|
Evidently, you do not have the grub file. (error: file not found)
Lets's see what colorpurple21859 advises on this. I would need his take on this to assist you or anyone else for that matter:- In the meantime it probably wouldn't hurt to look up: Invoking grub-mkconfig and or how to create /boot/grub/custom.cfg? |
what does
Code:
ls |
you can find where your /boot partition is located by changing the partition numbers according to the output of
Code:
ls Code:
ls (hd2,gpt1)/boot Code:
linux (hd?,gpt?)/boot/<name of kernel> root=/dev/?? initrd (hd?,gpt?)/boot/<name of initrd> boot Then run updates and then reinstall grub to MBR |
also what is the ouput of
Code:
ls (hd2,gpt2)/ |
1 Attachment(s)
Here is the input. It seems that (hd2,gpt5) is my boot partition. Would have continued with the instructions, but I was unsure of what to type after the root=/dev/ part.
I figure the initrd.img-3.2.0-51-generic is the initrd. |
Yes it (hd2,gpt5) does indeed look like your boot partition.
And the initial ram disk image (3.2.0-51 generic seems like it could be the initrd- I (think) now like colorpurple21859 said you would type something like: Code:
linux (hd2,gpt5) /boot/(your kernel 3.2.0-51) I'm learning and waiting for colorpurple21859's counsel at this point. Never seen this output before. |
Set to the correct value, which might be something like this:
Code:
set prefix=(hd2,gpt5)/EFI/ubuntu |
See if this will pull up a boot menu.
Code:
configfile (hd2,gpt5)/boot/grub/grub.cfg |
Code:
ls (hd2,gpt5)/boot |
All times are GMT -5. The time now is 05:34 AM. |