LinuxQuestions.org
Review your favorite Linux distribution.
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,227

Rep: Reputation: 86
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
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
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,227

Original Poster
Rep: Reputation: 86
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,227

Original Poster
Rep: Reputation: 86
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
Location: Europe
Distribution: Slackware
Posts: 800

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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, 31 views)
File Type: txt udisks2.SlackBuild.diff.txt (370 Bytes, 13 views)
 
1 members found this post helpful.
Old 10-12-2012, 12:28 AM   #6
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 800

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.0
Posts: 3,475

Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
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.
 
Old 10-12-2012, 12:45 AM   #8
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 800

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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?).
 
Old 10-12-2012, 01:56 AM   #9
fgcl2k
Member
 
Registered: Jan 2011
Distribution: Slackware 14.0
Posts: 102

Rep: Reputation: 25
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
Distribution: Slackware
Posts: 261

Rep: Reputation: 82
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,227

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

And thank you all other ;^).
 
Old 10-12-2012, 12:45 PM   #12
GazL
Senior Member
 
Registered: May 2008
Posts: 3,319

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
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,227

Original Poster
Rep: Reputation: 86
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: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,427

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
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,227

Original Poster
Rep: Reputation: 86
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


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

Main Menu
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