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

Re: unique identifiers for cdrom drives



On Du, 15 mai 11, 13:39:20, Paul E Condon wrote:
> > On Sat, 14 May 2011 09:58:27 -0600, Paul E Condon wrote:
> > 
> > > My Squeeze installs on machines that have two cdrom drives seem to boot
> > > sometimes with the upper drive as /media/cdrom0 and lower drive as
> > > /media/cdrom2, and other times with the identities reversed. I'm sure
> > > there must be a way to fix on one assignment and keep with it, but how?
> > > 
> > > There is nothing about cdrom drives in /etc/fstab. I suppose that
> > > something added there will fix the problem, but what?
> 
> looking for how to write a rule that meets my needs. But I have a
> problem understanding. I don't see anything in udev rules that allows
> me to control the mount point of a device, i.e. what connects the 
> symlink /dev/cdrom, with the mountpoint /media/cdromX ? Udev rules
> seem to be concerned only with what appears in /dev/ . 
> 
> What am I missing? Is there a fixed, invariant mapping that just always
> happens?

After you convince udev to assign the same device name to the same drive 
you need two fstab entries, something like:

/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/scd1       /media/cdrom1   udf,iso9660 user,noauto     0       0

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Attachment: signature.asc
Description: Digital signature


Reply to: