Search code examples
linuxredhatmount

Missing /root directory in RHEL Linux


Somehow /root directory is missing(not mounted) in my rhel Linux box. Can anyone suggest how to re-mount /root?

bash-3.1# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.1 (Tikanga).

Solution

  • Often /root will simply be a subdirectory of /

    Have a look at the last column of df /root The output on my machine indicates that /root is a subdirectory of /

    If /root is missing the solution may be as simple as logging as root for the first time or running a mkdir /root