LinuxQuestions.org
Visit Jeremy's Blog.
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 01-21-2014, 06:58 PM   #31
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,302

Rep: Reputation: Disabled

Quote:
Originally Posted by enorbet View Post
I see no way through "/etc/fstab" to properly address this issue on any box that has more than one possible removable drive since udisks2 will assign a device randomly, ie: what was /dev/sdc1 last session may be /dev/sdd1 this session. If there isn't one already, there needs to be a udisks2 rule to give this consistency. To quote Linus, "This is bullshit".
Here's what prints "man fstab":
Code:
Instead  of  giving  the  device explicitly, one may indicate the (ext2 or xfs) filesystem that is to be
              mounted by its UUID or  volume  label  (cf.   e2label(8)  or  xfs_admin(8)),  writing  LABEL=<label>  or
              UUID=<uuid>, e.g., `LABEL=Boot' or `UUID=3e6be9de-8139-11d1-9106-a43f08d823a6'.  This will make the sys‐
              tem more robust: adding or removing a SCSI disk changes the disk device name but not the filesystem vol‐
              ume label.
 
Old 01-21-2014, 11:01 PM   #32
enorbet
LQ Guru
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 5,058

Original Poster
Rep: Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687Reputation: 4687
Hello again
Yes I know that, Didier, and that's sort of OK for USB disks because, although it isn't often practical to give them a persistent label, the do have UUIDs. So it is possible to workaround that way, and I probably will do that even though I don't like UUIDs. I much prefer Labels. Those can actually mean something to me at a glance. Does anyone know why udev cannot, or was not designed, to assign permanent, or even semi-permanent devices?

This won't work for optical drives however. AFAIK they don't have UUIDs and finding a label that udisks will support is rather trial and error. Some distros use "udev/rules.d/70-persistent-cd.rules" but I don't think that works in Slackware and I'm not sure I want it to since it apparently is auto-generated and like UUID, not meaningful to humans.

I started this thread hoping someone had a udisks2 rule that could sort this out. It's looking like I may have to wait until a fork solves this crazy inconsistency, and just resort to clunky workarounds till then.
 
  


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
udev: distinguish between USB floppy & memory stick jrfk2 Linux - General 4 02-15-2007 10:07 AM
Can't access USB stick depam Linux - Hardware 1 01-24-2007 08:52 AM
Help with udev and usb stick ProtoformX Slackware 3 04-28-2006 03:22 AM
how do i access my USB stick??? lenson Linux - Newbie 10 08-25-2005 01:45 PM
Udev usb issues exvor Linux - Software 1 06-25-2005 11:27 AM

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

All times are GMT -5. The time now is 03:56 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
Open Source Consulting | Domain Registration