can't run csh in newly mounted file system

can't run csh in newly mounted file system

Post by Colin Kenda » Fri, 25 Mar 1994 21:40:36



I am using a Sparc 10 running SunOS 4.1.3.

An associate has brought an external 1 gigabyte disk, planning to copy our
development environment onto it and do some development for us at his office in
California.

We created a directory, /lhome, and mounted the disk with

mount /dev/sd2h /lhome

and copied the OS, compiler, libraries, source code, and Makefiles onto it.

So far, so good. But now when we cd to /lhome or anything under it, we cannot run
cshell scripts, which are an essential part of the development process.

In particular, typing '/bin/csh' results in the cryptic message:

getwd: can't stat ..

If we cd to /lhome, and say 'ls -ld /' , it says:

drwxr-xr-x 39 root         1024 Mar 24 06:33 /

But if we say 'ls -ld ..' , it says:

ls: ..: Permission denied

The problem is obviously in the way /lhome is connected to the root directory.

mount -p shows:

/dev/sd0a               /                  4.2 rw                1 1
/dev/sd0g               /usr               4.2 rw                1 2
/dev/sd0h               /tmp               4.2 rw                1 3
/dev/sd2h               /lhome             4.2 rw                1 4

which looks to this untrained eye as if /lhome is mounted analogously to /usr and
/tmp; but we have no corresponding problems in /usr and /tmp.

Our sysadmin is stumped. Can anyone help?

--
Warmest regards,
Colin Kendall.
Phone (813) 371-0811 extension 6842

 
 
 

can't run csh in newly mounted file system

Post by Part » Thu, 14 Apr 1994 22:40:56



> We created a directory, /lhome, and mounted the disk with
> mount /dev/sd2h /lhome
> and copied the OS, compiler, libraries, source code, and Makefiles onto it.
>  But now when we cd to /lhome or anything under it, we cannot run
> cshell scripts, which are an essential part of the development process.
> In particular, typing '/bin/csh' results in the cryptic message:
> getwd: can't stat ..
> But if we say 'ls -ld ..' , it says:
> ls: ..: Permission denied

Have you checked the permissions of the .. directory, which
is / (your root) directory?
And is the C shell in /bin/csh or (only) in /lhome/bin/csh?

--

EDV-Zentrum, Universitaet fuer Bodenkultur
Nussdorfer Laende 11                      Please correct me if I'm wrong!
A-1190 Wien, Austria (Europe)             Make love, not flame wars.  :-)

 
 
 

can't run csh in newly mounted file system

Post by Bob Vicke » Thu, 21 Apr 1994 00:23:21


|>> We created a directory, /lhome, and mounted the disk with
|>> mount /dev/sd2h /lhome
|>> and copied the OS, compiler, libraries, source code, and Makefiles onto it.
|>>  But now when we cd to /lhome or anything under it, we cannot run
|>> cshell scripts, which are an essential part of the development process.
|>> In particular, typing '/bin/csh' results in the cryptic message:
|>> getwd: can't stat ..
|>
|>> But if we say 'ls -ld ..' , it says:
|>> ls: ..: Permission denied
|>
|>Have you checked the permissions of the .. directory, which
|>is / (your root) directory?
|>And is the C shell in /bin/csh or (only) in /lhome/bin/csh?
|>

I have also seen these symptoms when the mount point has the wrong
permissions. Type
        umount /lhome
        ls -ld /lhome
and check you have world rx.

--
Regards,
Bob
-------------------------------------------------------------------------------

+ University of London Computer Centre, + Phone: (UK)   071-405 8400 ext 386
+ 20 Guilford Street,                   +               +44 71-405 8400 ext 386
+ LONDON, WC1N 1DZ, England             + Fax:          071-242 1845

 
 
 

1. Problem running 'waisq' in 'chroot' file system

: The obvious answer is that I forgot to include something critical
: within the 'chroot' portion of the file system.  Unfortunately 'waisq'
: doesn't produce any error-messages indicating that it didn't find some
: critical file.  It produces normal-looking output indicating that it
: read the proper files, which contain nothing useful.

Do you build index within chroot too and use local search?
If not, then there are probably test for file existence (ir/irsearch.c)
failed.
--
D.Mishin

2. any ideas with an ati rage pro

3. What file do I edit to make 'switchdesk' see a newly-installed KDE 2??

4. while loop question

5. Mounting 'foreign' file-systems

6. Point and Click Development System

7. why does linux allow a 'mount' of unclean file systems (ext2) ??

8. 1 * AVIUGzlux-*** 3 Simple Questions on Solaris2.5.1

9. ``df: cannot read table of mounted file systems'' Help!

10. Problem running mknod on a NFS mount file system

11. how to pass '$' to modem in chat script (run by csh)?

12. 'insmod' won't load newly compiled modules

13. What's 'side effects' of Ksh built-ins?