• 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. Complete Guide to Configuring iSCSI in CentOS / RHEL 7
  2. Determining disk usage in Linux using “du” command
  3. CentOS / RHEL 7 : systemd-analyze command to find booting time delays
  4. logname Command Examples in Linux
  5. CentOS / RHEL 7 : How to disable Transparent Huge pages (THP)
  6. Unmounting a Windows Share Fails in Linux
  7. What is ioremap()
  8. pmap Command Examples in Linux
  9. How to install zip/unzip package in Linux CentOS/RHEL 7 and 8
  10. CentOS / RHEL 6 : How to rebuild Initial Ramdisk Image

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright