LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 04-02-2011, 01:09 PM   #1
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
Grub from arch installer fails to install


(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.
 
Old 04-02-2011, 04:11 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Where did you get the .iso from?

It seems that you are referring to the archboot iso

http://ftp.osuosl.org/pub/archlinux/...hboot/2011.02/

although it could be a newer version generated by someone else.

Did you complete the install except for grub?

This may help: https://bbs.archlinux.org/viewtopic.php?pid=799930

and

https://wiki.archlinux.org/index.php/Grub#GRUB_Error_17

in this section: /boot/grub/stage1 not read correctly
 
Old 04-02-2011, 04:26 PM   #3
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
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
 
Old 04-02-2011, 05:59 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You can just use super grub disk to boot arch and reinstall grub to the MBR from your arch install.

http://www.supergrubdisk.org/super-grub-disk/

https://wiki.archlinux.org/index.php...r_installation
 
Old 04-02-2011, 06:04 PM   #5
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
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.
 
Old 04-02-2011, 06:11 PM   #6
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by TheStarLion View Post
But... Grub isn't in the MBR in the first place. That's the whole problem - getting grub to install there.
That's ok. SGD will be able to boot your arch partition even if grub is not in the MBR.
 
Old 04-04-2011, 10:01 AM   #7
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
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.
 
Old 04-04-2011, 11:03 AM   #8
ichase
Member
 
Registered: Jul 2010
Location: Virginia Beach, Virginia
Distribution: Arch
Posts: 67
Blog Entries: 4

Rep: Reputation: 3
Just to make sure, you did select dev/sda0 to write grub to correct? I have installed Arch on a couple of different machines and never had this issue.

Is this the only distro you currently have on the HDD? In looking at your output for /dev/sda0 I'm not seeing where you have anything else installed.

What do you have on sda2 and 3?

All the best,

Ian
 
Old 04-04-2011, 03:02 PM   #9
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
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.
 
Old 04-04-2011, 04:50 PM   #10
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by TheStarLion View Post
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.
Is your arch partition's /etc/fstab valid?
 
Old 04-04-2011, 04:51 PM   #11
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
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.
 
Old 04-04-2011, 05:51 PM   #12
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by TheStarLion View Post
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.
 
Old 04-04-2011, 05:53 PM   #13
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
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.
 
Old 04-13-2011, 07:39 AM   #14
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
Found to be a bug in the Arch Install Framework (Answer from Arch Forums).
Thanks for your help all the same.
 
  


Reply

Tags
grub arch



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
dropline-installer fails to find aspell, cdparanoia, etc., on my install of 12.2 adityavpratap Slackware 12 06-15-2009 11:03 AM
GRUB - only Centos installer is able to install right ? Vilius Red Hat 4 04-04-2009 04:39 AM
GRUB - only Centos installer is able to install right ? Vilius Linux - Software 2 03-07-2009 05:38 AM
Fedora Installer Crashes after selecting where to install GRUB simonpcook Fedora 2 05-18-2008 07:09 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 05:30 PM.

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