SUMMARY: ls acting odd on mount point files

From: Trevor Osatchuk <Trevor.Osatchuk_at_pscl.com>
Date: Fri, 07 Dec 2001 12:59:29 -0700

Well I was a little quick to go to the list on this one. I was getting the
list of a directory that started with 'a'. Why was I so confused? In an ls
I saw the directory named "amlas_db.tar". Yes, that's right. Someone in
their infinite wisdom named a directory with a .tar at the end. I was
looking for the info on a file, but it was a directory.

Thanks to Dan Harrington for this suggestion on how to move a directory
using pax:

# pax -rw <src_dir> <dst_dir>

Also thanks to Mandell Degerness who guessed correctly that I was getting a
listing from a directory.

Original post follows:


I have a harddrive that is externally connected to my Alpha that is mounted
in the file system. I am running 4.0d. The mount point is
/usr/smalldir/bigdir. The files used to reside in bigdir, but as they are
files that don't ever need to be backed up I wanted to put them on a
different drive and then mount them so that I could decrease the size of the
/usr dump. So, I mounted the drive to /mnt did a gtar -cvpf
/usr/smalldir/bigdir | gtar -xvf - from the /mnt directory to move them.

Is there an easier way besides tarring from the directory and piping to ( cd
/mnt ; gtar -xvpf - )?

Anyhoo, that put the files in /mnt/usr/smalldir/bigdir. I went into bigdir
and did cd .. * and repeated until all of the files and directories were in
/mnt. I umount'ed /mnt and then mounted the partition to /usr/bigdir/small
dir after deleting the files and directories there. Now to the crux of my
problem. When I do a `ls a*` I get something like this:

000001ofl.wtl
025049ofl.wtl
pscl_wtl.tar

This is not all of the files I have, but obviously none of the ones here
start with 'a'. I have tried this in bash, chs and sh in case I was running
into some kind of shell peculiarity, but the result is the same. Also, on
another machine where I have not yet performed this action I get the proper
response. So, why do I get these strange results? Did I mess something up
with my convoluted moving procedure?

Any insight would be apprecitated.

Trevor Osatchuk
Process Solutions Canada Ltd.
Support and Integration Analyst
(780) 452-2227 Ext. 286
trevor.osatchuk_at_pscl.com

Any man whose errors take ten years to correct is quite a man.
          - J. Robert Oppenheimer, speaking of Albert Einstein
Received on Fri Dec 07 2001 - 20:01:06 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT