LinuxQuestions.org
Help answer threads with 0 replies.
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


Closed Thread
  Search this Thread
Old 08-17-2014, 09:51 AM   #1
Skorpius7
LQ Newbie
 
Registered: May 2014
Posts: 20

Rep: Reputation: Disabled
Grub Issues (LFS Chapter 8)


Code:
`/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting.
So for the past month or so, I've been trying to build LFS through Virtualbox and the old LiveCD they had. After trouble in Chapter 6, I decided to try it out on an actual harddrive, running SalixOS and LFS has been a breeze since. After 2 days of speedily catching up and getting ahead, I've made it to Chapter 8, where the boot stuff occurs (GRUB), but now I have ran into this error. FIrst of all, I am under the impressiont hat this section is optional and I can just edit the current grub loader I have (booting Salix) to load my LFS build instead. Is this true? Anyway, I was wondering if there were any ideas where this error could be coming from? I was digging around a bit and it seems like this error usually results from forgetting to mount certain things. I've assured that everything is mounted (as in chapter 6.2 and 6.2.3) and I am doing this through chroot.

I also tried to ./configure inside the grub source directory and then;

Code:
root:/boot# cd grub/
root:/boot/grub# ls
i386-pc  locale
But still got the same error.

Then I tried to boot with USB according to the instructions on this post (digging through LQ):

Quote:
I skipped this chapter (no grub on mbr) and i boot from usb.. you can use this way if you want:
http://www.supergrubdisk.org/put-sup...-from-windows/

At boot choose "Detect any grub2 configuration file (grub.cfg)" option.

# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd1,2)

menuentry "GNU/Linux, Linux 3.13.3-lfs-7.5" {
linux /boot/vmlinuz-3.13.3-lfs-7.5 root=/dev/sda2 ro
}
And it recognized both LFS and Salix..but it couldn't successfully boot either of them - just stood still

Last edited by Skorpius7; 08-17-2014 at 09:54 AM.
 
Old 08-17-2014, 04:04 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,279

Rep: Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380
Quote:
root:/boot/grub# ls
i386-pc locale
On the systems I have with grub2, I see at least a grub.cfg file also in that directory.
Also, in each menuentry there should be a separate set root= line. The set root line you posted "set root=(hd1,2)" is sdb2 while on the linux line you have the root=/dev/sda2. I'm really not sure what you are doing here. If you are not able to figure this out, you might do a google for 'bootinfoscript', download and run it from an Linux and post the output here for help. It should output a file called results.txt.
 
Old 08-18-2014, 12:00 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Is Salix still bootable?
Is Salix using grub or lilo?

Last edited by EDDY1; 08-18-2014 at 12:01 AM.
 
Old 08-18-2014, 12:03 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,721

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Duplicate of thread on lfs forum.
 
Old 08-18-2014, 12:07 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Also after reviewing your grub entry I would assume that your entry for lfs is incorrect
Quote:
menuentry "GNU/Linux, Linux 3.13.3-lfs-7.5" {
linux /boot/vmlinuz-3.13.3-lfs-7.5 root=/dev/sda2 ro
I doubt that it would be /dev/sda2 if you can post output of
Quote:
cat/etc/fstab
&
Quote:
fdisk -l
We will be able to help with your grub/lilo.
 
Old 08-18-2014, 03:02 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate. This time I've copied the relevant answers in this thread to the other in LFS forum, but please refrain from doing it in the future.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] LFS 7.2 chapter 2.3 rcorkum Linux From Scratch 3 02-22-2013 06:19 PM
LFS chapter-by-chapter complete commands with notes DrinkinHomeBrew Linux From Scratch 6 03-16-2012 01:57 AM
Grub error 21 with LFS 6.3 Chapter 8.4 bines Linux From Scratch 10 12-24-2008 03:18 PM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM

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

All times are GMT -5. The time now is 10:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration