LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-29-2015, 05:54 PM   #1
alexhiram
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible.


Hello, I am currently building LFS 7.5-systemd using a virtual machine mounted over CentOS 7 with x86_64 architecture.
I am already working in chapter 8 and so far every step in this chapter went flawlessly until I had to install grub with "grub-install /dev/sda", in which I get the error Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible.
Now, I am currently working my LFS in /dev/sdb1 and have my swap in /dev/sdb5, building the whole LFS system in another hard drive in ext4. I am not sure if because of this I am supposed to change the command to "grub-install /dev/sdb" or "grub-install /dev/sdb1" but it's not working in any case.

I've heard there is an issue with installing the grub in ext4 systems, is there a way to use a third hard drive to use as boot?
 
Old 01-29-2015, 07:23 PM   #2
QYInst
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
It depends on which partition you want to install the grub, and you must have the mount point.

From your post I guess you want to install grub at hard disk /dev/sda, but you may also specify the directory where you want to write the files for grub.
Let us say, you want to write the grub files at /dev/sda1, then you can first mount it
Code:
# mkdir /mnt/test
# mount /dev/sda1 /mnt/test
And then install grub by
Code:
# grub-install --root-directory=/mnt/test /dev/sda
 
1 members found this post helpful.
Old 01-29-2015, 08:42 PM   #3
alexhiram
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
I have resolved doing that same thing, thank you!
 
  


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
[SOLVED] "`/boot/grub' is not readable by GRUB on boot" & "cannot find a device for /" Geremia Slackware 26 01-03-2015 11:07 AM
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 04:02 PM
grub boot loader installation in dual boot machine after windows 7 installation sourabh.sinha Linux - Newbie 4 03-23-2010 09:22 AM
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 02:19 AM
Impossible to boot Vista with grub? DeadZed Linux - General 2 01-27-2006 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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