Tag Info

New answers tagged

0

By default CentOS 7 uses the xfs filesystem. The utility debugfs will not work for filesystems other than ext2/ext3/ext4 If the file is still opened by a process you can restore the file using the open filedescriptor: lsof |egrep "COMMAND|keystone.conf.disabled" cp /proc/<pid>/fd/### /var/tmp/keystone.conf.disabled


21

You can use RPM to see what RPM that file belongs to: $ rpm -qf /etc/redhat-release centos-release-7-0.1406.el7.centos.2.5.x86_64 You can then fix it using yum: $ yum reinstall centos-release Might not work If the RPM that was used to do this install is no longer available then the above will not work: $ yum reinstall ...


3

It should be okay. You can re-create the file. The content of the file is: [root@server ~]# cat /etc/centos-release CentOS Linux release 7.0.1406 (Core) [root@server ~]# This file belongs to the package centos-release-7-0.1406.el7.centos.2.5.x86_64, so as long as you haven't removed that package, just touching this file manually should be fine. ...


0

The grep program reads a line at a time into memory. A line is defined as everything after one newline character and up to the next one. With binary data, there could be a very large space without any newlines. You could try using grep -z. This tells grep to treat null bytes as the input record separator instead of newlines. Extremely large chunks of binary ...


2

Your partition table claims that the size of the disk is only 0.7 tb despite the fact that it is really 2.7 and has a partition using that much space. Use gdisk to create a new, empty partition table, then recreate those two partitions with the exact same start and end sectors and type codes, and that should fix it.



Top 50 recent answers are included