Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: PPC-User

Can I force USB drives' device name?

 

 

Gentoo ppc-user RSS feed   Index | Next | Previous | View Threaded


carl at hudkins

May 3, 2005, 4:34 PM

Post #1 of 3 (428 views)
Permalink
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 [at] amessage :: PGP 50238D9E
//
// ==] What would Jeeves do? [==
//
// (X-Spam-To: collapsar [at] yther)
--
gentoo-ppc-user [at] gentoo mailing list


neil at digimed

May 3, 2005, 11:22 PM

Post #2 of 3 (390 views)
Permalink
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."


carl at hudkins

May 4, 2005, 5:53 AM

Post #3 of 3 (390 views)
Permalink
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 [at] amessage :: PGP 50238D9E
//
// ==] What would Jeeves do? [==
//
// (X-Spam-To: collapsar [at] yther)
--
gentoo-ppc-user [at] gentoo mailing list

Gentoo ppc-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.