You are not logged in.
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
What is the output of `pacman -Ql mkinitcpio`
Offline
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
I /sbin in your PATH?
Offline
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
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.
Offline
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
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
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
It's working now 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