1863056 Members
1447 Online
110446 Solutions
New Discussion

Re: Mounting CDROM from

 
SOLVED
Go to solution
John Jayaseelan
Super Advisor

Mounting CDROM from

Good Noon,

Could any one tell how to mount a cdrom from another server?

Thanks
John Jayaseelan
18 REPLIES 18
Pete Randall
Outstanding Contributor

Re: Mounting CDROM from

John,

mount server:/cdrom_mountpoint /local_cdrom_mountpoint should do it.


Pete

Pete
John Jayaseelan
Super Advisor

Re: Mounting CDROM from

Pete,

Please tell what should be value for the mount_point, is the mount directory.

Received the following while trying to mount the device.

# mount /dev/dsk/c0t11d0 /cdrom
/dev/dsk/c0t11d0: unrecognized file system
[cctest01]: /root
# mount /dev/rdsk/c0t11d0 /cdrom
mount: /dev/rdsk/c0t11d0 is an invalid operand
[cctest01]: /root

Thanks
John Carr_2
Honored Contributor

Re: Mounting CDROM from

you need to make sure the cd is mounted locally on the server first generally it will be mounted /cdrom or /SD_CDROM

mount | grep cdrom

if not ioscan -fnCdisk to find the device

mount /dev/dsk/c1t2d0 /cdrom

then do from the remote server as pete said.

:-) John.
John Jayaseelan
Super Advisor

Re: Mounting CDROM from

Hi,

Mounting on the local system seems to be fine; the error is due to incorrect device file.

Following message received during the mount from remote server.

# mount cctest01:/cdrom /cdrom
Permission denied

Thanks
John Carr_2
Honored Contributor

Re: Mounting CDROM from

need to make an entry in /etc/exports file for /cdrom then do an exportfs -a


John.
Elmar P. Kolkman
Honored Contributor

Re: Mounting CDROM from

What you are missing is the exporting of /cdrom on the NFS server.

What you need to do is edit /exports and put in the line:
/cdrom

And then run a 'exportfs -a'.
Also make sure the NFS server is indeed an NFS server. It should run the nfsd process. If not, change /etc/rc.config.d/nfsconf and change the value of NFS_SERVER to 1. Then run /sbin/init.d/nfs.server start.
The same must be done on the NFS client, but with the NFS_CLIENT variable and /sbin/init.d/nfs.client start.

After that, do a showmount -e cctest01 to see if /cdrom is exported succesfully on the server.

Every problem has at least one solution. Only some solutions are harder to find.
John Jayaseelan
Super Advisor

Re: Mounting CDROM from

Following are information from the remote server.

# ps -ef|grep -i nfsd
root 1873 1 0 Dec 13 ? 4:13 /usr/sbin/nfsd 4
root 1874 1873 0 Dec 13 ? 4:15 /usr/sbin/nfsd 4
root 1880 1873 0 Dec 13 ? 4:22 /usr/sbin/nfsd 4
root 1878 1873 0 Dec 13 ? 4:18 /usr/sbin/nfsd 4
root 1890 1 0 Dec 13 ? 5:25 /usr/sbin/rpc.pcnfsd


Entry in /etc/exports file

/cdrom -ro,root=lclass1



# exportfs -av
re-exported /cdrom
re-exported /ultima
re-exported /ultima2
exportfs error: /ultima/extrasp: No such file or directory
re-exported /home/ultima
re-exported /home/proadm
re-exported /ultima
exportfs error: /ultima/master/client/doctemps: parent-directory (/ultima) alrea
dy exported
re-exported /home/informix/unloads
re-exported /home/informix
re-exported /home/informix/dump

# mount cctest01:/cdrom /cdrom
Permission denied
[lclass1]: /root

Thanks
Mark Grant
Honored Contributor

Re: Mounting CDROM from

Check that there is nothing stopping you doing this in /etc/inetd.conf. Also, make sure that the permissions on /cdrom are correct on the system you are mounting on.
Never preceed any demonstration with anything more predictive than "watch this"
John Jayaseelan
Super Advisor

Re: Mounting CDROM from

Mark,

Could you please explain what do you mean by â nothing stopping you doing this in /etc/inetd.conf.'

Both the servers are having the following settings on /etc/rc.config.d/nfsconf.

NFS_CLIENT=1
NFS_SERVER=1

The permissions for the remote /cdrom dir is

dr-xr-xr-x 1 root sys 10240 Nov 12 1997 cdrom

I did change below, but still gives the same message
drwxrwxrwx 2 root sys 96 Jul 24 1998 cdrom

Than
John Jayaseelan
Super Advisor

Re: Mounting CDROM from

Mark,

Could you please explain what do you mean by â nothing stopping you doing this in /etc/inetd.conf.'

Both the servers are having the following settings on /etc/rc.config.d/nfsconf.

NFS_CLIENT=1
NFS_SERVER=1

The permissions for the remote /cdrom dir is

dr-xr-xr-x 1 root sys 10240 Nov 12 1997 cdrom

I did change below, but still gives the same message
drwxrwxrwx 2 root sys 96 Jul 24 1998 cdrom

Than
Mark Grant
Honored Contributor

Re: Mounting CDROM from

I have no idea what I meant by that! What I really meant was /var/adm/inetd.sec

See if there is anything denying you access to nfs in there.
Never preceed any demonstration with anything more predictive than "watch this"
John Jayaseelan
Super Advisor

Re: Mounting CDROM from

Mark,

The file /var/adm/inetd.sec on the remote server contains the following entry.

dtspc allow 127.0.0.1 loopback

Elmar P. Kolkman
Honored Contributor
Solution

Re: Mounting CDROM from

Try commenting out everything after /cdrom in the /etc/exports file on the NFS server and then re-run the exportfs -a.

I think the problem is caused by a DNS / /etc/hosts problem which resolves your NFS client to something other then the server you specified. By commenting out export parameters for /cdrom, it's available to any host. If that makes it work, you can try again to add export parameters, for instance with the fully qualified domain name of the NFS client, instead of the short name.
Every problem has at least one solution. Only some solutions are harder to find.
John Jayaseelan
Super Advisor

Re: Mounting CDROM from

Hi Kolkman,

The exports file is changed below. Still not able to mount from other server.

/cdrom -ro,root=lclass1:cctest02
#/ultima2 -root=ccwin01:bedrock
#/home/proadm -root=ccwin01
#/ultima -root=ccprod01:ccwin01

# exportfs -av
re-exported /cdrom


If the changes need to be done are very specific, please let me know.

Thanks
Craig Smith_13
Frequent Advisor

Re: Mounting CDROM from

A couple observations:

1) On the exports list, I always end the root list with a ":", i.e.
/cdrom -ro,root=lclass1:cctest02:


2) When mounting the cdrom, use the -r option, i.e. mount -r remote_server:/cdrom /cdrom

3) Ping your remote server name and make sure the ip address is correctly identified.

Chris Vail
Honored Contributor

Re: Mounting CDROM from

I want to emphasize what Elmar wrote about the /etc/hosts file. It doesn't really matter if the DNS entries are correct, you must have a valid entry in /etc/hosts. You might need a fully qualified name in it.


Chris
Sridhar Bhaskarla
Honored Contributor

Re: Mounting CDROM from

Hi John,

Looks like lclass1 is being seen as a different host than you allowed in cctest01's exports file. Enable connection logging on cctest01 and see how lclass1 is coming as. Add that IP/hostname to your exports and re-export.

on cctest01

#inetd -l
#tail -f /var/adm/syslog/syslog.log

from lclass1 do

$telnet cctest01

Observe the connection that logged as in syslog.log of cctest01. Add it to your exports file and re-export.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
John Jayaseelan
Super Advisor

Re: Mounting CDROM from

The issue is solved by adding the fully qualified name. Thank you all for your help.

John Jayaseelan