LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2014, 01:30 AM   #1
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Rep: Reputation: 9
How do I boot from that dreaded GRUB rescue prompt?


I'm using a netbook that had Windows XP, EasyPeasy 1.6, and Ubuntu 12.04. I was trying to replace Ubuntu with Arch Linux, but I ran into an error installing and I tried to reboot into EasyPeasy to look up what I should do. To my utter amazement and pleasure, I was greeted by the wonderful, friendly, welcoming GRUB repair prompt. error: no such partition. So I tried the following things, no luck. I feel like there's something simple I should be doing that I don't know about. My screen looked exactly like this (I took a picture with my phone, so I'd be able to post the output):
Code:
error: no such partition
grub rescue>boot
Unknown command 'boot'
grub rescue>ls
(hd0) (hd0,msdos6) (hd0,msdos5) (hd0,msdos4) (hd0,msdos3) (hd0,msdos1)
grub rescue>ls (hd0,msdos6)

error: bad filename
grub rescue>ls (hd0,msdos5)
error: unknown filesystem
grub rescue>ls (hd0,msdos4)
error: unknown filesystem
grub rescue>ls (hd0,msdos3)
error: unknown filesystem
grub rescue>ls (hd0,msdos1)
error: unknown filesystem
What should I do? Any help would be appreciated. Right now, I'm running from a Slax live USB drive as that's the only thing I can do with this computer right now.

Last edited by CamTheSaxMan; 01-17-2014 at 01:33 AM.
 
Old 01-17-2014, 01:44 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Seems to me that grub does not have the modules loaded for the filesystems in use. Dont know if you can load modules from grub rescue but as you have a live system going just reinstall grub.

Either from the live system itself or from a chroot of easypease. Assuming ubuntu/arch is not ready for use yet. You're familiary with setting up a chroot enviroment?
 
Old 01-17-2014, 01:56 AM   #3
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Original Poster
Rep: Reputation: 9
So how do I reinstall GRUB from Slax? Slax doesn't use GRUB, so I can't just do grub-install /dev/sda. Is there something I can download to install GRUB to the MBR? How would I do it from a chroot in case I can't install from Slax?

Last edited by CamTheSaxMan; 01-17-2014 at 01:59 AM.
 
Old 01-17-2014, 03:49 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I guess there is a package for grub for slax. At least a quick search showed some ways.

The chroot approach:
Boot live system (slax?)
mount the partitions of a system that contains grub to /mnt
do the following:
Quote:
mount -t proc chproc /mnt/proc
mount -t sysfs chsys /mnt/sys
mount -t devtmpfs chdev /mnt/dev || mount -o bind /dev /mnt/dev
mount -t devpts chpts /mnt/dev/pts
chroot /mnt /bin/bash
grub-install


With chroot its like working from within the system mounted on /mnt just like if oyu had booted into it. The proc,sys and dev filesystems are needed. Especially /dev.
 
1 members found this post helpful.
Old 01-17-2014, 09:27 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
Your post would indicate that you were booting all three systems with Grub2 from Ubuntu. Before beginning the install, you should have booted EasyPeasy (or xp) and made sure the bootloader from either was installed to the mbr before trying to install Arch in case it failed, which it did. This is also why it is always a good idea to keep the medium you used to install a system, especially the primary which has the bootloader since most of the needed Grub files are on the partition.

If you aren't able to get it working from Slax, there are a number of ways suggested to install Grub2 at the link below. You would obviously need something with Grub2 on it.

https://help.ubuntu.com/community/Grub2/Installing
 
Old 01-17-2014, 11:29 AM   #6
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Original Poster
Rep: Reputation: 9
I have an odd problem. I tried doing mount /dev/sda6 /mnt, but I got this error message:
mount: special device /dev/sda6 does not exist
I know for a fact that my EasyPeasy installation is on /dev/sda6
I looked into /dev and sda6 in fact does not exist. There are no sda# devices at all.
However, strangely, when I boot into the graphical environment of Slax, I can just click on it on Dolphin's panel, which mounts it with no problems to /media/7b0dbeb5-0025-46c8-a657-5e7f4a945c16. So, apparently Slax calls it by a different name. What should I do?

Man! Whoever chose KDE as the default DE for Slax should be slapped! That thing is a slow, buggy mess. It takes 5 whole minutes just to boot into the desktop, and then it's almost unusably slow.

EDIT: I found out, it's sdb instead. So I followed your commands but ran into a problem.
Code:
root@slax:~# mount /dev/sdb6 /mnt
root@slax:~# mount -t proc chproc /mnt
root@slax:~# mount -t sysfs chsys /mnt
root@slax:~# mount -t devtmpfs chdev /mnt/dev || mount -o bind /dev /mnt/dev
mount: mountpoint /mnt/dev does not exist.
mount: mountpoint /mnt/dev does not exist.
Also, GRUB is installed to the MBR. It's not on any partition.

Last edited by CamTheSaxMan; 01-17-2014 at 12:28 PM.
 
Old 01-17-2014, 12:18 PM   #7
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Original Poster
Rep: Reputation: 9
YEAHH!!! I finally got it working! I did a stupid mistake. I typed in chproc /mnt instead of chproc /mnt/dev. Now I can finally boot into EasyPeasy again. And as an added bonus, I get a nice verbose boot instead of a blank splash screen. I deleted my incomplete Arch partition before I started this just to minimize some risk. So, now that I've got it working, what should I do to install Arch without messing up GRUB again?
 
Old 01-17-2014, 05:37 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
Quote:
what should I do to install Arch without messing up GRUB again?
If you are going to install it to the former Ubuntu partition, you should be able to select to install Grub to the partition on which you put Arch. I've never used Arch so can't be sure but every distribution I've installed gave me that option. It's easy to overlook so make sure you read everything during the install.

Quote:
Also, GRUB is installed to the MBR. It's not on any partition.
Part of Grub (512 bytes) is in the mbr. The rest of Grub is on the partition. If you only had Grub in the mbr and nothing on any partition, it would not boot. On an Ubuntu system I have installed, the Grub directory is 4MB.

Last edited by yancek; 01-17-2014 at 05:41 PM.
 
Old 01-17-2014, 11:13 PM   #9
techslate20
LQ Newbie
 
Registered: Jan 2014
Location: Oklahoma City
Posts: 3

Rep: Reputation: Disabled
Very helpful and effective information. Thanks a lot.
 
Old 01-18-2014, 03:03 PM   #10
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Original Poster
Rep: Reputation: 9
I was able to sucessfully installed Arch Linux, and I'm very pleased with it. (Using it right now to post) My computer boots in 15 seconds! Arch replaced whatever version of GRUB I had with GRUB 2.02~beta2. I don't know why they're using beta, but it works fine and the OS prober worked correctly. On the GRUB screen, there are three entries for Arch Linux:
Code:
Arch Linux pkg-linux kernel
 Arch Linux pkg-linux kernel (fallback initramfs)
Arch Linux
What's the difference between Arch Linux pkg-linux kernel and just Arch Linux? They both seem to do the same when I boot. Are they just two different kernel versions?
 
  


Reply

Tags
boot, grub



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
The dreaded GNU Grub Boot Prompt after trying to install Elementary OS Caskla Linux - Newbie 54 10-13-2013 09:03 PM
Grub Rescue Prompt sblofton Linux - Newbie 11 08-18-2013 02:07 PM
Grub rescue prompt after booting, CANNOT boot from CD! Ramor Linux - Desktop 1 08-30-2011 02:35 AM
System won't boot up, just gives grub rescue> prompt.. HawkmanJames Linux - Newbie 3 09-15-2010 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 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