[SOLVED] Grub from arch installer fails to install
ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
(C'n'p of the same question asked by me on the Arch forums in case this turns out not to be Arch-centric, or people here happen to find a solution first.)
Using the pre-release core (i686) iso 2011.03.23 because the standard iso doesn't have the drivers to support my wireless device (though neither seems to have a driver for the wired interface, interestingly)
When at the 'Install Bootloader' step, it attempts to build the GRUB device map, then the arch installer quits, printing this at the bottom along with a console prompt:
Code:
ERROR: device_is_raid needs a blockdevice as $1 ( given)
Attempted to then run 'grub-install' from said console as follows:
Code:
[root@archiso ~]# grub-install /dev/sda --root-directory=/mnt
Probing devices to guess BIOS drives. This may take a long time.
The file /mnt/boot/grub/stage1 not read correctly/
[root@archiso ~]#
I found I had to pass the root-directory argument, as otherwise it couldn't find the stage1 file.
This hard disk is not using raid in any way, and for reference has a partition layout as follows
/dev/sda1 ntfs as PQSERVICE
/dev/sda2 ntfs as SYSTEM RESERVED
/dev/sda3 ntfs as Acer
/dev/sda4 extended partition containing:
/dev/sda5 ext3 as /
/dev/sda6 swap
The first three were already present on the disk with Windows 7, which incidentally continues to boot without issue. The only modification made was to shrink the Acer (aka C:\) partiton with GParted to make room for Arch.
Would rather use GRUB than other bootloaders unless unavoidable.
Thanks for any help offered.
Last edited by TheStarLion; 04-02-2011 at 01:11 PM.
I got it from here: http://releng.archlinux.org/isos/
A thread I found on the Archlinux forums which seems to have vanished since, but I saved the link.
All parts of the installation worked perfectly - only GRUB failed.
I'm not entirely sure if the links are relevent, but that may be because I've never had to try anything like this myself.
Below is the output of fdisk -l /dev/sda. Maybe you can see something in it I can't.
Code:
[root@archiso ~]# fdisk -l /dev/sda
Disk /dev/sda@ 500.1GB, 500107862046 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimum): 512 bytes / 512 bytes
Disk identifier: 0xc10cbc70
Device Boot Start End Blocks Id System
/dev/sda1 2048 27265023 13631488 27 Hidden NTFS WinRE
/dev/sda2 * 27265024 27469823 102400 7 HPFS/NTFS/exFAT
/dev/sda3 27469824 551757823 262144000 7 HPFS/NTFS/exFAT
/dev/sda4 551757824 976773119 212507648 5 Extended
/dev/sda5 972578816 976773119 2097152 82 Linux Swap / Solaris
/dev/sda6 551759872 972578815 210409472 83 Linux
Partition table entries are not in disk order
But... Grub isn't in the MBR in the first place. That's the whole problem - getting grub to install there.
Unless the super grub disk handles installing it differently, I have to admit I'm not optimistic about it's success chances... but I'll give it a go in the morning and see what happens.
No luck. Attempting to install SGD's grub and most attempts to boot Arch from it result in an Error 15, fstab not found.
Attempting to boot Arch by manually specifying the Grub menu.lst on Arch's partition results in a Partition not mountable error.
I'm certain, though I've always known is just /dev/sda instead of appending a 0.
Arch is indeed the only one on there.
sda2 and 3 are ones that came with the pre-installed Windows. 2 is marked as System Reserved, and I have no idea if it's necessary or not so I left it alone, and 3 is Windows 7 itself.
sda1, labelled PQSERVICE, appears to be some kind of recovery thing, again something I'm not entirely sure if I actually need or not, so it's been left alone.
No luck. Attempting to install SGD's grub and most attempts to boot Arch from it result in an Error 15, fstab not found.
Attempting to boot Arch by manually specifying the Grub menu.lst on Arch's partition results in a Partition not mountable error.
It should be. Will check again to be sure, but I recheck my fstab entries carefully.
It could be the cd/dvd entries I added in preparation for HAL later on, but AFAIK that shouldn't make a difference.
It should be. Will check again to be sure, but I recheck my fstab entries carefully.
It could be the cd/dvd entries I added in preparation for HAL later on, but AFAIK that shouldn't make a difference.
If they do happen to contain references to uuid's,change them to /dev/sdaX until you can get grub installed.
I don't trust or use UUIDs, despite any reasons for them. They're always set to the /dev/sdaX system, if nothing else because that way I actually understand it.
I did check it - besides the two HAL lines for cd/dvd, it's definitely valid.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.