You are not logged in.

#1 2014-05-20 16:46:34

0liver
Member
Registered: 2014-05-20
Posts: 37

# grub-install /dev/sda :: error: command not found.

Hi, I'm following this install guide using the latest arch live cd (20140501)

http://www.danynativel.com/blog/2013/02 … ypted-ssd/

all went well until this step

---
Configure the bootloader
Install GRUB2 to hard-drive

# grub-install /dev/sda
---

error: command not found.

get the same error with # grub2-install /dev/sda

Offline

#2 2014-05-20 17:00:49

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: # grub-install /dev/sda :: error: command not found.

Did you install grub in the chroot? If so, are you in the chroot when you execute that command? Also, look at the official guide for pointers @ https://wiki.archlinux.org/index.php/Install_guide

Offline

#3 2014-05-20 17:22:53

0liver
Member
Registered: 2014-05-20
Posts: 37

Re: # grub-install /dev/sda :: error: command not found.

after succesful pacstrap and a few mounts (as shown in mentioned guide) i'm now running in

# arch-chroot /mnt

can't find a way to install grub2

tried
# pacman -Sy grub2
# pacman -S grub2-common grub2-bios
etc
error target not found

edit 1: it would install grub (grub-1:2.02.beta2-3), but I dont know if it is grub2

other test-installs work, e.g.
#pacman -S libvorbis

edit2: ok, thanks, it worked with
# pacman -Sy grub

Last edited by 0liver (2014-05-20 17:34:39)

Offline

#4 2014-05-20 17:35:31

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,864
Website

Re: # grub-install /dev/sda :: error: command not found.

Don't use outdated third-.party installation guides. Use the wiki.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2014-05-20 17:39:46

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: # grub-install /dev/sda :: error: command not found.

WorMzy wrote:

Don't use outdated third-.party installation guides. Use the wiki.

This. If you had used the Beginners' Guide or the Installation Guide you would have learned that the correct command is "pacman -S grub" (not grub-bios as in the blog you were trying to use).

You should also read more about pacman. Specifically, to learn why "pacman -Sy <package>" is a bad idea.

ArchWiki wrote:

Warning: When installing packages, do not refresh the package list without upgrading the system (i.e. pacman -Sy package_name); this can lead to dependency issues. See #Partial upgrades are unsupported and https://bbs.archlinux.org/viewtopic.php?id=89328.

Last edited by 2ManyDogs (2014-05-20 17:42:12)

Offline

#6 2014-05-20 17:39:50

DrShame
Member
Registered: 2014-04-26
Posts: 21

Re: # grub-install /dev/sda :: error: command not found.

When i pacstraped an Arch installation, i usually solved Grub by exiting the chroot environment, updating grub from the host distro, then booting to Arch and installing grub from there again.

Last edited by DrShame (2014-05-20 17:40:55)

Offline

#7 2014-05-20 22:07:14

0liver
Member
Registered: 2014-05-20
Posts: 37

Re: # grub-install /dev/sda :: error: command not found.

thanks for your replies. (the y in pacman -Sy in this case didn't do any harm.)

I went much further in the guide. of course i try to understand every command before I used it.
for today I stopped at gnome installation (lost wifi connection; driver problem? using a T60 nowhitelist-bios intel wlan-card; works great with nʇunqn). more soon.

everything looks good so far - except

#mkswap where I tried to use .../by_uuid/...

(because my installation is on an external 2TB usb-disk to be used to boot different notebooks, -
and who knows if it is sda (if no internal disk present), sdb, or sdc,
while Dany used /dev/sdX in his guide. (may start a new thread on this topic.)

Last edited by 0liver (2014-05-20 22:11:57)

Offline

#8 2014-05-21 07:47:48

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: # grub-install /dev/sda :: error: command not found.

0liver wrote:

thanks for your replies. (the y in pacman -Sy in this case didn't do any harm.)

I went much further in the guide. of course i try to understand every command before I used it.
for today I stopped at gnome installation (lost wifi connection; driver problem? using a T60 nowhitelist-bios intel wlan-card; works great with nʇunqn). more soon.

everything looks good so far - except

#mkswap where I tried to use .../by_uuid/...

(because my installation is on an external 2TB usb-disk to be used to boot different notebooks, -
and who knows if it is sda (if no internal disk present), sdb, or sdc,
while Dany used /dev/sdX in his guide. (may start a new thread on this topic.)

Please open a new thread for these specific issues; opening one thread and throwing all your problems in there as you go is not appreciated smile

Offline

#9 2014-05-21 14:01:22

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: # grub-install /dev/sda :: error: command not found.

Seeming that you was using a old third party guide. I would just start again from scratch following the Beginners Guide or the Installation Guide

Last edited by Kartious (2014-05-21 14:01:43)

Offline

Board footer

Powered by FluxBB