Showing posts from August, 2020

ntfsfix fix NTFS not mount from Linux

Today, I have not mount usb external USB into Fedora 32. External USB drive is NTFS formatted.  I will installed ntfs-3g  package for fedora as below: sudo dnf install ntfs-3g ntfsprogs The first, check your device address , you run this command as below sudo fdisk -l # or lsblk -f The output device is /dev/sd XY (where X and Y are the letter of the drive's device and Y is the partition number).  So in my case /dev/sdc1 is usb  drive external NTFS formatted. you will replace "device name" with your windows partition ( ex: /dev/sdb1 or /dev/sdd1 .v.v) How to do fix it Now, Open your terminal and run command to fix a Corrupted Windows NTFS Filesystem with Linux [HuuPV@DevopsRoles ~]$ sudo ntfsfix /dev/sdc1 Mounting volume... $MFTMirr does not match $MFT (record 0). FAILED Attempting to correct errors... Processing $MFT and $MFTMirr... Reading $MFT... OK Reading $MFTMirr... OK Comparing $MFTMirr to $MFT... FAILED Correcting differences in $MFTMirr record 0...OK Processing

Fix semanage command not found in Centos 8

 In this tutorial, I have fix semanage command not found in Centos 8. Semanage is an SELinux (Security-Enhanced Linux) management tool  Error semanage command not found in Centos 8  bash: semanage: command not found I use yum command  [root@DevopsRoles ~]# yum provides /usr/sbin/semanage The terminal output as below: Last metadata expiration check: 1:04:49 ago on Sun 09 Aug 2020 12:50:49 PM UTC. policycoreutils-python-utils-2.9-9.el8.noarch : SELinux policy core python utilities Repo        : BaseOS Matched from: Filename    : /usr/sbin/semanage It's missing policycoreutils-python-utils package in Centos 8. Now, I install package it. [root@DevopsRoles ~]# yum install policycoreutils-python-utils Once the install complete, you try semanage command on Centos 8. # man semanage OR # semanage --help I hope this helps you! have a nice day!

How to Upgrade php version on Centos 7

 In this tutorial, How to upgarde php version on Centos 7. My Server have installed php71. I will upgrade php to version php74 Type the following command to check the current version PHP. # php -v # yum list installed | grep -i php Now, Let go upgade php version to php74 If your has no remi repo, then Turn on Remi repo: # yum install Install yum-utils package # yum install yum-utils If you want to install PHP 7.1, PHP 7.2, PHP 7.3 or PHP 7.4 on CentOS 7. Just enable it as below # yum-config-manager --enable remi-php71 # yum-config-manager --enable remi-php72  # yum-config-manager --enable remi-php73 # yum-config-manager --enable remi-php74 For exmaple, I will chose php74 in this tutorial. # yum-config-manager --enable remi-php74 Update Centos 7  server. # yum update Checking version one more time # php -v You have update php version to php74 running on Centos 7 Server.