Cannot run ls on the root directory

General support questions
Post Reply
tinker123@gmail.com
Posts: 30
Joined: 2019/02/12 20:14:54

Cannot run ls on the root directory

Post by tinker123@gmail.com » 2020/10/24 03:11:49

CentOS 7.6.180
GNOME-CLASSIC 3.28.2

I've always been able to run ls on the / directory in the system above.

Now it just hangs when I run ls. Same if I try to see the / dir with software other than the terminal.

However, I can successfully run ls on the / dir is I use sudo.

Using sudo does not work if I try to ls -l

This change happened after I cancelled a large rsync job in the / dir ( ctrl c ) and issued a reboot -f command.

I don't know if those things are the cause.

How can I restore the ability to read the / directory with ls?
CentOS 7.6.180
GNOME-CLASSIC 3.28.2

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Cannot run ls on the root directory

Post by tunk » 2020/10/24 11:39:53

Are all file systems mounted? - I've seen similar problems when they're not.
And you may want to run yum update to get 7.8 (and if you enable the CR repo you will get 7.9).

tinker123@gmail.com
Posts: 30
Joined: 2019/02/12 20:14:54

Re: Cannot run ls on the root directory

Post by tinker123@gmail.com » 2020/10/24 12:16:57

The problem solved itself.

I connected back to that computer this morning.

The problem was gone.

My theory is that the "cancelled" rsync still had something running, something was blocking ls from operating on /

Thanks much for responding.
CentOS 7.6.180
GNOME-CLASSIC 3.28.2

Post Reply