Page 48 - RHEL8 BOOK
P. 48

5. To check the file system type of partition
          [root@sun ~]# blkid /dev/sda12

          6. create a folder & mount the partition to use
          [root@sun ~]# mkdir /salesdept
          [root@sun ~]# mount /dev/sda12 /salesdept

          7. Check the mounted partition
          [root@sun ~]# mount

          8. Write the data inside the partition
          [root@sun ~]# cd /salesdept
          [root@sun salesdept]#touch t1 t2 t3
          [root@sun salesdept]#mkdir dir1 dir2
          [root@sun salesdept]#ls

           9. Converting from ext2 and ext3
          [root@sun ~]#umount /salesdept
          [root@sun ~]#tune2fs –j /dev/sda9

          10. To check the file system type of partition
          [root@sun ~]# blkid /dev/sda9

          11. Converting from ext3 and ext2
          [root@sun ~]#umount /salesdept
          [root@sun ~]#tune2fs  –O ^has_journal /dev/sda9
          [root@sun ~]# mount /dev/sda9 /salesdept
          [root@sun ~]# mount

          11. Converting ext3 to ext4
          [root@sun ~]#umount /salesdept
          [root@sun ~]# tune2fs -O extents,uninit_bg,dir_index  /dev/sda9
          [root@sun ~]# blkid /dev/sda9
          [root@sun ~]# e2fsck -pf
          [root@sun ~]# mount /dev/sda9 /salesdept


























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