LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-11-2012, 11:22 AM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Angry How to restore mounting in /media, not /run/media ?


Enough of this crap !
Many programs are not aware of this and are still searching in /media.

Is there a way to restore the old behavior, and mount medias in /media ?
Or at least to make a symlink ?
 
Old 10-11-2012, 12:14 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Does the following not work?

Code:
ln -s /run/media /media
Have you checked your /etc/auto* files for automounter to see if they're specifying /run/media? If so what happens if you change that to "/media" in those files?
 
Old 10-11-2012, 01:17 PM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Can't link, because there's the username in the path, ie. /run/media/my_name/drive_id

Auto-stuff isn't used, it's udisk2 that manages drives now.
As far as i understand, it's another intrusive gnome-crap.
The most criminal thing in it is that there's absolutely no default compatibility layer in it, which leads me to the conclusion that the guys behind this are total idiots.

Last edited by Linux.tar.gz; 10-11-2012 at 10:40 PM.
 
Old 10-11-2012, 11:19 PM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
I removepkg'ed the s**t named udisks2, but still no luck...
 
Old 10-12-2012, 12:00 AM   #5
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Debian has made a patch for udisks2 to restore the FHS-compliant behaviour. You can apply it to the udisks2.SlackBuild by using the attached files. (You have to remove the .txt extension, because this forum software doesn't accept .diff or .patch as an attachment).

HTH.
Attached Files
File Type: txt mount_in_media.patch.txt (4.5 KB, 165 views)
File Type: txt udisks2.SlackBuild.diff.txt (370 Bytes, 75 views)
 
1 members found this post helpful.
Old 10-12-2012, 12:28 AM   #6
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
The Debian patch above uses /media/$USER instead of /run/media/$USER. For Slackers, who don't like this solution, I crafted an alternative patch, which uses plain /media just like the old hald.

Last edited by jtsn; 10-12-2012 at 12:43 AM.
 
4 members found this post helpful.
Old 10-12-2012, 12:35 AM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Looks like this is the commit:

http://cgit.freedesktop.org/udisks/c...37ed543178965b

Seems to me /media and /run/media/$USER should be a build option or an /etc/ config option. The latter is better and allows everybody to choose and be happy.
 
2 members found this post helpful.
Old 10-12-2012, 12:45 AM   #8
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by Woodsman View Post
Seems to me /media and /run/media/$USER should be a build option or an /etc/ config option. The latter is better and allows everybody to choose and be happy.
Right, hard-coding paths into the source code is very bad behavior, such things belong to a configuration file. Also I found another correlation between bad software design and bad coding style (two-space indents? seriously?).
 
3 members found this post helpful.
Old 10-12-2012, 01:56 AM   #9
fgcl2k
Member
 
Registered: Jan 2011
Distribution: Slackware 14.1
Posts: 118

Rep: Reputation: 32
Quote:
Originally Posted by jtsn View Post
Also I found another correlation between bad software design and bad coding style (two-space indents? seriously?).
O.T.
Welcome to the GNU Coding Style :-)
 
Old 10-12-2012, 03:04 AM   #10
BlackRider
Member
 
Registered: Aug 2011
Posts: 295

Rep: Reputation: 101Reputation: 101
It is no surprise for me that developers are trying to scape from this crap, spawning things like udevil. It is sad I see no alternative project receiving support enough to kick the udev/disks2 mess off.

You can have a look at udevil here: http://ignorantguru.github.com/udevil/

Last edited by BlackRider; 10-12-2012 at 03:07 AM.
 
Old 10-12-2012, 10:44 AM   #11
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Thank you jtsn, it worked like a charm !!!

And thank you all other ;^).
 
Old 10-12-2012, 12:45 PM   #12
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,896

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Am I the only one still using automount for this sort of stuff?
 
Old 10-12-2012, 07:15 PM   #13
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
I plan to use automount since a while ago, but always have something else to do ^^.

I used it for nfs network connections. Worked great.
 
Old 10-12-2012, 08:20 PM   #14
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Linux.tar.gz View Post
Can't link, because there's the username in the path, ie. /run/media/my_name/drive_id
I don't see how that stops you from symlinking /run/media to /media
 
Old 10-12-2012, 10:19 PM   #15
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Because i need to know the username.
And because programs are looking in /media/drive_name/* , so as the username adds a directory level, they fail.
 
  


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
LXer: Android media players hot up LXer Syndicated Linux News 0 03-21-2011 11:21 PM
Media streaming between WMP and Linux media players (preferably Amarok) EducatedWhiteTrash Linux - Software 2 08-20-2010 08:11 PM
Can I install Media Jukebox 12 with Ubuntu OS? Needs Windows Media Player Files. tlcmd Linux - Newbie 2 01-08-2010 03:29 PM
hot to make vlc defualt media player negrito211 Linux - Software 4 01-03-2009 11:23 AM
Storage Media Lost Hot Plugging issue evodawg Mandriva 3 08-10-2008 02:05 PM

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

All times are GMT -5. The time now is 10:32 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