• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

arch-chroot: command not found

by admin

arch-chroot command is used to create chroot jail which changes the root directory from the current one (in the virtual system booted from the ISO image) to the real one that is on your disk. Thus, the rest of the commands will consider your disk as the currently booted system and apply the changes. Note that the command prompt changes slightly to reflect the change:

# arch-chroot /mnt /bin/bash

In case you encounter the below error:

arch-chroot: command not found

you can install the package shown below as per your choice of distribution.

Distribution Command
Debian apt-get install arch-install-scripts
Ubuntu apt-get install arch-install-scripts
Alpine apk add arch-install-scripts
Arch Linux pacman -S arch-install-scripts
Kali Linux apt-get install arch-install-scripts
Fedora dnf install arch-install-scripts
Docker docker run cmd.cat/arch-chroot arch-chroot

The arch-install-scripts package is a small suite of scripts aimed at automating some menial tasks when installing Arch Linux. These scripts can also aid when debootstrapping a Debian-based system. This package contains genfstab which assists with generating a fstab and arch-chroot which assists with setting up bind mounts and disabling services via policy.d.

Filed Under: Linux

Some more articles you might also be interested in …

  1. Linux OS Service ‘squid’
  2. RHEL / CentOS : How to rebuild LVM from Archive (metadata backups)
  3. debugfs Command Examples in Linux
  4. How to Change Kernel Semaphore Limits in CentOS/RHEL
  5. CentOS / RHEL 7 : How to boot into rescue mode from installation DVD/ISO
  6. Adding Static Routes On Various *NIX (Linux,AIX,HP-UX)
  7. CentOS / RHEL : How to view the commands executed in yum history command output
  8. /dev/shm permission change after node reboot
  9. e2undo Command Examples in Linux
  10. Linux OS service ‘dhcpd’

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright