Sharing a dvd over NFS?
There is probably a way to do this, but I haven't been able to figure it out. I want to share my dvd over NFS. If I put this in /etc/exports I get an error saying that I don't have permission from the server when I try to mount it on a client: /media/dvd *(sync,root_squash,ro) Can this be made to work? -- Regards, Steven
On Friday 10 June 2005 19:11, Steven T. Hatton wrote:
There is probably a way to do this, but I haven't been able to figure it out. I want to share my dvd over NFS. If I put this in /etc/exports I get an error saying that I don't have permission from the server when I try to mount it on a client: /media/dvd *(sync,root_squash,ro)
Don't use * as a wild card in the exports file, it's not valid syntax. Use 0.0.0.0/0.0.0.0 to allow all hosts
On Friday 10 June 2005 13:25, Anders Johansson wrote:
On Friday 10 June 2005 19:11, Steven T. Hatton wrote:
There is probably a way to do this, but I haven't been able to figure it out. I want to share my dvd over NFS. If I put this in /etc/exports I get an error saying that I don't have permission from the server when I try to mount it on a client: /media/dvd *(sync,root_squash,ro)
Don't use * as a wild card in the exports file, it's not valid syntax. Use 0.0.0.0/0.0.0.0 to allow all hosts
That still didn't get it. It may be a NIS issue. I started setting up NIS at one point, and realized it was going to take more effort than I had time for. Right now I can't change it because I'm copying the CDs to the installation server share point. That was what I was trying to avoid by pointing to the DVD. I don't have a DVD drive on the installation server, so I wanted to point YaST to a shared DVD drive on the network. It's not all that much effort to fish the disks. It's just the principle of the thing. -- Regards, Steven
That still didn't get it. It may be a NIS issue. I started setting up NIS at one point, and realized it was going to take more effort than I had time for.
Using Yast, NIS is about 5 clicks per client maybe 6 for a server;-) But that shouldn't have any bearing on your nfs problem.
Right now I can't change it because I'm copying the CDs to the installation server share point. That was what I was trying to avoid by pointing to the DVD. I don't have a DVD drive on the installation server, so I wanted to point YaST to a shared DVD drive on the network. It's not all that much effort to fish the disks.
We tried mounting the 9.3 dvd as a NFS share for our installation server but there were timing problems as the disk had to spin up to speed and even then it could only cope with one install at a time. I'd recommend copying the whole lot to a hard drive somewhere on your lan (it's about 8GB) mounting it somewhere and exporting _that_. The speed increase will impress. Steve.
On Friday 10 June 2005 14:30, steve wrote:
That still didn't get it. It may be a NIS issue. I started setting up NIS at one point, and realized it was going to take more effort than I had time for.
Using Yast, NIS is about 5 clicks per client maybe 6 for a server;-) But that shouldn't have any bearing on your nfs problem.
Yes, but I already had shares, and /etc/hosts established. Things weren't working when I started the NIS server, so I turned it off and decided to investigate it another day.
Right now I can't change it because I'm copying the CDs to the installation server share point. That was what I was trying to avoid by pointing to the DVD. I don't have a DVD drive on the installation server, so I wanted to point YaST to a shared DVD drive on the network. It's not all that much effort to fish the disks.
We tried mounting the 9.3 dvd as a NFS share for our installation server but there were timing problems as the disk had to spin up to speed and even then it could only cope with one install at a time. I'd recommend copying the whole lot to a hard drive somewhere on your lan (it's about 8GB) mounting it somewhere and exporting _that_. The speed increase will impress. Steve.
That's what I'm trying to do. I actually had copied (scp -r * host:/location) the image to the server where I'm setting up the Installation Server. But the server wanted to copy it all again. I also wasn't too confident as to what was actually on the server since I received a lot of IO error messages when it tried to copy the 64 bit directory. -- Regards, Steven
On Friday 10 June 2005 14:40, Steven T. Hatton wrote:
On Friday 10 June 2005 14:30, steve wrote:
That still didn't get it. It may be a NIS issue. I started setting up NIS at one point, and realized it was going to take more effort than I had time for.
Using Yast, NIS is about 5 clicks per client maybe 6 for a server;-) But that shouldn't have any bearing on your nfs problem.
Yes, but I already had shares, and /etc/hosts established. Things weren't working when I started the NIS server, so I turned it off and decided to investigate it another day.
To be clear, the box where I turned NIS off is not the one I am currently working with. -- Regards, Steven
On Friday 10 Jun 2005 19:40 pm, Steven T. Hatton wrote:
On Friday 10 June 2005 14:30, steve wrote: <SNIP>> >
We tried mounting the 9.3 dvd as a NFS share for our installation server but there were timing problems as the disk had to spin up to speed and even then it could only cope with one install at a time. I'd recommend copying the whole lot to a hard drive somewhere on your lan (it's about 8GB) mounting it somewhere and exporting _that_. The speed increase will impress. Steve.
That's what I'm trying to do. I actually had copied (scp -r * host:/location) the image to the server where I'm setting up the Installation Server. But the server wanted to copy it all again. I also wasn't too confident as to what was actually on the server since I received a lot of IO error messages when it tried to copy the 64 bit directory.
I've tried this several tmes - If the dvd is mounted on the server when you export it, then it seems to work, but if you export the mount point then mount the dvd the nfs mounts never seem to see the mounted filesystem and thngs get tied n knots with lots of expired file handles and some zombe processes. For the distribution install media I found it much easier to copy the dvd to a drive on the server. Dylan
-- Regards, Steven
-- "I see your Schwartz is as big as mine" -Dark Helmet
On Friday 10 June 2005 19:11, Steven T. Hatton wrote:
There is probably a way to do this, but I haven't been able to figure it out. I want to share my dvd over NFS. If I put this in /etc/exports I get an error saying that I don't have permission from the server when I try to mount it on a client: /media/dvd *(sync,root_squash,ro)
Can this be made to work?
-- Regards, Steven
Hi Steven, I have successfully used NFS to share my DVD drive. I have 3 PC's, but only 1 has a DVD drive, so I wanted to install SuSE 9.2 on the other 2 PC's and couldn't be bothered to use the 5 CD's and have to change them all the time. All I did was put the DVD in the drive and use YaST to great the NFS share... That was it. I have used this NFS share to install SuSE on the other 2 PC's no problems and also install additional updates.. I'm just a beginner, so I didn't do anything fancy, just went with the defaults. Hope this helps, Martin
in /etc/exports: for example: /media/dvd 192.168.0.0/255.255.255.0 (rw,async) then: rcnfsserver start exportfs -v -a Client: mount 192.168.0.1:/media/dvd /mnt 192.168.0.1 if it is your servers ip address. On Sat, 11 Jun 2005 10:29:15 +0200 Martin Love <martin.love@skynet.be> wrote:
On Friday 10 June 2005 19:11, Steven T. Hatton wrote:
There is probably a way to do this, but I haven't been able to figure it out. I want to share my dvd over NFS. If I put this in /etc/exports I get an error saying that I don't have permission from the server when I try to mount it on a client: /media/dvd *(sync,root_squash,ro)
Can this be made to work?
-- Regards, Steven
Hi Steven,
I have successfully used NFS to share my DVD drive. I have 3 PC's, but only 1 has a DVD drive, so I wanted to install SuSE 9.2 on the other 2 PC's and couldn't be bothered to use the 5 CD's and have to change them all the time.
All I did was put the DVD in the drive and use YaST to great the NFS share... That was it.
I have used this NFS share to install SuSE on the other 2 PC's no problems and also install additional updates..
I'm just a beginner, so I didn't do anything fancy, just went with the defaults.
Hope this helps,
Martin
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
_____________________________________________________________________ For super low premiums, click here http://www.dialdirect.co.za/quote
On Saturday 11 June 2005 11:28, it clown wrote:
in /etc/exports: for example:
/media/dvd 192.168.0.0/255.255.255.0 (rw,async)
then:
rcnfsserver start exportfs -v -a
Client:
mount 192.168.0.1:/media/dvd /mnt
192.168.0.1 if it is your servers ip address.
That's what wasn't working. I'm not really sure what combination of variable causes the problem I was having, but cause I am almost certain it has worked for me in the past. I do know there is a difference in behavior between the kernel and user space NFS packages, and I also know NIS can play a role in what NFS does. -- Regards, Steven
On Saturday 11 June 2005 11:28, it clown wrote:
in /etc/exports: for example:
/media/dvd 192.168.0.0/255.255.255.0 (rw,async)
then:
rcnfsserver start exportfs -v -a
Client:
mount 192.168.0.1:/media/dvd /mnt
192.168.0.1 if it is your servers ip address.
I actually turned off NIS on both boxes, and tried this once before mounting the dvd, and once after mounting it, with the same results. ################ # on the server: # cat /etc/exports /media/dvd 192.168.0.0/255.255.255(rw,async) # rcnfsserver restart Shutting down kernel based NFS server done Starting kernel based NFS server done # exportfs -a -v exporting 192.168.0.0/255.255.255:/media/dvd ########## # on the client: # mount 192.168.0.2:/media/dvd /mnt mount: 192.168.0.2:/media/dvd failed, reason given by server: Permission denied -- Regards, Steven
On Saturday 11 June 2005 23:55, Steven T. Hatton wrote:
# cat /etc/exports /media/dvd 192.168.0.0/255.255.255(rw,async)
The netmask is missing something. It should be 255.255.255.0, since you put it in two separate places I'm thinking it's not a typo, so correct it and try again
On Saturday 11 June 2005 18:15, Anders Johansson wrote:
On Saturday 11 June 2005 17:28, it clown wrote:
rcnfsserver start exportfs -v -a
redundant. rcnfsserver start runs exportfs -r
It doesn't matter. The mask I posted in the e-mail didn't make the difference either. I had actually used *.domain.name, and also 192.168.0.0/24. I did however find that I can #etc/exports /media 192.168.0.0/255.255.255.0 (ro,async) then mount 192.168.0.2:/media /mnt # ls /mnt/dvd . LIESMICH docu .. LIESMICH.DOS dosutils ARCHIVES.gz README gpg-pubkey-0dfb3188-41ed929b.asc COPYING README.DOS gpg-pubkey-3d25d3d9-36e12d04.asc COPYING.de SuSEgo.ico gpg-pubkey-9c800aca-40d8063e.asc COPYRIGHT autorun.inf ls-lR.gz COPYRIGHT.de boot media.1 ChangeLog content pubring.gpg INDEX.gz control.xml suse LICENSE.TXT directory.yast I haven't tried to use that, and I'm not sure what would happen if I tried it on an install. -- Regards, Steven
On Sunday 12 June 2005 00:39, Steven T. Hatton wrote:
On Saturday 11 June 2005 18:15, Anders Johansson wrote:
On Saturday 11 June 2005 17:28, it clown wrote:
rcnfsserver start exportfs -v -a
redundant. rcnfsserver start runs exportfs -r
It doesn't matter. The mask I posted in the e-mail didn't make the difference either. I had actually used *.domain.name, and also 192.168.0.0/24. I did however find that I can #etc/exports /media 192.168.0.0/255.255.255.0 (ro,async)
Are you saying this works but adding a /dvd to the /media doesn't?
then
mount 192.168.0.2:/media /mnt # ls /mnt/dvd
hm. This should cross file system boundaries. It shouldn't work unless you have /media/dvd in the exports file, and then only if you have the nohide mount option. Odd
On Saturday 11 June 2005 18:50, Anders Johansson wrote:
On Sunday 12 June 2005 00:39, Steven T. Hatton wrote:
On Saturday 11 June 2005 18:15, Anders Johansson wrote:
On Saturday 11 June 2005 17:28, it clown wrote:
rcnfsserver start exportfs -v -a
redundant. rcnfsserver start runs exportfs -r
It doesn't matter. The mask I posted in the e-mail didn't make the difference either. I had actually used *.domain.name, and also 192.168.0.0/24. I did however find that I can #etc/exports /media 192.168.0.0/255.255.255.0 (ro,async)
Are you saying this works but adding a /dvd to the /media doesn't?
then
mount 192.168.0.2:/media /mnt # ls /mnt/dvd
hm. This should cross file system boundaries. It shouldn't work unless you have /media/dvd in the exports file, and then only if you have the nohide mount option. Odd
It seems only to work with the user space daeomn. -- Regards, Steven
participants (6)
-
Anders Johansson
-
Dylan
-
it clown
-
Martin Love
-
steve
-
Steven T. Hatton