Remote mount of a cdrom
Burn Alting
burn at goldweb.com.au
Wed Sep 25 18:37:10 EST 2002
On Wed, 25 Sep 2002 18:09, you wrote:
> Burn Alting wrote:
> > Hi Peoples,
> >
> > I have two Redhat 7.2's. One has a CDRW and the other just a plain CD.
> > I want to mount the 'plain' CD on the other system.
> >
> > I've edited the 'plain' CD systems /etc/exports file with
> > / host_cdrw(rw,no_root_squash)
> > and reexported all filesystems. Then, on host_cdrw, I run
> >
> > mount \
> > -o ro host_cd:/mnt/cdrom /mnt/cdrom
> >
> > This fails with 'Permission denied' and on the plain CD system the log
> > shows Sep 25 14:37:32 host_cdrw rpc.mountd: authenticated mount request
> > from 192.168.1.100:862 for /mnt/cdrom (/)
> > Sep 25 14:37:32 host_cdrw rpc.mountd: getfh failed: Operation not
> > permitted
> >
> > Reading between the lines, the get file handle code says you can do this.
> >
> > Can any one suggest what I need to do?
> >
> > Thanks in advance
> >
> > Burn
>
> You didn't select any level of "firewalling" when you installed RH7.2, did
> you. If you select anything other that "none", then NFS will not work on
> your machine. If this is the case, disable IPCHAINS or IPTABLES (or both),
> in your start up directory, using, for example, ntsysv. Make sure that your
> machines have other protection from the nasties on the Internet before you
> do this!
>
> Cheers,
>
> Bob Edwards.
Bob,
That's still not the problem ... I've never used RH's firewalling (I use
monmotha's quite successfully - ie I always select none in the firewalling
installation of RH).. and I can cross mount other disk filesystems happily,
it's just that I get this getfh failure when the directory I'm attempting to
mount is the where the cd mounts IE
host_cd # mount /dev/cdrom /mnt/cdrom # mounts locally fine
host_nocd # mount -o ro host_cd:/mnt/cdrom /mnt/cdrom
this generates a failure on 'host_nocd' and the syslog for 'host_cd' shows a
successfull authentication but fails with the getfh problem. If I were to
host_cd # umount /dev/cdrom /mnt/cdrom
host_nocd # mount -o ro host_cd:/mnt/cdrom /mnt/cdrom
this works fine .... ie I have nfs access to 'host_cd' root filesystem.
Thanks
Burn
More information about the linux
mailing list