[WBEL-users] CDROM / DVD Drive conflict

Johnny Hughes mailing-lists@hughesjr.com
Mon, 31 May 2004 11:38:29 -0500


--=-ydcFL9CF2IhFngM04Sv+
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Mon, 2004-05-31 at 10:27, Richard Swift wrote:

> Hi -
> 
> I just install a DVD drive and now when I do a : 
> $ mount /dev/cdrom
> 
> The devicxe being read is the newly installed DVD drive rather then my
> CDROM drive.  Is there a way from me to verify that both drives are
> installed/ or recognized properly by the OS?  I've also tried :
> 
> $ mount /dev/hdc
> 
> Any help would be appreciated.  Thanks
> 
> _______________________________________________
> Whitebox-users mailing list
> Whitebox-users@beau.org
> http://beau.org/mailman/listinfo/whitebox-users


You will probably have to manually change your links as well ...

let's say that the cdrom is primary slave (which is hdb) and the dvd is
secondary master (which is hdc)

so we would go to /dev and figure out where cdrom is pointing ... (I
want it to point to hdb in the test case)...

so the commands:

cd /dev
ls -al | grep cdrom

show this:

lrwxrwxrwx    1 root     root            8 Apr  1 05:22 cdrom ->
/dev/hdc

so the name cdrom is pointing to the WRONG place (in my example ... I
want it to be hdb and the dvd to be hdc) ... so here is what I would do:

rm cdrom
ln -s /dev/hdb cdrom
ln -s /dev/hdc dvd
ln -s dvd cdrom1

(I added cdrom1 just in case something is not happy with the name dvd).

Now, I would need to create a directory called /mnt/dvd:

mkdir /mnt/dvd

then change the fstab (in my example) to look like this:

/dev/cdrom              /mnt/cdrom              udf,iso9660
noauto,owner,kudzu,ro 0 0
/dev/dvd                  /mnt/dvd                    udf,iso9660
noauto,owner,kudzu,ro 0 0

You could also use

/dev/cdrom1              /mnt/dvd              udf,iso9660
noauto,owner,kudzu,ro 0 0

instead of /dev/dvd...(since we pointed both to /dev/hdc above)

The devices are:

Primary Master - hda
Primary Slave - hdb
Secondary Master - hdc
Secondary Slave - hdd

(if everything is IDE and not SCSI)

If you have an extra IDE controller card, or more than 2 IDE channels,
there can be more than 4 devices.

-Johnny Hughes 

--=-ydcFL9CF2IhFngM04Sv+
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
On Mon, 2004-05-31 at 10:27, Richard Swift wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Hi -

I just install a DVD drive and now when I do a : 
$ mount /dev/cdrom

The devicxe being read is the newly installed DVD drive rather then my
CDROM drive.  Is there a way from me to verify that both drives are
installed/ or recognized properly by the OS?  I've also tried :

$ mount /dev/hdc

Any help would be appreciated.  Thanks

_______________________________________________
Whitebox-users mailing list
Whitebox-users@beau.org</FONT>
<A HREF="http://beau.org/mailman/listinfo/whitebox-users"><U>http://beau.org/mailman/listinfo/whitebox-users</U></I></A></PRE>
</BLOCKQUOTE>
<BR>
You will probably have to manually change your links as well ...<BR>
<BR>
let's say that the cdrom is primary slave (which is hdb) and the dvd is secondary master (which is hdc)<BR>
<BR>
so we would go to /dev and figure out where cdrom is pointing ... (I want it to point to hdb in the test case)...<BR>
<BR>
so the commands:<BR>
<BR>
<B>cd /dev<BR>
ls -al | grep cdrom</B><BR>
<BR>
show this:<BR>
<B><BR>
lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8 Apr&nbsp; 1 05:22 cdrom -&gt; /dev/hdc</B><BR>
<BR>
so the name cdrom is pointing to the WRONG place (in my example ... I want it to be hdb and the dvd to be hdc) ... so here is what I would do:<BR>
<BR>
<B>rm cdrom<BR>
ln -s /dev/hdb cdrom<BR>
ln -s /dev/hdc dvd<BR>
ln -s dvd cdrom1</B><BR>
<BR>
(I added cdrom1 just in case something is not happy with the name <B>dvd</B>).<BR>
<BR>
Now, I would need to create a directory called /mnt/dvd:<BR>
<BR>
<B>mkdir /mnt/dvd</B><BR>
<BR>
then change the fstab (in my example) to look like this:<BR>
<BR>
<B>/dev/cdrom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /mnt/cdrom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udf,iso9660 noauto,owner,kudzu,ro 0 0<BR>
/dev/dvd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /mnt/dvd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udf,iso9660 noauto,owner,kudzu,ro 0 0</B><BR>
<BR>
You could also use<BR>
<BR>
<B>/dev/cdrom1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /mnt/dvd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udf,iso9660 noauto,owner,kudzu,ro 0 0</B><BR>
<BR>
instead of /dev/dvd...(since we pointed both to /dev/hdc above)<BR>
<BR>
The devices are:<BR>
<BR>
Primary Master - hda<BR>
Primary Slave - hdb<BR>
Secondary Master - hdc<BR>
Secondary Slave - hdd<BR>
<BR>
(if everything is IDE and not SCSI)<BR>
<BR>
If you have an extra IDE controller card, or more than 2 IDE channels, there can be more than 4 devices.<BR>
<BR>
-Johnny Hughes 
</BODY>
</HTML>

--=-ydcFL9CF2IhFngM04Sv+--