Mailing List Archive

Can I force USB drives' device name?
Hi, list!

I've got two USB storage devices here, a Jump Drive and a floppy/superdisk
drive. When plugged in by itself, the floppy drive becomes /dev/sda; the
Jump Drive becomes /dev/sda1. When they are both plugged in together,
whichever one was plugged in first gets /dev/sda(1), and the other
becomes /dev/sdb(1). This behavior is expected and understood.

What I'd like to know is whether or not it's possible to make the floppy
drive, for example, *always* /dev/sdb, even if it's plugged in by itself.
This would simplify life by allowing me to have /etc/fstab always know where
the floppy drive is, make desktop icons, etc.

Does anyone know how to do this?

--
// Carl Hudkins :: Jabber yther@amessage.info :: PGP 50238D9E
//
// ==] What would Jeeves do? [==
//
// (X-Spam-To: collapsar@yther.net)
--
gentoo-ppc-user@gentoo.org mailing list
Re: Can I force USB drives' device name? [ In reply to ]
On Tue, 3 May 2005 19:34:32 -0400, Carl Hudkins wrote:

> What I'd like to know is whether or not it's possible to make the
> floppy drive, for example, *always* /dev/sdb, even if it's plugged in
> by itself. This would simplify life by allowing me to have /etc/fstab
> always know where the floppy drive is, make desktop icons, etc.

With suitable udev rules, you can name them anything you like, say /dev/
floppy and /dev/jumpdisk. See http://www.gentoo.org/doc/en/udev-guide.xml
and http://www.reactivated.net/udevrules.php


--
Neil Bothwick

"Email is not to be used to pass on information or data. It should be
used only for company business."
Re: Can I force USB drives' device name? [ In reply to ]
On Wed May 4 2005 02:22, Neil Bothwick wrote:

> With suitable udev rules, you can name them anything you like, say /dev/
> floppy and /dev/jumpdisk. See http://www.gentoo.org/doc/en/udev-guide.xml
> and http://www.reactivated.net/udevrules.php

[skims intro]

That looks like exactly what I was hoping for. Thanks!

--
// Carl Hudkins :: Jabber yther@amessage.info :: PGP 50238D9E
//
// ==] What would Jeeves do? [==
//
// (X-Spam-To: collapsar@yther.net)
--
gentoo-ppc-user@gentoo.org mailing list