Koozali.org formerly Contribs.org

share the DVD

Offline mgb

  • ****
  • 558
share the DVD
« on: November 18, 2012, 08:31:06 AM »
Hi
I want to share the DVD \ cd rom server
For network users
Thank you
Thanks all for helping
Skype yosii2009

Offline janet

  • ****
  • 4,810
Re: share the DVD
« Reply #1 on: November 22, 2012, 04:10:45 AM »
mgb

I suggest you search the forums & google.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,789
  • Skype account: maghissimo
    • Smeserver italian community
Re: share the DVD
« Reply #2 on: November 22, 2012, 09:44:54 AM »
Hi
I want to share the DVD \ cd rom server
For network users
Thank you

usually I create an iso image of my cd/dvd with
Code: [Select]
cd /mnt
mkdir mycdrepo
cd mycdrepo
dd if=/dev/cdrom of=./mycdiso.iso bs=1024k

then I create an ibay, let's say mycd

I add a row in /etc/fstab
Code: [Select]
/mnt/mycdrepo/mycdiso.iso    /home/e-smith/files/ibays/mycd/files/     iso9660 ro,loop,auto 0 0

finally
Code: [Select]
mount -a

in this way I can share more than a cd/dvd at the same time, I can decide who can see/read it, I can keep up to date the cd/dvd just recreating the iso image

HTH
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline janet

  • ****
  • 4,810
Re: share the DVD
« Reply #3 on: November 23, 2012, 04:16:02 AM »
mgb

There was a very old contrib
http://forums.contribs.org/index.php/topic,1660.msg5554.html#msg5554
No longer at the site listed, but a google search may find it.

I have the old rpm & I'm trying it now to see if it still works !!!????
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,810
Re: share the DVD
« Reply #4 on: November 23, 2012, 05:40:58 AM »
mgb

Quote
It may be that you only need to create the template fragment mentioned and not actually install the old contrib.
On a quick look it only appears to create the template fragment & expand & restart services, so you can probably do the same thing manually.

I tried this and it works OK without installing the old rpm.

The short Howto for sharing a CD drive on sme8 (even though this is being answered in a sme7 forum), is:

Note: Having a CD or DVD drive in a sme server is considered insecure by many system administrators, and not "best practice".
Typically any CD or DVD drive is removed from the server after installation of the SME OS.
If you must insist or require the CD or DVD drive to be accessible to local users, then keep this point in mind.

Log in as root or a user with sufficient privileges.

nano -w /etc/e-smith/templates-custom/etc/smb.conf/95sharedcdrom

edit it to read

[cdrom]
   comment = CD-ROM Drive in the Server
   path = /media/cdrecorder
   read only = yes
   writable = no
   printable = no
   root preexec = "mount /dev/cdrom /media/cdrecorder"
   root postexec = "umount /media/cdrecorder"

Save with Ctrl o
Exit with Ctrl x

Then do
signal-event console-save
service smb restart

Log off workstations & log back in again (to read the new smb.conf details/shares)

Insert a CD into the CD drive on sme server.
Open Windows Explorer on the workstation and access the sme server name eg
\\smeserver
click on the cdrom share and you should see the contents of the CD displayed (in read only mode of course).
Note that while the drive is accessed, it is mounted, so the CD disk cannot be ejected.

When finished reading/copying the CD, close the share access by closing Windows Explorer.
If other workstations have been accessing the drive, then they will also have to close access
Wait about 15 seconds for the CD drive to be unmounted
Eject the CD disk

Note while mounted, the CD drive eject button will not function.

mgb
Your original request is about accessing a DVD drive in the server, so examine the mount point, and how sme server accesses it (ie /dev/???), and change the custom template accordingly, expand template, restart smb, log off & back on workstations, and the DVD drive should be accessible in the same manner as this Howto describes (at least I assume that will be the case).
« Last Edit: November 23, 2012, 07:46:15 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Re: share the DVD
« Reply #5 on: November 27, 2012, 06:01:27 PM »
in this way I can share more than a cd/dvd at the same time, I can decide who can see/read it, I can keep up to date the cd/dvd just recreating the iso image

Good post, Stefano, but I'd recommend you post to the wiki, rather than in a post in a forum thread which might one day be lost.

Offline raem

  • *
  • 3,972
Re: share the DVD
« Reply #6 on: November 28, 2012, 09:23:22 AM »
...

Offline Stefano

  • *
  • 10,789
  • Skype account: maghissimo
    • Smeserver italian community
Re: share the DVD
« Reply #7 on: November 28, 2012, 09:39:49 AM »
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline mgb

  • ****
  • 558
Re: share the DVD
« Reply #8 on: November 29, 2012, 10:55:38 AM »
is work  share the DVD \ cd rom server
cdrom
//myserver/

 then I create an ibay, let's say mycd
//myserver/mycd/3 file   is not file of the cdrom/dvd
Thanks all for helping
Skype yosii2009

Offline Stefano

  • *
  • 10,789
  • Skype account: maghissimo
    • Smeserver italian community
Re: share the DVD
« Reply #9 on: November 29, 2012, 11:10:42 AM »
is work  share the DVD \ cd rom server
cdrom
//myserver/

 then I create an ibay, let's say mycd
//myserver/mycd/3 file   is not file of the cdrom/dvd

mgb, this is not clear to me.. could you please explain again? thank you
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline mgb

  • ****
  • 558
Re: share the DVD
« Reply #10 on: November 29, 2012, 11:52:50 AM »
I see the cdrom
my Network.
Cdrom with the file name of the cdrom.
The Folder of mycd I also see
But with three files autorun.inf ,LaunchPad.zip ,LaunchU3.exe
Thanks all for helping
Skype yosii2009

Offline Stefano

  • *
  • 10,789
  • Skype account: maghissimo
    • Smeserver italian community
Re: share the DVD
« Reply #11 on: November 29, 2012, 11:57:04 AM »
I repeat.. the problem is not clear to me.. isn't it the content of your cd?

can you explain what approach did you choose to share the cd?
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline mgb

  • ****
  • 558
Re: share the DVD
« Reply #12 on: November 29, 2012, 12:12:51 PM »
The first approach does not work mycd
The second approach works cdrom
At this stage, two approaches are installed

Important
Files listed in mycd are not from cdeom
I do not know from the rack are formed
Even without cdom are at,
Thanks all for helping
Skype yosii2009

Offline Stefano

  • *
  • 10,789
  • Skype account: maghissimo
    • Smeserver italian community
Re: share the DVD
« Reply #13 on: November 29, 2012, 12:54:11 PM »
The first approach does not work mycd
The second approach works cdrom
At this stage, two approaches are installed

Important
Files listed in mycd are not from cdeom
I do not know from the rack are formed
Even without cdom are at,

sorry, but I can't understand your english, sorry
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline mgb

  • ****
  • 558
Re: share the DVD
« Reply #14 on: November 29, 2012, 01:02:41 PM »
is work good
[cdrom]
   comment = CD-ROM Drive in the Server
   path = /media/cdrecorder
   read only = yes
   writable = no
   printable = no
   root preexec = "mount /dev/cdrom /media/cdrecorder"
   root postexec = "umount /media/cdrecorder"

//myserver/cdrom
Thanks all for helping
Skype yosii2009

Offline janet

  • ****
  • 4,810
Re: share the DVD
« Reply #15 on: November 29, 2012, 05:13:06 PM »
mgb

Both methods work OK, if not then you have made a mistake.

Quote
Files listed in mycd are not from cdeom
I do not know from the rack are formed
Even without cdom are at,

The first approach copies the contents of a CD as an iso file to /mnt/mycdrepo
Then it mounts the drive with the fstab entry so the contents are seen in the ibay mycdrepo
This allows you to browse to the mycdrepo ibay and "see" your CD contents, even though the CD is not in the drive.
Remember you have made a copy of your CD, as an iso file.

You can do this for as many CDs as you want, so you do not need to put the CD disk into the CD drive.
You are in effect reading a library of your CD's.
This first method will use space on your sme server hard disk, but has the advantage of making many CD's available to users without needing to physically insert the CD disk into the server.

You would need to show us exactly what commands you issued so we can see what iso files you created.
Use the history feature of sme server
ie push the up cursor arrow to review previously issued commands

Also show us the output of
ls -al /mnt/mycdrepo
and
ls -al /home/e-smith/files/ibays/mycdrepo/files

(replace mycdrepo with whatever name you used)
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,810
Re: share the DVD
« Reply #16 on: November 29, 2012, 06:00:21 PM »
mgb

Quote
Even without cdom are at,

The iso files (contents of the CD) will still appear in the ibay while the iso is mounted.

Try unmounting the iso eg
umount /mnt/mycdrepo/mycdiso.iso

(replace mycdrepo and mycdiso.iso with the names you actually used)

...and remove or hash out (# at beginning of line) the added /etc/fstab entry
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.