LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2014, 11:26 PM   #1
arunmg
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Rep: Reputation: Disabled
CentoOS Directory Not listing


Hi All


I am using CentOS 7 and its running on Vmware Esxi.I have configured Mysql in that.After an mean while i tried to login in to the server with putty.The login was success but when i execute cd / then list all Dir by executing ls the ls command hangs and showing only a white curser.So it hangs there.but i can list ohter /etc Dir
 
Old 11-21-2014, 04:29 PM   #2
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 620

Rep: Reputation: 142Reputation: 142
I have Centos6 with MySQL (not really sure the relevance of mysql?) but I am accessing it via ssh. So a number of differences between our approaches.

Can you confirm that this is what you are trying to do and that the command hangs after the ls command? A screen shot would be helpful

Quote:
[tim@Homebase ~]$ cd /
[tim@Homebase /]$ ls
bin cgroup dev home lost+found misc net proc sbin srv tmp var
boot data etc lib media mnt opt root selinux sys usr
[tim@Homebase /]$
 
Old 11-24-2014, 12:52 AM   #3
arunmg
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi Tim

i can list all the directory with ls command but when ever i tried to ls in / it hangs there.but the machine is not hanged i can exit the putty and reconnect it .i can list the home folder and all dir .
just posted the screenshot of that.

http://tinypic.com/r/2955pgk/8
 
Old 11-24-2014, 02:09 AM   #4
arunmg
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi Timl

The ls command has hangs only when list the " / " .I access this through direct console there also the problem is same.but i can list the content of other dir such as home /etc ,/dev etc but however i list the / Directories it hangs there.i can close my ssh connection and reconnect it all other functions are working well.expect this one.

Screen Shot



http://i60.tinypic.com/n20apc.jpg
 
Old 11-24-2014, 04:54 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,354
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by arunmg View Post
The login was success but when i execute cd / then list all Dir by executing ls the ls command hangs and showing only a white curser.So it hangs there.but i can list ohter /etc Dir
First of all you should not be logged in over SSH (or any network protocol) as root user on any (networked) machine: create an unprivileged user, then configure Sudo, then log in over SSH as unprivileged user and proceed. Secondly your first admin reflex should be to look at the system and daemon log files for clues. Third please refrain from using screen shots to illustrate things. Fourth what does this return?:

Code:
which strace || yum install strace
/usr/bin/strace -o /tmp/strace.txt -ff /bin/ls /
/usr/bin/find / -maxdepth 1 -ls | /usr/bin/tee /tmp/find.txt
*Note this installs "strace" if not already found and you have several logs to attach as plain text to your reply: /tmp/{strace,find}.tx* .
 
Old 11-26-2014, 12:38 AM   #6
arunmg
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi unSpawn

Thanks for the information.

which strace || yum install strace-----/usr/bin/strace

/usr/bin/strace -o /tmp/strace.txt -ff /bin/ls /--- returs the / Directories


/usr/bin/find / -maxdepth 1 -ls | /usr/bin/tee /tmp/find.txt--- returns nothing just hangs
 
Old 11-28-2014, 01:04 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,354
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
You have several logs to attach as plain text to your reply: /tmp/{strace,find}.tx* .
 
Old 12-01-2014, 10:26 PM   #8
arunmg
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi

Two txt file has been attached.
Attached Files
File Type: txt find.txt (1.6 KB, 9 views)
File Type: txt strace.txt (8.4 KB, 4 views)
 
Old 12-03-2014, 10:24 PM   #9
arunmg
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi

Finally i have a doubt in the cifs-utils .i have installed cifs-utils in the server to mount a windows dir. i have permanently mounted a windows share to the /mnt to hold the mysql backup.Is there any issue with that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RHEL5 Apache Directory Listing for a directory thorinn Red Hat 8 02-02-2010 09:01 AM
ftp directory listing gerna Linux - Newbie 1 08-01-2008 01:19 PM
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Directory Listing mattbeekler Linux - Software 8 07-22-2003 02:27 PM
apache 2 directory listing jwatco2001 Linux - Software 5 06-07-2003 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration