LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-04-2004, 11:54 AM   #1
fr_baker
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
can't see root file system with list command


I'm running Suse Linux 8.0 and just came across a problem where I can't list the file system files or folders at the root level.

I can still navigate the file system, but this is all I see with a list command:

mysql:/ # ll
total 33
-rw-rw-rw- 1 root root 0 Mar 30 16:32
drwxr-xr-x 21 root root 656 Jun 3 10:43 ..
drwxr-xr-x 2 root root 48 Feb 21 2003 .qt
-rw-r--r-- 1 root root 19553 Feb 21 2003 .xftcache
lrwxrwxrwx 1 root root 12 Feb 21 2003 cdrom -> /media/cdrom
lrwxrwxrwx 1 root root 10 Feb 21 2003 dvd -> /media/dvd
lrwxrwxrwx 1 root root 13 Feb 21 2003 floppy -> /media/floppy
drwxrwxrwx 4 root root 96 May 12 14:17 restore
drwxr-xr-x 2 root root 48 Jun 3 10:07 test
-rw-rw-rw- 1 root root 0 Feb 25 17:33 È
-rw-rw-rw- 1 root root 0 Jan 14 11:09 ä

No /var , /opt , /etc , /home , /usr or anything else is listed.

Is this a corrupt index file?
How can I remedy this problem?
Thank you,
fr_baker
 
Old 06-04-2004, 12:03 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Did you type cd / ?

Last edited by homey; 06-04-2004 at 12:04 PM.
 
Old 06-04-2004, 02:13 PM   #3
fr_baker
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Yes - I can still navigate the file system with the CD command, it just doesn't list or show the file system folders.
I plan to run fsck this weekend and hopefully that will resolve the problem.
Thanks.
 
Old 06-04-2004, 02:35 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
From the output you listed you are not in the root directory when you ran the command. You either have to

Code:
cd /
first then run ll or

Code:
ll /
 
Old 06-04-2004, 02:51 PM   #5
fr_baker
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Yes - my initial post shows my "ll" command at the root:

mysql:/ # ll
 
Old 06-04-2004, 02:58 PM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Did you

ll /

or not?

What's listed is not in any root filesystem. Please post the output of the example code above.

Last edited by darthtux; 06-04-2004 at 02:59 PM.
 
Old 06-05-2004, 09:29 AM   #7
oldyas
Member
 
Registered: Jun 2004
Location: Bristol, UK
Distribution: SuSe
Posts: 53

Rep: Reputation: 15
darthtux: I think "mysql:/ # ll" == "mysql:/where-ever/ # ll /".

But this does indeed look nothing like any normal root filesystem, and much more like someone's home directory, although even if it were someone's ~, it's still screwed. Why would read-only devices be writable? The biggest hint is the lines

-rw-rw-rw- 1 root root 0 Feb 25 17:33 È
-rw-rw-rw- 1 root root 0 Jan 14 11:09 ä

It's been ages since I've had to run fsck, but I do recall empty files with top-bit-set charicter filenames being spontaneously created when i-nodes get messed up.

fr_baker: I think fsck is, as you say, your best bet. How did this start (did you just log in and find it like this, or had anything unusual occured)?

Last edited by oldyas; 06-05-2004 at 09:32 AM.
 
Old 06-05-2004, 09:38 AM   #8
phaserx
LQ Newbie
 
Registered: Jun 2004
Location: The city of Lost Angels
Distribution: RedHat and Gentoo
Posts: 21

Rep: Reputation: 15
Absolutely fsck before things get even more fscked up.. (sorry for the lame pun)

How long has it been since the last fsck and is this machine used pretty intenesely (lot's of files moving around, etc..)?

Don't be surprised if you're missing some files after you fsck too..
 
Old 06-05-2004, 12:39 PM   #9
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Is your username mysql or is that the hostname of your computer?
 
Old 06-07-2004, 11:53 AM   #10
fr_baker
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Running fsck cleared the problem - all folders now list. Including the
-rw-rw-rw- 1 root root 0 Feb 25 17:33 È
-rw-rw-rw- 1 root root 0 Jan 14 11:09 ä
unfortunately.

To answer some of your questions:
This server is our primary web server so it does get a lot of use.
I have never manually run fsck on this server, but it does get rebooted periodically.
I don't know of anything that changed on this server, but what drew my attention to the problem initially is the backup failed.

Thank you for all of your feedback.
fr_baker
 
Old 06-07-2004, 08:27 PM   #11
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
fr_baker,

That is interesting. I didn't know an inode table could get like that. Glad you got it fixed.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to select and move mutiple files from list in text file steve.paris Linux - Newbie 11 11-27-2005 12:44 PM
command to list all users of the system?? simi_544 Linux - Networking 9 09-29-2005 03:00 AM
Is there a command to list how many CPUs a system has? Locura Linux - General 2 02-25-2005 11:28 AM
Boot Error: Root file system /dev/root adtomar Linux - Networking 0 12-27-2004 10:50 AM
How to get list of system users from command line? tictocdoc Linux - General 3 03-12-2004 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:07 AM.

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
Open Source Consulting | Domain Registration