Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 error: Path `/boot/grub2' is not readable by GRUB...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
trixtrax
n00b
n00b


Joined: 06 May 2010
Posts: 7

PostPosted: Fri Jan 18, 2013 12:00 am    Post subject: Grub2 error: Path `/boot/grub2' is not readable by GRUB... Reply with quote

Having looked around the forums and elsewhere on the Internet, I am stumped.

I purchased a new 2TB drive and have properly copied over my files from my old partition configuration to the new one, which is very similar. Now, comes the time to install GRUB2 prior to physically swapping out the old drive, but it's failing. :oops:

Following the GRUB2 guide:http://wiki.gentoo.org/wiki/GRUB2

I have mounted /dev/sdb1 (my new disk) to /boot

I have run grub2-mkconfig -o /boot/grub2/grub.cfg which completes successfully, but when I run grub2-install /dev/sdb it fails with:

Code:
Path `/boot/grub2' is not readable by GRUB on boot. Installation is impossible. Aborting.


I have tried everything I could think of including --boot-directory=/boot and --recheck but to no avail.

I am running xfs on a Athlon XP X2 using the 3.2 kernel, nothing really fancy.

My partitions on the old disk are setup like this:

/dev/sda1 /boot xfs
/dev/sda2 none swap
/dev/sda3 / xfs
/dev/sda4 extended
/dev/sda5 /tmp xfs
/dev/sda6 /usr xfs
/dev/sda7 /home xfs
/dev/sda8 /opt xfs
/dev/sda9 /usr/local xfs
/dev/sda10 /var xfs
/dev/sda11 /var/log xfs
/dev/sda12 /var/www xfs
/dev/sda13 /var/tmp xfs
/dev/sda14 /commons xfs


In the new setup, I have consolidated /usr/local into /usr so otherwise it is similar to the old.

I am sure it is something simple I am missing...[/code]
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Fri Jan 18, 2013 12:40 am    Post subject: Reply with quote

Code:
I have mounted /dev/sdb1 (my new disk) to /boot
sounds odd. / in the sda3 filesystem with /dev/sdb1 (and /dev/sda1?) mounted at /boot?
Suggest boot cd, mount the sdb disk's gentoo partitions at /mnt/gentoo, enter chroot, emerge grub (2), install to sdb, leavimg sda out of it. shortcuts often take longer :) .
_________________
Defund the FCC.
Back to top
View user's profile Send private message
trixtrax
n00b
n00b


Joined: 06 May 2010
Posts: 7

PostPosted: Fri Jan 18, 2013 1:23 am    Post subject: Reply with quote

Thanks, DONAHUE.

I have booted off the livedvd and since GRUB 1 is only available I am just going to try to use that. I created a chroot environment and used mount --bind to bind mount dev and proc into the tree there. Having chrooted into that env I ran grub-install --no-floppy /dev/sdb whcih gave me
Code:
Could not find device for /boot: Not found or not a block device.


So I tried grub --no-floppy manually.
Code:
grub> root (hd1,0)

 Filesystem type unknown, partition type 0x83
grub> setup (hd1)

Error 17: Cannot mount selected partition


I don't understand this error since I can mount the drive fine and xfs_check on the partition is clean. [/code]
Back to top
View user's profile Send private message
trixtrax
n00b
n00b


Joined: 06 May 2010
Posts: 7

PostPosted: Fri Jan 18, 2013 1:27 am    Post subject: Reply with quote

This is over usb so maybe this is the issue?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Fri Jan 18, 2013 2:02 am    Post subject: Reply with quote

run:
Code:
grub
find /boot/grub/stage1
should return an answer in the form (hdx,y); using the values retuirned for x,y:
Code:
root (hdx,y)
should tell you about an xfs file system
Code:
setup (hdx)
should tell you successful, sectors embedded
Code:
quit

I've done lots of grub installs to usb flash and usb hard drives never a problem other than hitting the right drive. Not yet on usb3 though.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Fri Jan 18, 2013 2:13 am    Post subject: Reply with quote

oops, legacy grub and an xfs boot partition is not going to happen IIRC.
If you booted the live dvd and entered the chroot; unmask and keyword for grub-2.00-r1 and emerge and use it
_________________
Defund the FCC.
Back to top
View user's profile Send private message
nellson
n00b
n00b


Joined: 24 Jun 2004
Posts: 52

PostPosted: Mon Feb 25, 2013 3:51 pm    Post subject: Reply with quote

This thread looks like it might have the audience I need? I just set up a /dev/md1 raid1 with meta data 0.90 for compatibility with grub 1, using reiserfs3 and have my boot flag set. Thought I had it all, but went to run "grub" to install and it was not found. Discovered I must have upgraded to Grub 2 because I do have all of it's commands. Here are the outputs of the various verifications I have looked at.

Does say anything to a grub savvy user?

goonie ~ # grub2-install /dev/md1
Path `/boot/grub2' is not readable by GRUB on boot. Installation is impossible. Aborting.

goonie ~ # mdadm -D /dev/md1
/dev/md1:
Version : 0.90
Creation Time : Fri Feb 22 12:42:26 2013
Raid Level : raid1
Array Size : 260992 (254.92 MiB 267.26 MB)
Used Dev Size : 260992 (254.92 MiB 267.26 MB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Mon Feb 25 07:49:21 2013
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 718be764:1e68d5f9:beb8d48d:2f3a878b (local to host goonie)
Events : 0.35

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 0 0 1 removed

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 524159 261056 fd Linux raid autodetect

/dev/md1 on /boot type reiserfs (rw)
Back to top
View user's profile Send private message
nellson
n00b
n00b


Joined: 24 Jun 2004
Posts: 52

PostPosted: Mon Feb 25, 2013 3:53 pm    Post subject: Reply with quote

I forgot, the grub2-install did do this:

goonie ~ # ls /boot/grub2/
i386-pc locale
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum