LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   can't see files on mounted disk with ls I can with mc (https://www.linuxquestions.org/questions/linux-general-1/cant-see-files-on-mounted-disk-with-ls-i-can-with-mc-918269/)

bucovaina78 12-12-2011 01:02 AM

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.

tizzef 12-12-2011 03:25 AM

Could you present the result of the 'mount' command ??

Cheers.

bucovaina78 12-12-2011 03:34 AM

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:~$


tizzef 12-12-2011 03:50 AM

Hmm strange :)
Could you either present the result from fdisk ???
++

bucovaina78 12-12-2011 04:01 AM

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


bucovaina78 12-12-2011 07:10 AM

Oink??? Problem gone, just like that?!

What could it have been?


All times are GMT -5. The time now is 10:48 PM.