LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 08-27-2004, 12:05 PM   #1
Trygleren
LQ Newbie
 
Registered: Mar 2004
Location: Denmark
Distribution: Debian GNU/Linux
Posts: 20

Rep: Reputation: 0
Controlling /dev-device for USB-Mp3player (and other)


Hi,

I'm currently using a USB-harddrive and a USB-mp3player on my debian box. The problem is, that my fstab is never correct, since the order of which the devices are connected, determines where they are mounted under /dev/. Sometimes the mp3player is mounted as sda1, other times sdb1. This makes it very difficult to maintain a static list of mount points.

Is there any way of controlling what mount point a device is given under /dev/ ? A way that I can 'reserve' sda1 for my mp3player and sdb1 for my external harddrive?
 
Old 08-28-2004, 04:54 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 602

Rep: Reputation: 49
Yes it is. You need kernel 2.6 and udev.
When you get this working, you can write rules for udev to assign devices to device files. See http://www.reactivated.net/udevrules.php
R.
 
Old 08-30-2004, 06:15 AM   #3
Trygleren
LQ Newbie
 
Registered: Mar 2004
Location: Denmark
Distribution: Debian GNU/Linux
Posts: 20

Original Poster
Rep: Reputation: 0
Worked like a charm - thx a million :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
which device in /dev is mapped to an USB device malo_umoran Slackware 4 07-31-2005 02:12 PM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 09:46 PM
Mounting USB Devices--Controlling the dev file lawrencegoodman Linux - Hardware 1 03-08-2004 05:57 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 04:22 PM
/dev location or name of USB device dark_forests Linux - Hardware 3 10-13-2003 12:37 AM


All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration