Page 51 - RHEL8 BOOK
P. 51

Disk Label

          1. To Assign label name on partition
          [root@sun ~] # e2label /dev/sda8 /song

          2. To check label name of partition
          [root@sun ~] # e2label /dev/sda8

          3. Mount the partition with label name
          [root@sun ~] # mount LABEL=/songs  /myfolder

          4. Check mount point with label
          [root@sun ~] # mount –l grep /songs

          5. permanently mounting the partition with label name
          [root@sun ~] # vi /etc/fstab
          LABEL=/songs         /myfolder      ext4   default       0      0

















          6. To see the utilization of disk space.
          [root@sun ~] # df –hT

          7. To see the block size
          [root@sun ~] # blockdev –getbsz     /dev/sda9















                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           51
   46   47   48   49   50   51   52   53   54   55   56