View previous topic :: View next topic |
Author |
Message |
trixtrax n00b
Joined: 06 May 2010 Posts: 8
|
Posted: Fri Jan 18, 2013 12:00 am Post subject: Grub2 error: Path `/boot/grub2' is not readable by GRUB... |
|
|
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.
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Jan 18, 2013 12:40 am Post subject: |
|
|
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 |
|
|
trixtrax n00b
Joined: 06 May 2010 Posts: 8
|
Posted: Fri Jan 18, 2013 1:23 am Post subject: |
|
|
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 |
|
|
trixtrax n00b
Joined: 06 May 2010 Posts: 8
|
Posted: Fri Jan 18, 2013 1:27 am Post subject: |
|
|
This is over usb so maybe this is the issue? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Jan 18, 2013 2:02 am Post subject: |
|
|
run:
Code: | grub
find /boot/grub/stage1 | should return an answer in the form (hdx,y); using the values retuirned for x,y:should tell you about an xfs file systemshould tell you successful, sectors embedded
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Jan 18, 2013 2:13 am Post subject: |
|
|
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 |
|
|
nellson n00b
Joined: 24 Jun 2004 Posts: 66
|
Posted: Mon Feb 25, 2013 3:51 pm Post subject: |
|
|
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 |
|
|
nellson n00b
Joined: 24 Jun 2004 Posts: 66
|
Posted: Mon Feb 25, 2013 3:53 pm Post subject: |
|
|
I forgot, the grub2-install did do this:
goonie ~ # ls /boot/grub2/
i386-pc locale |
|
Back to top |
|
|
|