LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2006, 05:29 PM   #1
zlin50
Member
 
Registered: Jan 2006
Location: Munich
Distribution: Slackware-15.0
Posts: 43

Rep: Reputation: 15
removable (usb-)devices mount points


Hi,

I'm using slackware-10.2 with kernel 2.4.32 in combination with serveral removable devices: mp3-player, camera, external hard-disk,...

hotplug assigns these devices to /dev/sd[bcd]? according to the sequence of connection (which is variable, actually). Therefore it is not possible to define "fixed" mount points in /etc/fstab.

As far as I understand, with kernel 2.6 this problem is handled by udev.

Do you know a similar solution for kernel 2.4?
At the moment, I'm using hotplug as a black-box; can I configure hotplug to do that job for the above mentioned devices?

Thanks in advance,
Markus
 
Old 05-27-2006, 11:20 PM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Hello, welcome to LQ.

I was under the impression that udev works with the 2.4 kernel as well since it ships default with Slackware (which uses the 2.4 kernel).

What are you experiencing when you try to use udev?

regards,
...drkstr
 
Old 05-28-2006, 04:10 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
Welcome to LQ!

Or you can setup /etc/fstab with generic mount point names, and then either manually mount them or use the "System > Storage Media > Removable Device (sdx1)" choices from the KDE desktop. These are two mount points:
Code:
mingdao@silas:~/kernel/linux-2.6.16.18$ cat /etc/fstab
/dev/sdc1        /usb         vfat        noauto,users,rw,umask=1000  0  0
/dev/sdd1        /usb1        vfat        noauto,users,rw,umask=1000  0  0
I only made 2 because I don't use more than 2 removable devices at a time. And it matters not to me what they're called, therefore, the scheme.

I have two SATA drives which permanently get /dev/sda and /dev/sdb.
 
Old 05-28-2006, 06:30 AM   #4
zlin50
Member
 
Registered: Jan 2006
Location: Munich
Distribution: Slackware-15.0
Posts: 43

Original Poster
Rep: Reputation: 15
@all: basically, my system is running - I just want to optimize it....

@drkstr:

> What are you experiencing when you try to use udev?

$ head -n 9 /usr/doc/udev-064/README | tail -1
- You must be running a 2.6 version of the Linux kernel.

--> I didn't try....

@Chinaman:
- yes - this is an option - but still I would have to "think about" wich /dev/s?? I have to use, when I connect any devices.

Actually, I'm looking for something like
/dev/camera /mnt/camera vfat noauto,users,.....
where /dev/camera gets linked to /dev/s?? by any (hotplug?) automatism.

Thanks,
Markus
 
Old 05-28-2006, 07:07 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
Markus,

You don't have to think about anything if you're running KDE, just make yourself 4 mount points, plug in the device, and then use what I told you before. You click on the icon and it mounts.

Of course, udev is supposed to assign the same mount point to devices if you write udev rules properly. But udev is still a buggy issue, and only certain versions work with certain kernels. See the ChangeLog.txt of Slackware -current for more info.
 
Old 05-29-2006, 01:59 PM   #6
zlin50
Member
 
Registered: Jan 2006
Location: Munich
Distribution: Slackware-15.0
Posts: 43

Original Poster
Rep: Reputation: 15
Hi Chinaman,

I see - unfortunately, I'm not running KDE but fvmw2. :-(

Yes, I know: lots of "I'm not..."! :-)

I thought about using any functionality inside hotplug,
so I'll search google for that topic.

Thanks, anyway!
Markus
 
Old 05-29-2006, 05:34 PM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
Markus,

You're only going to get the functionality you want with udev.
At the present time, that's going to require a lot of work on
your part, probably 'hit and miss' at that. Did you read?
Code:
mingdao@silas:~$ less /usr/doc/udev-071/README
udev - userspace device management

For more information see the files in the docs/ directory.

Important Note:
  Integrating udev in the system is a whole lot of work, has complex dependencies
  and differs a lot from distro to distro. All reasonable distros use udev these
  days, the major ones make it mandatory and the system will not work without it.

  The upstream udev project does not support or recomend to replace a distro's udev
  installation with the upstream version. The installation of a unmodified upstream
  version may render your system unusable! There is no "default" setup or a set
  of "default" rules provided by the upstream udev version.
<snip>
And since I had enough trouble with udev just running,
without writing any udev rules, I'm not even sure if what you
are saying is possible. I think udev still uses device names,
but translates those into specific mount points.
 
  


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
Mount points on usb devices (dig. camera, zip drive, external hard disk) Impaler Linux - Hardware 3 05-30-2006 12:08 AM
Where to find mount point for USB Removable device bobbelfield Mandriva 3 02-17-2006 11:37 PM
Mount Points vs Physical Devices SBFree Linux - Newbie 3 01-04-2006 07:43 PM
On the fly mount points for removable storage disks kite Slackware 1 10-09-2005 08:19 AM
Mounting specific hardware devices to specfic mount points tallguy999 Linux - Newbie 3 11-27-2003 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:06 AM.

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
Open Source Consulting | Domain Registration