I just switched from 32Bit to 64Bit Kerner using this Tutorial https://wiki.debian.org/CrossGrading.
However, I am missing the reboot command (probably a lot more commands are missing). And yes I am logged in as root.
How can this be fixed?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI just switched from 32Bit to 64Bit Kerner using this Tutorial https://wiki.debian.org/CrossGrading.
However, I am missing the reboot command (probably a lot more commands are missing). And yes I am logged in as root.
How can this be fixed?
A 32 to 64 bit hot upgrade procedure has to be performed with some care.
Essentially what happened is that you are in the middle of the migration procedure and have a mixed environment between libraries of one architecture and binaries of another, and then some commands could not be installed, and others were the library installed do not match anymore the binaries. (e.g. 64 bits binaries with 32 bits libraries for instance)
After booting the 64 bits kernel, and upgrading the dpkg/apt binaries to 64 bits, the migration itself from 32 bits commands to 64 has to be done almost in one go in order to have a stable environment, either with a script, or with the help of statically linked binaries (or a mix of both).When I performed the migration, besides the instructions I used a mix of busybox, mc and debootstrap to allow me to correct mistakes made without losing control of the environment.
Once you lost control of the environment, the alternative would be to finish the migration with a live CD were it an important server.
If you continue to test this, eventually you will find the right steps to do a complete hot migration for 32 bit to 64 bits. (I am making the assumption you are doing tests)
Since echo is a built-in bash command, depending on the way the kernel was built, you might be able to reboot (as root) the machine with:
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger
Be aware the system is in an unusable state, and won't startup again, except from another boot partition or boot medium.
uname -m -bash: uname: command not found
and the file /bin/rm is not available.