Skip to main content

Add additional space to ext4 filesystem in RHEL

 To add additional space to an ext4 filesystem on a Red Hat Enterprise Linux (RHEL) system, you can use the following steps:

  1. Use the command df -h to check the current usage and available space on the filesystem.
  2. Use the command fdisk -l to check the available disk space on the system.
  3. If there is free space on the disk, you can use the command fdisk /dev/sda (replacing /dev/sda with the appropriate device name) to create a new partition with the free space.
  4. Use the command mkfs.ext4 /dev/sdaX (replacing /dev/sdaX with the appropriate device name) to create a new ext4 filesystem on the new partition.
  5. Use the command mount /dev/sdaX /mnt (replacing /dev/sdaX and /mnt with the appropriate device name and mount point) to mount the new filesystem.
  6. Use the command df -h again to check the new available space on the filesystem.
  7. If you want to mount this filesystem automatically during boot, you should add an entry in the /etc/fstab file.

Please, be aware that this is a dangerous operation, if any mistake happens, it can cause data lost. It's strongly recommended to backup your data before doing this operation.




Comments

Popular posts from this blog

Compile OpenSSH 9

Install  yum install rpm-build zlib-devel openssl-devel pam-devel libselinux-devel gcc perl-devel libXt-devel gtk2-devel make -y wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.3p2.tar.gz ./configure --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/home/saz163user/ssh ./configure make make install

Use the CIA triad to protect organizations

The CIA triangle is a concept that can assist organisations think about risk while developing systems and security policies. It consists of three components that cybersecurity analysts and organisations strive to maintain: confidentiality, integrity, and availability. Maintaining an acceptable level of risk and ensuring that systems and policies are developed with these factors in mind aids in the establishment of a successful security posture, which refers to an organization's ability to manage its defence of key assets and data as well as respond to change.  Confidentiality The concept of confidentiality states that only people with permission can access particular resources or data. The application of design principles, such as the concept of least privilege, can improve secrecy inside an organisation. The least privilege principle restricts users' access to only the data they need to finish tasks relevant to their jobs. One technique to keep private data secure and secret i...

People who like to be alone

People who enjoy being alone and seek solitude may exhibit a variety of personality traits. Here are some potential traits that may be present in individuals who prefer to be alone:     Independence: People who enjoy being alone may value their independence and may be comfortable making decisions and going about their daily lives on their own. They may be self-motivated and able to entertain themselves without the need for external stimuli.     Introversion: Many people who enjoy being alone may be introverted, meaning that they tend to be more inwardly focused and may get their energy from solitude rather than social interactions. Introverts may prefer to spend time alone thinking, reading, or engaging in solitary activities.Creativity: Being alone can provide an opportunity for people to tap into their creativity and to engage in activities that allow them to express themselves. People who enjoy being alone may be more inclined to engage in creative pursu...