LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-11-2003, 08:30 AM   #1
PR0T0N
LQ Newbie
 
Registered: Dec 2003
Location: Serbia
Posts: 12

Rep: Reputation: 0
Sharing CD over linux network


I have a small network with 5 computers running Mandrake 9.1, and just one of them has CD ROM.
How could I share CD drive so it can be accessed by all 5 machines?
 
Old 12-11-2003, 11:26 AM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Try to export it using nfs:
http://nfs.sourceforge.net/nfs-howto/
 
Old 12-12-2003, 04:27 PM   #3
PR0T0N
LQ Newbie
 
Registered: Dec 2003
Location: Serbia
Posts: 12

Original Poster
Rep: Reputation: 0
I set sharing of directories using NFS and that works fine.
I tried to use NFS to share CD but i have encoutered a problem. I tried something like this: First I mount CD on local machine, say in directory /mnt/cdrom, and then I share that directory over network using NFS (by listing it in /etc/exports). Then on some other machine in network I remote mount that directory (/mnt/cdrom) using NFS. That works for now, I can access files from CD from the remote machine, but the problem is that after that I can't take out CD from CD-ROM drive. When I try to umount CD-ROM from local machine I get message "Device is busy". Even when I remote umount that directory from all machines in network that mounted it previously, I still get the same message "Device is busy" and I cant take CD out of drive, until reboot. All console and file manager windows pointing to /mnt/cdrom are also closed.
Lazy umount doesn't help either.


Any solutions how to get CD out of drive after NFS exporting?


PS. fuser -v /mnt/cdrom command on local machine gives me this output:
...............................................USER...................PID.........................AC CESS.....................COMMAND
/mnt/cdrom........................ROOT.................kernel........................mount............... ......../mnt/cdrom
 
Old 12-12-2003, 04:54 PM   #4
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Hi,

You must stop the nfs first, or remove the /mnt/cdrom from the exports list and use exportfs to atualize the nfs list ...
 
Old 12-14-2003, 04:37 PM   #5
PR0T0N
LQ Newbie
 
Registered: Dec 2003
Location: Serbia
Posts: 12

Original Poster
Rep: Reputation: 0
thanx for posting vladkrack
hm.. you say I have to edit /etc/exports and then use exportfs in order to get out CD out of drive..?
I will try it and see if that helps.... anyway even if that works, it seems very ugly and indirect way of doing simply task such as getting CD out of drive..

my network is in public use, so it is practically impossible for ordinary users to do tasks like that just to use CD drive.

Is there maybe any other way of sharing CD over linux network?
Maybe SAMBA is more convinient for this task?
 
Old 12-15-2003, 07:00 PM   #6
PR0T0N
LQ Newbie
 
Registered: Dec 2003
Location: Serbia
Posts: 12

Original Poster
Rep: Reputation: 0
I tried it, and it works.... in order to get CD out of drive after exporting I have to remote umount it from all machines in network that mounted it previously, and to remove line /mnt/cdrom from /etc/exports on the local machine and execute command exportfs.

It works, but it is very ugly way.... anything better?
 
Old 12-15-2003, 10:51 PM   #7
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
What you should do is dd the cdrom and create an ISO image. dd if=/dev/cdrom[or whatever your drive is] of=/tmp/cdrom.iso. That way, you can mount the iso image just like a cdrom drive and have your drive free. You can share the mounted area instead of the physical drive. I have done this and it works great. You just need space on your hd for the image.
 
Old 12-15-2003, 10:57 PM   #8
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
what about sharing an iso of the CD via NFS, that should free up your cd-rom. And depending on the capacity of your dirve, make it easy in the future as well..
 
Old 12-17-2003, 07:28 PM   #9
PR0T0N
LQ Newbie
 
Registered: Dec 2003
Location: Serbia
Posts: 12

Original Poster
Rep: Reputation: 0
Yes... I thought of that, dumping CD on HD is like copying contents of CD onto HD... but it is silly to me to dump whole CD onto HD every time I just want to acces some part of CD or just to browse it for 3 minutes...
I hope there is better (simplier and faster) way of sharing CD over linux network.
 
  


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
Network Sharing With Windows and Linux grim1234 Linux - Networking 6 11-03-2005 03:13 PM
sharing network files between Linux boxes linuxhippy Slackware 23 04-22-2005 08:03 PM
Network connection sharing XP+Linux Maverick1182 Linux - Networking 19 09-04-2004 04:06 AM
Sharing linux printer with XP box on network jeffreybluml Linux - Newbie 12 04-13-2004 07:55 AM
Sharing folders across linux network linuxboy69 Linux - Networking 3 01-09-2004 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:33 PM.

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
Open Source Consulting | Domain Registration