1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
|
<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.3E.t">
<TITLE>The Answer Gang 65: cd-writing mini-howto</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#3366FF" VLINK="#A000A0">
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<P> <hr>
<CENTER>
<!-- *** BEGIN navbar *** -->
<!-- *** END navbar *** -->
</CENTER>
</p>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<center>
<H1><A NAME="answer">
<img src="../../gx/dennis/qbubble.gif" alt="(?)"
border="0" align="middle">
<font color="#B03060">The Answer Gang</font>
<img src="../../gx/dennis/bbubble.gif" alt="(!)"
border="0" align="middle">
</A></H1>
<BR>
<H4>By Jim Dennis, Ben Okopnik, Dan Wilder, Breen, Chris, and the Gang,
the Editors of Linux Gazette...
and You!
<br>Send questions (or interesting answers) to
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a>
</H4>
<p><em><font color="#990000">There is no guarantee that your questions
here will <b>ever</b> be answered. You can be published anonymously
- just let us know!
</font></em></p>
</center>
<p><hr><p>
<!-- endcut ======================================================= -->
<!-- begin 17 -->
<H3 align="left"><img src="../../gx/dennis/bbubble.gif"
height="50" width="60" alt="(!) " border="0"
>cd-writing mini-howto</H3>
<p align="right"><strong>Answer By Chris Coyle
<br></strong></p>
<!-- sig -->
<BLOCKQUOTE>
I found the "CD-Writing with an ATAPI CDR Mini-HOWTO"
(<A HREF="http://www.linuxgazette.com/issue57/stoddard.html"
>http://www.linuxgazette.com/issue57/stoddard.html</A>)
very helpful. Thank you.
</BLOCKQUOTE>
<BLOCKQUOTE>
Here are a couple of suggestions which other readers
who are interested in the same subject may find useful.
</BLOCKQUOTE>
<BLOCKQUOTE><ol>
<li> (very minor) I think it should be <TT>/etc/modules.conf</TT>
not <TT>/etc/conf.modules</TT>
<li> I just discovered that the ide-scsi module
in kernel 2.2.17 (from RH rpms I just DL'ed),
either has a big problem, or else it is significantly
incompatible with previous kernels.
</ol>
</BLOCKQUOTE>
<BLOCKQUOTE>
Here's what happened:
</BLOCKQUOTE>
<BLOCKQUOTE>
I DL'ed and installed the RH rpms for kernel 2.2.17-14.
These were recommended in a security advisory.
I kept my previous kernel (2.2.16) installed just in case,
adding a new section to <TT>/etc/lilo.conf</TT> by copying the
previous one, mutatis mutandis. Then I ran lilo and rebooted.
At first everything appeared to be OK with the new kernel,
but then I tried to mount my cd-rom and it failed, giving
the message
</BLOCKQuote>
<BLOCKQUOTE><pre>
mount: wrong fs type, bad option, bad superblock
on /dev/cdrom or too many mounted filesystems
</pre></BLOCKQUOTE>
<BLOCKQUOTE>
While I was searching for the cause of this I remembered
that I had set up my cd-recorder to use ide-scsi.
</BLOCKQUOTE>
<BLOCKQUOTE>
My regular cd-rom reader is hdc and the cd-recorder is hdd.
Following the directions in your mini-howto, I had inserted
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><code>
append="hdd=ide-scsi"
</code></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
and this I had copied faithfully into the new 2.2.17 section.
When I removed it and rebooted, I found I could mount the
cd-rom again. Then I put the line back in and rebooted.
</BLOCKQUOTE>
<BLOCKQUOTE>
This time I looked at what scsi devices were detected.
Eureka! By looking at dmesg and also by using
"cdrecord -scanbus" I discovered that the ide-scsi module
had taken over both hdc and hdd, even though I requested
only hdd. I asked for help on comp.os.linux.misc and
within hours someone else confirmed the same thing, namely
</BLOCKQUOTE>
<BLOCKQUOTE>
"...if you have two devices on an IDE channel,
and one of them is under ide-scsi emulation,
it's better to treat both of them as if they
were under ide-scsi emulation.
</BLOCKQUOTE>
<BLOCKQUOTE>
I don't know if this is due to a an error or a design
change, but the work-around was quite straightforward.
</BLOCKQUOTE>
<BLOCKQUOTE>
The only tricky bit was that I wanted to be able to
boot 2.2.16 so I had to devise a way to make both kernels
boot up in a state where they could use the same devices
and configuration files. My solution is as follows:
</BLOCKQUOTE>
<BLOCKQUOTE><ol type="a">
<li> Change the lines in <TT>/etc/lilo.conf</TT> to
<BLOCKQUOTE>
append="hdc=ide-scsi hdd=ide-scsi"
</BLOCKQUOTE>
in both kernel sections.
<li> Move the <TT>/dev/cdrom</TT> link from hdc to scd0.
<li> Change the scsi configuration for the cd-recorder
in <TT>/etc/cdrecord.conf</TT> to 0,1,0 (since it is now the
second scsi host).
</ol></BLOCKQUOTE>
<BLOCKQUOTE>
After all that I am finally back to the point where I
can mount the cd-rom and use the cd-recorder, with either
2.2.16 or 2.2.17 kernel.
</BLOCKQUOTE>
<!-- end 17 -->
<!--startcut ======================================================= -->
<P> <hr> </p>
<!-- *** BEGIN copyright *** -->
<H5 align="center">This page edited and maintained by the Editors
of <I>Linux Gazette</I>
<a href="http://www.linuxgazette.com/copying.html"
>Copyright ©</a> 2001
<BR>Published in issue 65 of <I>Linux Gazette</I> April 2001</H5>
<H6 ALIGN="center">HTML script maintained by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<!-- *** END copyright *** -->
<P> <hr>
<!-- begin tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::-->
<p align="center">
<table width="100%" border="0"><tr>
<td align="right" valign="center"
><IMG ALT="" SRC="../../gx/navbar/left.jpg"
WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="middle" border="0"
><A HREF="..//"
><IMG SRC="../../gx/navbar/toc.jpg" align="middle"
ALT="[ Table Of Contents ]" border="0"></A
><A HREF="../lg_answer65.html"
><IMG SRC="../../gx/dennis/answertoc.jpg" align="middle"
ALT="[ Answer Guy Current Index ]" border="0"></A></td>
<td align="center" valign="center"><A HREF="../lg_answer65.html#greeting"><img align="middle"
src="../../gx/dennis/smily.gif" alt="greetings" border="0"></A>
<A HREF="1.html">1</A>
<A HREF="2.html">2</A>
<A HREF="3.html">3</A>
<A HREF="4.html">4</A>
<A HREF="5.html">5</A>
<A HREF="6.html">6</A>
<A HREF="7.html">7</A>
<A HREF="8.html">8</A>
<A HREF="9.html">9</A>
<A HREF="10.html">10</A>
<A HREF="11.html">11</A>
<A HREF="12.html">12</A>
<A HREF="13.html">13</A>
<A HREF="14.html">14</A>
<A HREF="15.html">15</A>
<A HREF="16.html">16</A>
<A HREF="17.html">17</A>
<A HREF="18.html">18</A>
<A HREF="19.html">19</A>
<A HREF="20.html">20</A>
<A HREF="21.html">21</A>
<A HREF="22.html">22</A>
<A HREF="23.html">23</A>
<A HREF="24.html">24</A>
<A HREF="25.html">25</A>
<A HREF="26.html">26</A>
<A HREF="27.html">27</A>
<A HREF="28.html">28</A>
<A HREF="29.html">29</A></td>
<td align="left" valign="center"><A HREF="../../tag/kb.html"
><IMG SRC="../../gx/dennis/answerpast.jpg" align="middle"
ALT="[ Index of Past Answers ]" border="0"></A
><IMG ALT="" SRC="../../gx/navbar/right.jpg" align="middle"
WIDTH="14" HEIGHT="45" BORDER="0"></td></tr></table>
</p>
<!-- end tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<P> <hr>
<CENTER>
<!-- *** BEGIN navbar *** -->
<!-- *** END navbar *** -->
</CENTER>
</p>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
</BODY></HTML>
<!--endcut ========================================================= -->
|