LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2010, 10:00 PM   #1
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Rep: Reputation: 0
a question about appserver


Hi all
I have a strange problem

I have a computer in the university and I have root access to this pc.
Iam trying to install Cblas library on it. But it gives me a starnge error

/usr/local/atlas is read only file system.

I tried doing mount -l
and it gave me that

appserver1:/export/d1/Linux/doe on /usr/local type nfs4 (ro,sec=.......)

I think what it means that the main server directory is mounted to /usr/local and it is read only.

So, how can I fix this problem to separate the two and make my /usr/local separate

Thanks in advance
Mina
 
Old 09-09-2010, 11:57 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi,

Are you 100% certain that none of the stuff under the current /usr/local
will be required? Or that it's ok with your institution if you made local
copies of whatever is there?

If no other users on that machine will need the app you could always
just install it in your home.


Cheers,
Tink
 
Old 09-10-2010, 09:00 AM   #3
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
No, Iam the only one who uses this PC. and I do not think that I will need the data in /usr/local

But how can I install the application under my home directory? it needs to add static library to /usr/local/

Thanks for your help
Mina
 
Old 09-10-2010, 06:38 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by zarzor_2010 View Post
No, Iam the only one who uses this PC. and I do not think that I will need the data in /usr/local
If you have data under /usr/local your varsity has
a weird layout :} for its network file-systems.


Quote:
Originally Posted by zarzor_2010 View Post
But how can I install the application under my home directory? it needs to add static library to /usr/local/

Thanks for your help
Mina

I have no idea how Cblas works its install, but if you compile
it from source you can just tell it to install to your home; and
you can then add it's lib-path to LD_LIBRARY_PATH in your bashrc.


Cheers,
Tink
 
Old 09-11-2010, 10:46 PM   #5
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you so much

I tried umount /usr/local to unmount my local folder from the srver folder

But I have another question please. is the umount i used is permenant. or it will come back after I restart my pc.

If it is not permanent, How I can make it permanent?

Thanx alot for your help
Mina
 
Old 09-12-2010, 12:50 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Depends on how it's being mounted. Most likely one of
two alternatives:
a) Via a line in /etc/fstab
b) Using autofs, check /etc/auto.net or /etc/auto.misc
(in doubt check auto.master whether it includes any
other files in your distro).

In either case you just need to comment the line that
pertains to the share you're seeing.



Cheers,
Tink
 
Old 09-16-2010, 07:19 PM   #7
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you so much for your reply

However I did not find the line that mount this appserver. Here is my auto.master

PHP Code:
net -hosts
/misc /etc/auto.misc
/- /etc/auto.direct
/home ldap://ldap4/automountMapName=auto_home,dc=doe,dc=carleton,dc=ca -fstype=
+auto.master 

Here is my /etc/auto.net

PHP Code:
key="$1"

# add "nosymlink" here if you want to suppress symlinking local filesystems
# add "nonstrict" to make it OK for some filesystems to not mount
opts="-fstype=nfs,hard,intr,nodev,nosuid"

# Showmount comes in a number of names and varieties.  "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it.  "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail -n +2"

for P in /bin /sbin /usr/bin /usr/sbin
do
        for 
M in showmount kshowmount
        
do
                if [ -
x $P/$M ]
                
then
                        SMNT
=$P/$M
                        
break
                
fi
        done
done

[ -x $SMNT ] || exit 1

# Newer distributions get this right
SHOWMOUNT="$SMNT --no-headers -e $key"

$SHOWMOUNT LC_ALL=C sort -k 1 | \
        
awk -v key="$key-v opts="$opts-- '
        BEGIN   { ORS=""; first=1 }
                { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
        END     { if (!first) print "\n"; else exit 1 }
        ' 
sed 's/#/\\#/g' 
Here is my /etc/auto.misc

PHP Code:
cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#linux          -ro,soft,intr           ftp.example.org:/pub/linux
#boot           -fstype=ext2            :/dev/hda1
#floppy         -fstype=auto            :/dev/fd0
#floppy         -fstype=ext2            :/dev/fd0
#e2floppy       -fstype=ext2            :/dev/fd0
#jaz            -fstype=ext2            :/dev/sdc1
#removable      -fstype=ext2            :/dev/hdd 
Thank you so much for your help.
 
Old 09-16-2010, 09:37 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
So what about auto.net & fstab?
 
Old 09-17-2010, 09:36 AM   #9
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you all for trying to help me of this issue.

here is my /etc/fstab
PHP Code:
/dev/VolGroup00/LogVol00 ext3 defaults 1 1
LABEL
=/boot /boot ext3 defaults 1 2
tmpfs 
/dev/shm tmpfs defaults 0 0
devpts 
/dev/pts devpts gid=5,mode=620 0 0
sysfs 
/sys sysfs defaults 0 0
proc 
/proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0 
here it is my auto.net

PHP Code:
key="$1"

# add "nosymlink" here if you want to suppress symlinking local filesystems
# add "nonstrict" to make it OK for some filesystems to not mount
opts="-fstype=nfs,hard,intr,nodev,nosuid"

# Showmount comes in a number of names and varieties.  "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it.  "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail -n +2"

for P in /bin /sbin /usr/bin /usr/sbin
do
        for 
M in showmount kshowmount
        
do
                if [ -
x $P/$M ]
                
then
                        SMNT
=$P/$M
                        
break
                
fi
        done
done

[ -x $SMNT ] || exit 1

# Newer distributions get this right
SHOWMOUNT="$SMNT --no-headers -e $key"

$SHOWMOUNT LC_ALL=C sort -k 1 
        
awk -v key="$key-v opts="$opts-- '
        BEGIN   { ORS=""; first=1 }
                { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
        END     { if (!first) print "\n"; else exit 1 }
        ' 
sed 's/#/\\#/g' 

thanks
Mina
 
Old 09-17-2010, 10:04 AM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Sorry, meant auto.misc. But that .net doesn't look like any autofs
config file I've ever seen - it's a shell script of sorts?

What OS & version are you running?
 
Old 09-17-2010, 10:04 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Sorry, meant auto.misc. But that .net doesn't look like any autofs
config file I've ever seen - it's a shell script of sorts?

What OS & version are you running?
 
Old 09-17-2010, 10:16 AM   #12
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
/etc/auto.misc is

PHP Code:
cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#linux          -ro,soft,intr           ftp.example.org:/pub/linux
#boot           -fstype=ext2            :/dev/hda1
#floppy         -fstype=auto            :/dev/fd0
#floppy         -fstype=ext2            :/dev/fd0
#e2floppy       -fstype=ext2            :/dev/fd0
#jaz            -fstype=ext2            :/dev/sdc1
#removable      -fstype=ext2            :/dev/hdd 
I have checked my /etc/auto.net and it is the same as before
here it is again:

PHP Code:
#!/bin/bash

# $Id: auto.net,v 1.8 2005/04/05 13:02:09 raven Exp $

# This file must be executable to work! chmod 755!

# Look at what a host is exporting to determine what we can mount.
# This is very simple, but it appears to work surprisingly well

key="$1"

# add "nosymlink" here if you want to suppress symlinking local filesystems
# add "nonstrict" to make it OK for some filesystems to not mount
opts="-fstype=nfs,hard,intr,nodev,nosuid"

# Showmount comes in a number of names and varieties.  "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it.  "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail -n +2"

for P in /bin /sbin /usr/bin /usr/sbin
do
        for 
M in showmount kshowmount
        
do
                if [ -
x $P/$M ]
                
then
                        SMNT
=$P/$M
                        
break
                
fi
        done
done

[ -x $SMNT ] || exit 1

# Newer distributions get this right
SHOWMOUNT="$SMNT --no-headers -e $key"

$SHOWMOUNT LC_ALL=C sort -k 1 | \
        
awk -v key="$key-v opts="$opts-- '
        BEGIN   { ORS=""; first=1 }
                { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
        END     { if (!first) print "\n"; else exit 1 }
        ' 
sed 's/#/\\#/g' 

Thank you
Mina
 
Old 09-17-2010, 10:38 AM   #13
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
follow this link to get autofs details

http://www.redhat.com/docs/manuals/l...nfs-mount.html
 
Old 09-17-2010, 11:05 AM   #14
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I have checked the autofs files in the univ PC. (/etc/auto.master, /etc/auto.misc, /etc/auto.net) and there is no entery for that file

appserver1:/export/d1/Linux/doe on /usr/local type nfs4 (ro,sec=.......)

is there a way to check a log file on the univ linux to see from where it is got mounted?

Thanks
Mina
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
basic html question - download link to files on my webpage question Davno Linux - Server 5 12-25-2009 08:24 AM
linux distro question & mysql install question natalie.aloi Linux - Newbie 5 07-19-2009 09:28 PM
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 05:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 02:51 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 03:02 PM


All times are GMT -5. The time now is 03:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration