Linux & Windows Tips, Tutorials, , Ideas

LVM How-to: Adding a new partition Linux

Initial setup

To begin, let’s define our goals: We have a partition (mounted as /), which we want to extend from 7G to 16G. We will do this by following these steps:

  1. Partition the new disk
  2. Create New Physical Device (pvcreate)
  3. Extend the existing volume group
  4. Extend the logical volume
  5. Extend the filesystem (ext4 in my case)

Read more about LVM How-to: Adding a new partition Linux

Share Button

Linux / UNIX: Change File Permissions Recursively ( conditional )

How do I recursively change files with 777 permissions to 755 in /home/user/demo directory? I have a number of files in this directory and I need to change permission from 0777 to only if that file has 777 permissions. Is there an easy way out to achieve this on a Linux or Unix-like systems? ToRead more about Linux / UNIX: Change File Permissions Recursively ( conditional )[…]

Share Button