Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: mgb on November 18, 2012, 08:31:06 AM
-
Hi
I want to share the DVD \ cd rom server
For network users
Thank you
-
mgb
I suggest you search the forums & google.
-
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
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
/mnt/mycdrepo/mycdiso.iso /home/e-smith/files/ibays/mycd/files/ iso9660 ro,loop,auto 0 0
finally
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
-
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 !!!????
-
mgb
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).
-
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.
-
Dear All
Created this
http://wiki.contribs.org/CD-DVD
-
Dear All
Created this
http://wiki.contribs.org/CD-DVD
Thank you ;-)
-
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
-
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
-
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
-
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?
-
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,
-
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
-
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
-
mgb
Both methods work OK, if not then you have made a mistake.
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)
-
mgb
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