Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Where does /var/media/external come from ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Wed Sep 09, 2020 1:25 am    Post subject: [solved] Where does /var/media/external come from ? Reply with quote

It's on all my machines. On one it is blank. On the other two it has subdirs with the names of all the partitions on all the drives.

On one of those two:
Code:
 ~ $ du -sh /var/media/external/*
4.0K   /var/media/external/sda2
4.0K   /var/media/external/sda5
4.0K   /var/media/external/sdb2
4.0K   /var/media/external/sdb4
4.0K   /var/media/external/sdc1

On the other:
Code:
# du -sh /var/media/external/*
2.7M   /var/media/external/sda1
150G   /var/media/external/sda2
4.0K   /var/media/external/sdb1
3.3T   /var/media/external/sdb2
665G   /var/media/external/sdc1
It looks like a back door into all the partitions, but not mounted on some, mounted on others.
equery b /var/media/external yields a blank.

I'd rather not have this and I'm afraid the "rm" would wipe all the drives.


Last edited by Tony0945 on Wed Sep 09, 2020 2:32 am; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2727

PostPosted: Wed Sep 09, 2020 1:57 am    Post subject: Reply with quote

From a quick look around SageTV software apparently creates exactly that, does that ring any bell for you? (doesn't seem to be in ::gentoo and personally never used)
Code:
protected void linuxRun()
  {
    // Check /dev/sdXX for new devices and when they show up then mount
    // them in the /var/media/external/sdXX paths.
    final String extDevRoot = SageTV.LINUX_ROOT_MEDIA_PATH;
Edit: can add that the entire /var/media isn't a standard thing to have (I don't have it on any of my gentoo systems). I don't see a reference to it in any ::gentoo ebuilds either, not that it means nothing uses it for sure but well.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Wed Sep 09, 2020 2:31 am    Post subject: Reply with quote

Ionen wrote:
From a quick look around SageTV software apparently creates exactly that, does that ring any bell for you?

Indeed it does! I have the binary installs. I have to look at the code. It's not a path I care for.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Fri Sep 11, 2020 2:34 pm    Post subject: Reply with quote

Ionen wrote:
From a quick look around SageTV software apparently creates exactly that, does that ring any bell for you? (doesn't seem to be in ::gentoo and personally never used)
Code:
protected void linuxRun()
  {
    // Check /dev/sdXX for new devices and when they show up then mount
    // them in the /var/media/external/sdXX paths.
    final String extDevRoot = SageTV.LINUX_ROOT_MEDIA_PATH;
[b]

Ionen, where did you find that source code snippet? I've been using the binary, but a proper source build with my libraries is the way to go.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2727

PostPosted: Fri Sep 11, 2020 2:44 pm    Post subject: Reply with quote

Tony0945 wrote:
where did you find that source code snippet?
https://github.com/google/sagetv/blob/master/java/sage/NewStorageDeviceDetector.java#L156
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum