You are not logged in.

#1 2013-02-03 04:51:49

AlecB
Member
Registered: 2013-01-26
Posts: 114

Error installing GRUB

I'm installing Arch for the first time, and following the (excellent) Beginners' Guide. I am attempting to install GRUB for my UEFI motherboard (https://wiki.archlinux.org/index.php/Be … ide#GRUB_2). When I get to the point when I should run

# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

I get the error:

cp: cannot create regular file /boot/grub/locale/en.mo: No such file or directory

I have followed the guide to the letter until this point. What's wrong?
Thanks everyone.

Last edited by AlecB (2013-02-03 05:28:38)


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#2 2013-02-03 05:06:06

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,800
Website

Re: Error installing GRUB

AlecB wrote:

cp: cannot create regular file /boot/brub/locale/en.mo: No such file or directory

I have followed the guide to the letter until this point. What's wrong?

Typo.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2013-02-03 05:29:43

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: Error installing GRUB

Oops, that was an error in this post, not the code:) Thanks for pointing it out.


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#4 2013-02-03 05:35:04

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,800
Website

Re: Error installing GRUB

I don't use grub, so I can't be too much help.

Have you correctly generated your locale?
The file you are looking to copy does not look to be mission critical, you could always just ignore that line and continue...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#5 2013-02-03 05:40:51

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 833

Re: Error installing GRUB

I suppose he could create a directory for brub.  Then it wouldn't be a typo.


I laugh, yet the joke is on me

Offline

#6 2013-02-03 11:28:15

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 331

Re: Error installing GRUB

Beginnersguide:

# pacman -S grub-bios
# grub-install --target=i386-pc --recheck /dev/sda
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

Grub2 page:

# modprobe dm-mod
# grub-install --target=i386-pc --recheck --debug /dev/sda
# mkdir -p /boot/grub/locale
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

No wonder he has no /boot/grub/locale

Offline

#7 2013-02-03 16:14:31

Blasphemist
Member
Registered: 2013-01-17
Posts: 40

Re: Error installing GRUB

Verifying the existence of the directory /boot/grub/locale is appropriate but that is always created during the installation of the package for me. Those instructions are for english language so I hope that is the appropriate language. If not, you'll need to adjust accordingly. I guess next I'd check the source directory, /usr/share/locale/en\@quot/LC_MESSAGES for the grub.mo file. That is in my directory. If the sources exists for a copy command, and the target directory exists, it must be a permissions issue. Are you in the arch-chroot environment when doing this?

Last edited by Blasphemist (2013-02-03 16:15:28)

Offline

#8 2013-02-03 17:30:22

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: Error installing GRUB

jasonwryan wrote:

I don't use grub, so I can't be too much help.

Have you correctly generated your locale?
The file you are looking to copy does not look to be mission critical, you could always just ignore that line and continue...

I think I'll try to continue without copying that file, and see what happens...


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#9 2013-02-03 17:35:46

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: Error installing GRUB

I ran the command

# mkdir -p /boot/grub/locale

and then

# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

I assume it worked now (I don't get an error.) Someone should edit the Beginners' Guide from

# pacman -S grub-bios
# grub-install --target=i386-pc --recheck /dev/sda
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

To

# pacman -S grub-bios
# grub-install --target=i386-pc --recheck /dev/sda
# mkdir -p /boot/grub/locale
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#10 2013-02-03 17:52:26

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: Error installing GRUB

Today's not my day... The very next line of code in the Beginners' Guide:

# efibootmgr -c -g -d /dev/sdX -p Y -w -L "Arch Linux (GRUB)" -l '\EFI\arch_grub\grubx64.efi'

gives error

invalid numeric value Y

What's wrong this time


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#11 2013-02-03 18:35:33

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 331

Re: Error installing GRUB

Please read the guide more carefully.  A few lines above the mentioned code:

Note: In the above command, X and Y denote the drive and partition of the UEFISYS partition. For example, in /dev/sdc5, X is "c" and Y is "5".

Installing Arch is one thing. Configuring and using Arch is a completely different chapter. You will have to do a lot personal research (is reading untill your socks fall off)
if you want to get it done.

Offline

#12 2013-02-03 20:09:12

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: Error installing GRUB

I wasn't booted in EFI before, so that was why I was having some of my problems. I am attempting to make a bootable usb drive, https://wiki.archlinux.org/index.php/Un … B_from_ISO   
But the first line of code is a bit vague.

# mkdir -p /mnt/{usb,iso}

Is "usb" the name of my usb, the location of my of my usb, the partition of my usb, or what? And what exactly is "iso"?


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#13 2013-02-03 20:22:50

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,800
Website

Re: Error installing GRUB

The command is self-explanatory; creating two directories on /mnt

Read through the rest of the page and try and get a sense of the bigger picture.
Your questions to date suggest you need to spend more time familiarising yourself with the basics, and less time blindly trying to install Arch.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#14 2013-02-03 20:27:21

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: Error installing GRUB

You're right. I guess I'll read the entire UEFI page.


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

Board footer

Powered by FluxBB