I'm running CentOS 6.5 in a VirtualBox VM. Recently, I ran out of space for my virtual hard disk. To remedy this, I decided to create a second hard disk for the
/usr directory. I mounted that and copied over files as root with
rsync -a /usr.bak /usr. This seemed to have preserved all file ownership and permissions.
However, now I'm getting weird permission issues. While I can boot the system just fine, various things don't work, like:
- The network adapter doesn't work
sudo service network restartfails while "Determining IP information for eth0."
- Doing an ACPI shutdown no-longer pops up the same dialog in Gnome.
- I see some "/usr/bin/logger: Permission denied" errors.
I had disabled SELinux earlier, so I don't think this is interfering. I also tried to fix permissions by running this as root, but the problem persists:
for i in `rpm -qa`;do rpm --setperms $i;done
What could have been messed up in my copying files using
rsync to this new mount point? Anything I can do to repair things? Note that this is a development sandbox, so I'm not super concerned if a fix would involve a non-ideal security setup.