[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Drive detection



Ian,

I'd wait for the experts to correct me on this one, but I think you're
making this far too complicated for yourself. You've got the standard
4 ide devices set up as follows:

/dev/hda	 Hardisk	1st IDE bus Primary
/dev/hdb	 CDROM		1st IDE bus Slave
/dev/hdc	 Hardisk	2nd IDE bus Primary
/dev/hdd	 CDROM		2nd IDE bus Slave

You currently have a symlink /dev/cdrom pointing at /dev/hdb 

It's just a symlink, not anything magical so that software has an easy
way of finding the cdrom drive. So if you want to use the other drive
as the primary cd player, change the symlink, so that it points to the
new drive. 

So as far as fstab is concerned, try something like this.
change /dev/cdrom so that it points at the main drive
create /dev/cdrom1 so that is points at the other drive.
(by create I mean:"ln -s /dev/hdd /dev/cdrom1"

in fstab you should have something like this, but remember it's all
one line, not line wrapped like in this email

this line covers the main CDROM drive

/dev/cdrom      /cdrom          iso9660
defaults,ro,user,noauto         0       0

for the other drive 

/dev/cdrom1      /cdrom1          iso9660
defaults,ro,user,noauto         0       0

make any sense?

Simon



On Fri, Jul 26, 2002 at 09:50:58AM +0100, Ian W. Wright wrote:
> Hi Paul,
> 
> Thanks for the reply. I have a /dev/cdrom pointing at /dev/hdb which is the
> first CDROM but this is a second one on the machine. When it was set up
> before it had created a /dev/cdrom1 but I can't find anything such in /dev
> this time. Maybe because when I loaded up RH6.2 this time I had a hard drive
> on /dev/hdd it has assumed it can't possibly have another device there....
> Anyway, it was this hard drive I took out and replaced with the second
> CDROM. So, what I need to know is, is there a way of creating a new device -
> /dev/cdrom1 or do I start again from scratch with the hardware I now want to
> use? I already tried  reinstalling linux over the previous version but, even
> though I told it to reformat the partitions, it somehow remembered all the
> original settings!
> People keep saying that linux is better than windoze because you don't have
> to reload to change things but I'm bu****ed if I can work this one out!
> 
> Best wishes,
> Ian

-- 
Simon Brown                         simon [at] cliffestones.demon.co.uk
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.