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 12-12-2011, 02:02 AM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
can't see files on mounted disk with ls I can with mc


Hi,

Strange thing. I'm working with an HP packaged cluster 2x DL380 G3 and an MSA500. Yesterday I started a file transfer of a huge directory tree with rsync. Today I rebooted the system and went to check whether the MSA was mounted properly, no problem but when I go to the directory itself and do ls I can see . and .. . Nothing else. However with df -h I can see 40% of the disk space is used. In Midnight Commander I can see all the files??

How can that be?

By the way I resumed the rsync process since not all is copied yet and it starts nicely where the process was "interrupted" yesterday evening by ^c

So the files are really there I just can't see them with ls (and du)

edit: some terminal output:

Code:
root@box:/home/user/somedirectory# ls -tlar
totaal 8
drwxr-xr-x 30 user user 4096 dec 11 09:51 ..
drwxr-xr-x  2 user user 4096 dec 11 09:57 .
root@box:/home/user/somedirectory# du -h
4,0K	.
root@box:/home/user/somedirectory# df -h 
Bestandssysteem       Grtte Gebr Besch Geb% Aangekoppeld op
/dev/cciss/c0d0p1     4,6G  3,5G  961M  79% /
tmpfs                1013M     0 1013M   0% /lib/init/rw
udev                 1009M  140K 1009M   1% /dev
tmpfs                1013M     0 1013M   0% /dev/shm
/dev/cciss/c0d0p5     265G  196M  251G   1% /home
/dev/cciss/c0d1       1,6T  610G  924G  40% /home/user/somedirectory
root@box:/home/user/somedirectory#
Little note: you can see that ls outputs a total of 8 (files and/or directories?) that's not correct, it should be about 30 directories and a few files.

Last edited by bucovaina78; 12-12-2011 at 02:15 AM.
 
Old 12-12-2011, 04:25 AM   #2
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Could you present the result of the 'mount' command ??

Cheers.
 
Old 12-12-2011, 04:34 AM   #3
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
Code:
user@box:~$ mount
/dev/cciss/c0d0p1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/cciss/c0d0p5 on /home type ext3 (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/cciss/c0d1 on /home/user/somedirectory type ext3 (rw)
user@box:~$
 
Old 12-12-2011, 04:50 AM   #4
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Hmm strange
Could you either present the result from fdisk ???
++
 
Old 12-12-2011, 05:01 AM   #5
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
Code:
user@box:~$ mount
/dev/cciss/c0d0p1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/cciss/c0d0p5 on /home type ext3 (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/cciss/c0d1 on /home/user/somedirectory type ext3 (rw)
user@box:~$
Just to show you I'm not kidding a dump of the mc screen. It's actually showing the correct contents of the directory I'm not seeing with ls or du

Code:
  Links     Bestand     Opdracht     Opties     Rechts
┌<─ /home/user ──────────.[^]>┐┌<─ /home/user/somed ────.[^]>┐
│'n  Naam   │Groot│ Wijz.tijd ││'n  Naam   │Groot│ Wijz.tijd │
│/..        │--DIR│ov 13 16:45││/..        │--DIR│ec 11 09:51│
│/.cache    │ 4096│ov 16 19:16││/1         │ 4096│ov 12  2009│
│/.config   │ 4096│ov 16 17:40││/2         │ 4096│ov 12  2009│
│/.dbus     │ 4096│ov 13 16:47││/3         │ 4096│ei  9  2010│
│/.gconf    │ 4096│ov 16 19:15││/4         │ 4096│ov 12  2009│
│/.gconfd   │ 4096│ov 16 20:52││/5         │ 4096│eb  6  2010│
│/.gnome2   │ 4096│ov 16 17:33││/9         │ 4096│eb  6  2010│
├─────────────────────────────┤├─────────────────────────────┤
│UP--DIR                      ││UP--DIR                      │
└─────────── 264G/265G (99%) ─┘└────────── 895G/1615G (55%) ─┘
Hint: Geef als volgt je gebruikersnaam op met ftps: 'cd /#ftp:
root@box:/home/user#                                       [^]
 1Help  2Menu  3Be~jk 4Be~rk 5Kopie 6He~em 7Mkdir 8Ve~er
 
Old 12-12-2011, 08:10 AM   #6
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
Oink??? Problem gone, just like that?!

What could it have been?
 
  


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
Mounted disk still reports 0 bytes on Rhel 5 even when files are delete boberey Linux - Newbie 4 05-10-2011 12:37 AM
Monitor mounted disk Blisk Linux - Software 1 03-09-2011 08:50 AM
Is the disk partition mounted or not mounted? Kenarkies Linux - Kernel 3 01-16-2010 03:06 AM
ntfs hard drive mounted. but doesnt show all files , tar files ataomega Linux - Software 1 08-28-2009 01:47 PM
Permissions on mounted disk simanyay Linux - Software 2 03-30-2004 11:23 AM

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

All times are GMT -5. The time now is 05:09 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