Re: mounting DVDs via NFS problem
Have fixed the problem as NFS can't export UDF filesystems so mounted the DVD as ISO9660 and it worked. Will keep "exportfs -a" in mind though as sometimes it won't play back the DVD via NFS unless I play about with exportfs a lot. Thanks! Cheers - Piers Darryl Clarke wrote: On 21/01/06, Piers Kittel <[EMAIL PROTECTED]> wrote: Hello all, Am trying to mount a DVD drive via NFS and am having problems. For note, 192.168.1.2 (hostname - destiny) is the client and 192.168.1.15 (hostname - mythtv) is the server. I have this in my /etc/exports: /media/cdrom0 192.168.1.2(ro,sync) and 192.168.1.2 is in the /etc/hosts.allow. If the DVD is not mounted, it works perfectly fine: destiny:/mnt# mount mythtv:/media/cdrom0 /mnt/mythtv destiny:/mnt# df Filesystem 1K-blocks Used Available Use% Mounted on mythtv:/media/cdrom0 1829192 1547128184472 90% /mnt/mythtv destiny:/mnt# If I unmount the above, and then mount the DVD on mythtv: mythtv:/home/piers# mount /cdrom mythtv:/home/piers# and try again on destiny, I get: destiny:/# mount mythtv:/media/cdrom0 /mnt/mythtv mount: mythtv:/media/cdrom0 failed, reason given by server: Permission denied destiny:/# and in the logs, I get: Jan 21 21:57:08 localhost kernel: UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'FIREFLY_D3', timestamp 2003/09/08 20:08 (1000) Jan 21 21:57:39 localhost rpc.mountd: authenticated mount request from destiny.10sca.intranet:923 for /media/cdrom0 (/media/cdrom0) Jan 21 21:57:39 localhost rpc.mountd: getfh failed: Operation not permitted I've googled for a long time with the last message but I can't find any help anywhere. I've tried this on my 2 Macs but had the exact same problem: Jan 21 20:34:55 localhost rpc.mountd: authenticated mount request from ukyo.10sca.intranet:982 for /media/cdrom0 (/media/cdrom0) Jan 21 20:34:55 localhost rpc.mountd: getfh failed: Operation not permitted Jan 21 21:29:59 localhost rpc.mountd: authenticated mount request from akane.10sca.intranet:972 for /media/cdrom0 (/media/cdrom0) Jan 21 21:29:59 localhost rpc.mountd: getfh failed: Operation not permitted I'm hoping you guys can tell me what I'm doing wrong here? Thanks very much in advance! just a shot in the dark, you might have to 'exportfs -a' after mounting your dvdrom to make the nfs server rehash the directory. -- ~ Darryl ~ [EMAIL PROTECTED] http://smartssa.com / http://darrylclarke.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: mounting DVDs via NFS problem
On 21/01/06, Piers Kittel <[EMAIL PROTECTED]> wrote: > Hello all, > > Am trying to mount a DVD drive via NFS and am having problems. For > note, 192.168.1.2 (hostname - destiny) is the client and 192.168.1.15 > (hostname - mythtv) is the server. > > I have this in my /etc/exports: > > /media/cdrom0 192.168.1.2(ro,sync) > > and 192.168.1.2 is in the /etc/hosts.allow. > > If the DVD is not mounted, it works perfectly fine: > > destiny:/mnt# mount mythtv:/media/cdrom0 /mnt/mythtv > destiny:/mnt# df > Filesystem 1K-blocks Used Available Use% Mounted on > > mythtv:/media/cdrom0 1829192 1547128184472 90% /mnt/mythtv > destiny:/mnt# > > If I unmount the above, and then mount the DVD on mythtv: > > mythtv:/home/piers# mount /cdrom > mythtv:/home/piers# > > and try again on destiny, I get: > > destiny:/# mount mythtv:/media/cdrom0 /mnt/mythtv > mount: mythtv:/media/cdrom0 failed, reason given by server: Permission > denied > destiny:/# > > and in the logs, I get: > > Jan 21 21:57:08 localhost kernel: UDF-fs INFO UDF 0.9.8.1 (2004/29/09) > Mounting volume 'FIREFLY_D3', timestamp 2003/09/08 20:08 (1000) > Jan 21 21:57:39 localhost rpc.mountd: authenticated mount request from > destiny.10sca.intranet:923 for /media/cdrom0 (/media/cdrom0) > Jan 21 21:57:39 localhost rpc.mountd: getfh failed: Operation not permitted > > I've googled for a long time with the last message but I can't find any > help anywhere. > > I've tried this on my 2 Macs but had the exact same problem: > > Jan 21 20:34:55 localhost rpc.mountd: authenticated mount request from > ukyo.10sca.intranet:982 for /media/cdrom0 (/media/cdrom0) > Jan 21 20:34:55 localhost rpc.mountd: getfh failed: Operation not permitted > Jan 21 21:29:59 localhost rpc.mountd: authenticated mount request from > akane.10sca.intranet:972 for /media/cdrom0 (/media/cdrom0) > Jan 21 21:29:59 localhost rpc.mountd: getfh failed: Operation not permitted > > I'm hoping you guys can tell me what I'm doing wrong here? > > Thanks very much in advance! just a shot in the dark, you might have to 'exportfs -a' after mounting your dvdrom to make the nfs server rehash the directory. -- ~ Darryl ~ [EMAIL PROTECTED] http://smartssa.com / http://darrylclarke.com
Re: mounting DVDs via NFS problem
On Mon, 23 Jan 2006 11:29:50 + Piers Kittel <[EMAIL PROTECTED]> wrote: > Andrew, > > > how can you mount a dvd over nfs if its not mounted on its local machine? > > Do these numbers above, as they come from destiny match the numbers if they > > are run on mythtv? IOW, are we looking at the same disk here? > > This bit is just to test if I can acutally mount it, i.e. I'm running > the right commands, it all works etc - this confirms the problem > orginates from mounting the DVD itself. The numbers shows the hard > drive sizes, as the cdrom directory is on the hard drive. oh yeah, okay. > > > when you mount /cdrom on mythtv, do the permissions change? what is ls -l > > /cdrom when unmounted and mounted? > > Yup you're correct, and have fixed this problem: > > mythtv:/media# mount /cdrom > mythtv:/media# ls -l > total 2 > lrwxrwxrwx 1 root cdrom 6 2005-06-07 19:30 cdrom -> cdrom0 > dr-xr-xr-x 3 4294967295 4294967295 88 2003-09-08 21:08 cdrom0 > mythtv:/media# > > but if I do the following: > > mythtv:/media# mount -o umask=000,uid=1000,gid=24 /dev/hdc /cdrom > mount: block device /dev/hdc is write-protected, mounting read-only > mythtv:/media# ls -l > total 2 > lrwxrwxrwx 1 root cdrom 6 2005-06-07 19:30 cdrom -> cdrom0 > dr-xr-xr-x 3 piers cdrom 88 2003-09-08 21:08 cdrom0 > mythtv:/media# > > Works nicely, but still have the same problem: > > Jan 23 11:23:13 localhost rpc.mountd: authenticated mount request from > akane.10sca.intranet:956 for /media/cdrom0 (/media/cdrom0) > Jan 23 11:23:13 localhost rpc.mountd: getfh failed: Operation not permitted I have to ask just incase: can you mount other shares? /home/foo for example? A > > Any ideas what I'm doing wrong? > > Thanks very much for your help! > > Regards - Piers > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > pgpaM7TQaRTtl.pgp Description: PGP signature
Re: mounting DVDs via NFS problem
Andrew, how can you mount a dvd over nfs if its not mounted on its local machine? Do these numbers above, as they come from destiny match the numbers if they are run on mythtv? IOW, are we looking at the same disk here? This bit is just to test if I can acutally mount it, i.e. I'm running the right commands, it all works etc - this confirms the problem orginates from mounting the DVD itself. The numbers shows the hard drive sizes, as the cdrom directory is on the hard drive. when you mount /cdrom on mythtv, do the permissions change? what is ls -l /cdrom when unmounted and mounted? Yup you're correct, and have fixed this problem: mythtv:/media# mount /cdrom mythtv:/media# ls -l total 2 lrwxrwxrwx 1 root cdrom 6 2005-06-07 19:30 cdrom -> cdrom0 dr-xr-xr-x 3 4294967295 4294967295 88 2003-09-08 21:08 cdrom0 mythtv:/media# but if I do the following: mythtv:/media# mount -o umask=000,uid=1000,gid=24 /dev/hdc /cdrom mount: block device /dev/hdc is write-protected, mounting read-only mythtv:/media# ls -l total 2 lrwxrwxrwx 1 root cdrom 6 2005-06-07 19:30 cdrom -> cdrom0 dr-xr-xr-x 3 piers cdrom 88 2003-09-08 21:08 cdrom0 mythtv:/media# Works nicely, but still have the same problem: Jan 23 11:23:13 localhost rpc.mountd: authenticated mount request from akane.10sca.intranet:956 for /media/cdrom0 (/media/cdrom0) Jan 23 11:23:13 localhost rpc.mountd: getfh failed: Operation not permitted Any ideas what I'm doing wrong? Thanks very much for your help! Regards - Piers -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: mounting DVDs via NFS problem
On Sat, 21 Jan 2006 22:04:25 + Piers Kittel <[EMAIL PROTECTED]> wrote: > Hello all, > > Am trying to mount a DVD drive via NFS and am having problems. For > note, 192.168.1.2 (hostname - destiny) is the client and 192.168.1.15 > (hostname - mythtv) is the server. > > I have this in my /etc/exports: > > /media/cdrom0 192.168.1.2(ro,sync) > > and 192.168.1.2 is in the /etc/hosts.allow. > > If the DVD is not mounted, it works perfectly fine: > > destiny:/mnt# mount mythtv:/media/cdrom0 /mnt/mythtv > destiny:/mnt# df > Filesystem 1K-blocks Used Available Use% Mounted on > > mythtv:/media/cdrom0 1829192 1547128184472 90% /mnt/mythtv > destiny:/mnt# how can you mount a dvd over nfs if its not mounted on its local machine? Do these numbers above, as they come from destiny match the numbers if they are run on mythtv? IOW, are we looking at the same disk here? > > If I unmount the above, and then mount the DVD on mythtv: > > mythtv:/home/piers# mount /cdrom > mythtv:/home/piers# > > and try again on destiny, I get: > > destiny:/# mount mythtv:/media/cdrom0 /mnt/mythtv > mount: mythtv:/media/cdrom0 failed, reason given by server: Permission > denied > destiny:/# when you mount /cdrom on mythtv, do the permissions change? what is ls -l /cdrom when unmounted and mounted? A > > and in the logs, I get: > > Jan 21 21:57:08 localhost kernel: UDF-fs INFO UDF 0.9.8.1 (2004/29/09) > Mounting volume 'FIREFLY_D3', timestamp 2003/09/08 20:08 (1000) > Jan 21 21:57:39 localhost rpc.mountd: authenticated mount request from > destiny.10sca.intranet:923 for /media/cdrom0 (/media/cdrom0) > Jan 21 21:57:39 localhost rpc.mountd: getfh failed: Operation not permitted > > I've googled for a long time with the last message but I can't find any > help anywhere. > > I've tried this on my 2 Macs but had the exact same problem: > > Jan 21 20:34:55 localhost rpc.mountd: authenticated mount request from > ukyo.10sca.intranet:982 for /media/cdrom0 (/media/cdrom0) > Jan 21 20:34:55 localhost rpc.mountd: getfh failed: Operation not permitted > Jan 21 21:29:59 localhost rpc.mountd: authenticated mount request from > akane.10sca.intranet:972 for /media/cdrom0 (/media/cdrom0) > Jan 21 21:29:59 localhost rpc.mountd: getfh failed: Operation not permitted > > I'm hoping you guys can tell me what I'm doing wrong here? > > Thanks very much in advance! > > Cheers - Piers > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > pgpkDuxeXYAnI.pgp Description: PGP signature
mounting DVDs via NFS problem
Hello all, Am trying to mount a DVD drive via NFS and am having problems. For note, 192.168.1.2 (hostname - destiny) is the client and 192.168.1.15 (hostname - mythtv) is the server. I have this in my /etc/exports: /media/cdrom0 192.168.1.2(ro,sync) and 192.168.1.2 is in the /etc/hosts.allow. If the DVD is not mounted, it works perfectly fine: destiny:/mnt# mount mythtv:/media/cdrom0 /mnt/mythtv destiny:/mnt# df Filesystem 1K-blocks Used Available Use% Mounted on mythtv:/media/cdrom0 1829192 1547128184472 90% /mnt/mythtv destiny:/mnt# If I unmount the above, and then mount the DVD on mythtv: mythtv:/home/piers# mount /cdrom mythtv:/home/piers# and try again on destiny, I get: destiny:/# mount mythtv:/media/cdrom0 /mnt/mythtv mount: mythtv:/media/cdrom0 failed, reason given by server: Permission denied destiny:/# and in the logs, I get: Jan 21 21:57:08 localhost kernel: UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'FIREFLY_D3', timestamp 2003/09/08 20:08 (1000) Jan 21 21:57:39 localhost rpc.mountd: authenticated mount request from destiny.10sca.intranet:923 for /media/cdrom0 (/media/cdrom0) Jan 21 21:57:39 localhost rpc.mountd: getfh failed: Operation not permitted I've googled for a long time with the last message but I can't find any help anywhere. I've tried this on my 2 Macs but had the exact same problem: Jan 21 20:34:55 localhost rpc.mountd: authenticated mount request from ukyo.10sca.intranet:982 for /media/cdrom0 (/media/cdrom0) Jan 21 20:34:55 localhost rpc.mountd: getfh failed: Operation not permitted Jan 21 21:29:59 localhost rpc.mountd: authenticated mount request from akane.10sca.intranet:972 for /media/cdrom0 (/media/cdrom0) Jan 21 21:29:59 localhost rpc.mountd: getfh failed: Operation not permitted I'm hoping you guys can tell me what I'm doing wrong here? Thanks very much in advance! Cheers - Piers -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]