Posts

Showing posts with the label CentOS 7

Recover from emergency mode on Centos 7

 CentOS 7 may enter emergency mode if there are issues with the file system or the system fails to boot correctly. To recover from emergency mode, you can follow these steps: 1. **Check the File System**:    First, you need to check the file system for errors. Run a file system check (fsck) on the root file system:    ```bash    fsck /dev/mapper/centos-root    ```    Replace `/dev/mapper/centos-root` with the appropriate device for your root file system. You can find this information by running `lsblk` or `df -h`. 2. **Remount the File System**:    After running `fsck`, remount the file system in read-write mode:    ```bash    mount -o remount,rw /    ``` 3. **Check Disk Space**:    Verify that you have enough disk space. Use `df -h` to check the available disk space on your partitions. 4. **Examine Journal Logs**:    Check the systemd journal logs to identify any errors:    ```bash    journalctl -xb    ```    This command will display recent system logs, and you can scroll through the

CentOS 7 default extras repository doesn't contain any packages

 CentOS 7 has the "extras" repository enabled by default, but this repository typically doesn't contain many packages. The "extras" repository for CentOS primarily provides packages that are not part of the base distribution but are still considered important for some users. It may contain updates and additional packages, but it's not as extensive as the base CentOS repository. If you're looking for additional packages or need more comprehensive software, you may need to enable and use the EPEL (Extra Packages for Enterprise Linux) repository, which is a community-driven repository that provides a wide range of additional software for CentOS. To enable the EPEL repository on CentOS 7, you can use the following commands: ```bash sudo yum install epel-release ``` After enabling EPEL, you can install additional packages from there. Remember to use the packages from EPEL with care, as they are not officially supported by CentOS and might receive updates and