You are not logged in.

#1 2010-11-10 00:47:15

edward.taylor89
Member
From: UK
Registered: 2010-10-21
Posts: 34

[SOLVED]mkinitcpio command not found!??

Hello all,

I receive the following when trying to rebuild the stock kernel:

-----------------------------------------
[taylor-unix@Legion Desktop]$ sudo mkinitcpio -p kernel26
sudo: mkinitcpio: command not found
[taylor-unix@Legion Desktop]$
------------------------------------------

The same error occurs even after the re-installation of 'mkinitcpio'.

I've had the same problem with 'hwdetect', regardless of whether I've reinstalled it.

I seem to have commands that do not work on this system, like 'shutdown' for example.. 'shutdown: command not found'. Perhaps I've missed installing a crucial package?

I need help..

My sincerest thanks in advance.

Last edited by edward.taylor89 (2010-11-10 17:39:46)


'The perfect blossom is a rare thing. You could spend your life looking for one, and it would not be a wasted life.'

Offline

#2 2010-11-10 00:50:29

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [SOLVED]mkinitcpio command not found!??

What is the output of `pacman -Ql mkinitcpio`


neutral

Offline

#3 2010-11-10 00:53:16

edward.taylor89
Member
From: UK
Registered: 2010-10-21
Posts: 34

Re: [SOLVED]mkinitcpio command not found!??

Here as follows:

------------------------------------------
mkinitcpio /etc/
mkinitcpio /etc/mkinitcpio.conf
mkinitcpio /etc/mkinitcpio.d/
mkinitcpio /etc/mkinitcpio.d/example.preset
mkinitcpio /lib/
mkinitcpio /lib/initcpio/
mkinitcpio /lib/initcpio/functions
mkinitcpio /lib/initcpio/hooks/
mkinitcpio /lib/initcpio/hooks/btrfs
mkinitcpio /lib/initcpio/hooks/consolefont
mkinitcpio /lib/initcpio/hooks/dmesg
mkinitcpio /lib/initcpio/hooks/keymap
mkinitcpio /lib/initcpio/hooks/memdisk
mkinitcpio /lib/initcpio/hooks/net
mkinitcpio /lib/initcpio/hooks/resume
mkinitcpio /lib/initcpio/hooks/sleep
mkinitcpio /lib/initcpio/hooks/udev
mkinitcpio /lib/initcpio/init
mkinitcpio /lib/initcpio/init_functions
mkinitcpio /lib/initcpio/install/
mkinitcpio /lib/initcpio/install/autodetect
mkinitcpio /lib/initcpio/install/base
mkinitcpio /lib/initcpio/install/btrfs
mkinitcpio /lib/initcpio/install/consolefont
mkinitcpio /lib/initcpio/install/dmesg
mkinitcpio /lib/initcpio/install/dsdt
mkinitcpio /lib/initcpio/install/filesystems
mkinitcpio /lib/initcpio/install/fw
mkinitcpio /lib/initcpio/install/ide
mkinitcpio /lib/initcpio/install/keymap
mkinitcpio /lib/initcpio/install/memdisk
mkinitcpio /lib/initcpio/install/net
mkinitcpio /lib/initcpio/install/pata
mkinitcpio /lib/initcpio/install/pcmcia
mkinitcpio /lib/initcpio/install/resume
mkinitcpio /lib/initcpio/install/sata
mkinitcpio /lib/initcpio/install/scsi
mkinitcpio /lib/initcpio/install/sleep
mkinitcpio /lib/initcpio/install/udev
mkinitcpio /lib/initcpio/install/usb
mkinitcpio /lib/initcpio/install/usbinput
mkinitcpio /lib/initcpio/udev/
mkinitcpio /lib/initcpio/udev/01-memdisk.rules
mkinitcpio /lib/initcpio/udev/load-modules.sh
mkinitcpio /sbin/
mkinitcpio /sbin/mkinitcpio
mkinitcpio /usr/
mkinitcpio /usr/share/
mkinitcpio /usr/share/man/
mkinitcpio /usr/share/man/man5/
mkinitcpio /usr/share/man/man5/mkinitcpio.5.gz

-------------------------------------------------


'The perfect blossom is a rare thing. You could spend your life looking for one, and it would not be a wasted life.'

Offline

#4 2010-11-10 01:14:26

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,660
Website

Re: [SOLVED]mkinitcpio command not found!??

I /sbin in your PATH?

Offline

#5 2010-11-10 03:34:01

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: [SOLVED]mkinitcpio command not found!??

Definately sounds like a PATH issue.  Usually normal users (non root) do not have /sbin or /usr/sbin on their path.  The commands you mentioned are likely found in those directories.

Offline

#6 2010-11-10 04:49:29

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [SOLVED]mkinitcpio command not found!??

jowilkin wrote:

Definately sounds like a PATH issue.  Usually normal users (non root) do not have /sbin or /usr/sbin on their path.  The commands you mentioned are likely found in those directories.

Really? I'm on a Fedora machine right now and /sbin is in my path. Could be different with Arch but I don't have access to one right now to check.


neutral

Offline

#7 2010-11-10 13:42:24

edward.taylor89
Member
From: UK
Registered: 2010-10-21
Posts: 34

Re: [SOLVED]mkinitcpio command not found!??

I found 'mkinitcpio' within /sbin, however, it it a shell script. Is it supposed to be a shell script? When I execute the script after 'cd /sbin', nothing happens.

------------------------------------------
[taylor-unix@Legion ~]$ cd /sbin
[taylor-unix@Legion sbin]$ mkinitcpio -p kernel26
bash: mkinitcpio: command not found
[taylor-unix@Legion sbin]$
------------------------------------------

I'd prefer to withdraw myself from simply reformatting / to reinstall arch, as this prevents me from learning new solutions to Arch-related issues.

hmm.. Would my fstab options affect the execution of scripts? I did remove 'noexec' from the ~ mount options for 'make mrproper' to work.. Perhaps I should also try removing 'nosuid' and see what happens.. I've included these options for ~ to include an extra layer of security -- preventing nasty things like rootkits from running(I know this is GNU/Linux, but just in case...)


'The perfect blossom is a rare thing. You could spend your life looking for one, and it would not be a wasted life.'

Offline

#8 2010-11-10 16:10:55

kfgz
Member
From: Supraśl, Poland
Registered: 2009-03-02
Posts: 114

Re: [SOLVED]mkinitcpio command not found!??

Is it supposed to be a shell script?

Yes.

When I execute the script after 'cd /sbin', nothing happens.

sudo ./mkinitcpio -p kernel26

Show us your PATH

echo $PATH

Offline

#9 2010-11-10 16:23:15

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: [SOLVED]mkinitcpio command not found!??

When you run a command that isn't on your path, you need to provide more than just the name of the file to execute.  The command kfgz lists above should work for you, notice he puts a './' before the name of the command.  This gives the full path to the executable.  The . is a shortcut for the current working directory, which is /sbin if you cd'd there), so this command expands to

sudo /sbin/mkinitcpio -p kernel26

You should be able to run either the command kfgz posted (if your current directory is /sbin) or the one I posted with the same results.  These will work regardless of your path.

To fix your path so that it includes sbin, you can run

PATH=$PATH:/sbin

and then try the command you have been attempting to use

sudo mkinitcpio -p kernel26

To make this change permanent, you need to edit your startup files for the shell you're using, a quick google will bring up the method for you.

Offline

#10 2010-11-10 17:39:16

edward.taylor89
Member
From: UK
Registered: 2010-10-21
Posts: 34

Re: [SOLVED]mkinitcpio command not found!??

It's working now smile Thank you!


'The perfect blossom is a rare thing. You could spend your life looking for one, and it would not be a wasted life.'

Offline

Board footer

Powered by FluxBB