<HTML ><HEAD ><TITLE >More Information</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.63 "><LINK REL="HOME" TITLE="CDServer-HOWTO" HREF="index.html"><LINK REL="PREVIOUS" TITLE="Adding Support for More Loop Devices " HREF="addloops.html"><LINK REL="NEXT" TITLE="GNU Free Documentation License" HREF="gfdl.html"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >CDServer-HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="addloops.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="gfdl.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="moreinfo" >4. More Information</A ></H1 ><P > Be sure to check the suggested reading in <A HREF="introduction.html#reading" >Section 1.3</A >. </P ><DIV CLASS="sect2" ><H2 CLASS="sect2" ><A NAME="faq" >4.1. Frequently Asked Questions</A ></H2 ><P > I finally had to create this section - Frequently Asked Questions. Although, I sometimes think it should be called Frequently Answered Questions (at least I try to answer them all). </P ><DIV CLASS="qandaset" ><DL ><DT >Q: <A HREF="moreinfo.html#AEN566" >Can I copy CD contents to a directory and share it with <SPAN CLASS="acronym" >SAMBA</SPAN >?</A ></DT ><DT >Q: <A HREF="moreinfo.html#AEN594" >Do any scripts or programs exist that automate this process?</A ></DT ><DT >Q: <A HREF="moreinfo.html#AEN605" >Do any web interfaces exist that automate this process?</A ></DT ><DT >Q: <A HREF="moreinfo.html#AEN618" >Can copy-protected CD's (e.g. laserlok) be shared in this way?</A ></DT ></DL ><DIV CLASS="qandaentry" ><DIV CLASS="question" ><P ><A NAME="AEN566" ></A ><B >Q: </B >Can I copy CD contents to a directory and share it with <SPAN CLASS="acronym" >SAMBA</SPAN >?</P ></DIV ><DIV CLASS="answer" ><P ><B >A: </B >In a word - Yes.</P ><A NAME="AEN571" ></A ><BLOCKQUOTE CLASS="BLOCKQUOTE" ><P > There is nothing to keep you from doing that. However I'm not sure which arguments you would have to use with tar and which options to include in the <SPAN CLASS="acronym" >SAMBA</SPAN > stanzas. Also, there could be problems with file name mangling (case sensitivity, spaces in file names), file attributes (read-only), etc. If anyone is doing this successfully, please send me examples of the commands you used for copying the contents of the CD, and your SAMBA stanzas for the shares. </P ><P > Here's some commands you can use to copy the contents: </P ><P > <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <TT CLASS="prompt" >bash#</TT > <B CLASS="command" >cd /home</B > <TT CLASS="prompt" >bash#</TT > <B CLASS="command" >mkdir image</B > <TT CLASS="prompt" >bash#</TT > <B CLASS="command" >cd image</B > <TT CLASS="prompt" >bash#</TT > <B CLASS="command" >mkdir mndrk81</B > <TT CLASS="prompt" >bash#</TT > <B CLASS="command" >mount /mnt/cdrom</B > <TT CLASS="prompt" >bash#</TT > <B CLASS="command" >cd /mnt/cdrom</B > <TT CLASS="prompt" >bash#</TT > <B CLASS="command" >tar cvf - . | (cd /home/image/mndrk81; tar xvf -)</B > </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > <EM >Thanks to Giblhauser Carl Michael for this info</EM > </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="qandaentry" ><DIV CLASS="question" ><P ><A NAME="AEN594" ></A ><B >Q: </B >Do any scripts or programs exist that automate this process?</P ></DIV ><DIV CLASS="answer" ><P ><B >A: </B >Yes:</P ><P ></P ><UL ><LI ><P >Bradley Wendelboe and James Mumm wrote a shell script called CDTower - see <A HREF="moreinfo.html#cdtower" >Section 4.2.2</A > to download it.</P ><P ><EM >I have no independent test results of this script - use at your own risk.</EM ></P ></LI ></UL ></DIV ></DIV ><DIV CLASS="qandaentry" ><DIV CLASS="question" ><P ><A NAME="AEN605" ></A ><B >Q: </B >Do any web interfaces exist that automate this process?</P ></DIV ><DIV CLASS="answer" ><P ><B >A: </B >Not yet. However there is much interest in this.</P ><P ></P ><UL ><LI ><P >Tony Melia [Tony.Melia (at) downsmicro.com.au] has announced that he is 60% complete with a web interface, i.e. sucking CD's in, creating extra <TT CLASS="filename" >/dev/loop</TT > entries and seeing what space the CD's are taking up.</P ></LI ><LI ><P >I am planning on writing a module for <SPAN CLASS="application" >Webmin</SPAN > to automate this process. That project is currently hosted on SourceForge at <A HREF="http://sourceforge.net/projects/opencdserver" TARGET="_top" > http://sourceforge.net/projects/opencdserver</A ></P ></LI ></UL ></DIV ></DIV ><DIV CLASS="qandaentry" ><DIV CLASS="question" ><P ><A NAME="AEN618" ></A ><B >Q: </B >Can copy-protected CD's (e.g. laserlok) be shared in this way?</P ></DIV ><DIV CLASS="answer" ><P ><B >A: </B >To the best of my knowledge, No.</P ><A NAME="AEN622" ></A ><BLOCKQUOTE CLASS="BLOCKQUOTE" ><P >Others have reported problems to me trying to share <SPAN CLASS="acronym" >ISO</SPAN > images made from copy-protected CD's. It seems that even when using the <SPAN CLASS="QUOTE" >"unhide"</SPAN > option with <B CLASS="command" >mount</B > that files will remain hidden. </P ></BLOCKQUOTE ></DIV ></DIV ></DIV ></DIV ><DIV CLASS="sect2" ><H2 CLASS="sect2" ><A NAME="otherhelp" >4.2. Other Instructions Available on the Web</A ></H2 ><P > This section is devoted to instructional materials that others have written or have sent to me. </P ><DIV CLASS="sect3" ><H3 CLASS="sect3" ><A NAME="richardblack" >4.2.1. Saving a CD-ROM to a File and Mounting it</A ></H3 ><P > Richard Black (Compaq) has some good pages about Saving CD-ROM's to files and mounting them in <SPAN CLASS="systemitem" >Red Hat Linux</SPAN >. </P ><P ></P ><UL ><LI ><P > <A HREF="http://www.geocities.com/rlcomp_1999/cdimage.html" TARGET="_top" >Saving a CD-ROM to a File and Mounting it</A > </P ></LI ><LI ><P > <A HREF="http://www.geocities.com/rlcomp_1999/loop.html" TARGET="_top" >Linux Loop Devices</A > - This page also includes the script below for creating many loop device nodes at once in <TT CLASS="filename" >/dev</TT >. </P ></LI ></UL ><P > <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > Device nodes are required to access the loop devices. You already have loop0 - loop7. You can run the following loop to create the rest of the nodes (loop8 - loop255). You can type all of the following lines of code on one single line if you leave off the trailing "\" characters. <B CLASS="command" > C=8; echo; echo "Creating loop device nodes."; \ while [ $C -lt 256 ]; do mknod /dev/loop$C b 7 $C; \ echo -n .; C=`expr $C + 1`; done; echo; </B > Note: the quoting around the expr section are called backtick's and they are located with the tilde character ("~") in the upper left hand corner of the keyboard. The character is not a single quote. </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > <EM >Thanks to Richard Black for permission to add this info and for linking back to this document.</EM > </P ></DIV ><DIV CLASS="sect3" ><H3 CLASS="sect3" ><A NAME="cdtower" >4.2.2. CDTower v.06</A ></H3 ><P > A script to automate the creation of ISO images and share them via Samba </P ><P > by Bradley Wendelboe [krakken (at) icehouse.2y.net] and James Mumm [dart (at) windeath.2y.net] </P ><P > This software is covered under the GPL See <A HREF="http://www.gnu.org/copyleft/gpl.html" TARGET="_top" > http://www.gnu.org/copyleft/gpl.html</A > for details. </P ><P ></P ><DIV CLASS="variablelist" ><DL ><DT >To view/download this script:</DT ><DD ><P > <A HREF="http://www.talcon.com/projects/CDServer-HOWTO/scripts/cdtower_v0.06.sh.txt" TARGET="_top" > http://www.talcon.com/projects/CDServer-HOWTO/scripts/cdtower_v0.06.sh.txt</A > </P ></DD ></DL ></DIV ><P ></P ><DIV CLASS="variablelist" ><DL ><DT ><EM >Caution</EM ></DT ><DD ><P ><EM >I have no independent test results of this script - use at your own risk.</EM ></P ></DD ></DL ></DIV ><P > <EM >Thanks to Bradley Wendelboe for forwarding this script to me.</EM > </P ></DIV ></DIV ><DIV CLASS="sect2" ><H2 CLASS="sect2" ><A NAME="future" >4.3. Under Future Consideration</A ></H2 ><P > These are things I'm currently looking into, trying to figure out, or planning to get done. </P ><P ></P ><UL ><LI ><P > Make more scripts available that others have sent to me, either within this howto, or by hosting them and linking to them from this document. </P ></LI ><LI ><P > Sharing CD's to Apple and Netware clients (Appletalk and IPX). </P ></LI ><LI ><P > Compressed ISO Images. </P ></LI ><LI ><P > Changing CD Shares on the fly (hopefully transparent to users). </P ></LI ><LI ><P > Adding a module to Webmin to automate the CDServer process. </P ></LI ><LI ><P > Distribution specific instructions. </P ></LI ><LI ><P > I have a volunteer for a German translation, hopefully it will be done soon. </P ></LI ></UL ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="addloops.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="gfdl.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Adding Support for More Loop Devices</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >GNU Free Documentation License</TD ></TR ></TABLE ></DIV ></BODY ></HTML >