The media folder is a mess?

New to SolydXK? This is the place to start.
Please check the other subforums to see if there's a more suitable place for your question.
User avatar
ZoidMaster
Posts: 16
Joined: 02 May 2017 23:55
Location: U.S.A.
Contact:

The media folder is a mess?

Postby ZoidMaster » 09 Aug 2017 05:31

I could not find a suitable place to ask this, and I am not suggesting that this is a problem with SolydK, it could be Dolphin or KDE or something else. To be truthful I have no idea where this problem originates nor if I am the only one who has it, or sees it as a problem. Is it on purpose???

According to Linux basic standards, /mnt is where shared, often accessed, archives and the like, IOW drives that are not removable (not easily without opening the PC case) and always found at startup are to be mounted, listed and displayed, unless otherwise instructed to via fstab. The media folder /media is meant to be a place where removable media is mounted. I have found that no distro really uses /mnt anymore, and even I myself (not knowing this until recently) have instructed (via fstab) to mount a few partitions to /media.

Throughout my distro hopping, I have always found my additional drives there, and then also mmc cards, CD's DVD's and other removable media when connected to the system, clean and easy to find. In SolydK it is no different, accept for a few really annoying additions:

My user folder is also mirrored in /media, so my desktop, documents, music, pictures, public, templates and videos folders are in there too. All files in it are there, as well as some but not all hidden folders like .cache .config .gconf... too. I do have a separate partition for each user, so the same thing happens to them when logged on. To add to the clutter all users directories are listed too: Jim, Jason, Jack and Jill, and everyone else who lives up the hill. ;)

Why is this, and how do I stop the madness, and only show inserted media and drives I explicitly ask to mount there??

I will change fstab and replace/media with /mnt for always attached drives, because I can get to them conveniently through dolphin's "Devices" list , and hope for the best (I'm guessing here), but it would help if someone could shed some light on what is going on and how to sort it all out. If you can't help, but know where the problem lies then please tell me, so I can bring this up with whom it may concern and bother them with this.

Thank's
The world was my oyster, until a shark ate it! :o

kurotsugi
Posts: 1952
Joined: 09 Jan 2014 00:17

Re: The media folder is a mess!?!???

Postby kurotsugi » 09 Aug 2017 06:05

AFAIK there is no common standard but rather "common practice" which tends to differ time by time. though, it completely free whether if a distro will implement that or not. you could think of it as a double edge of "free" and "open source" world. the usage of /mnt as you mentioned could be one of the example. that being said, this particular case is indeed really weird.
My user folder is also mirrored in /media, so my desktop, documents, music, pictures, public, templates and videos folders are in there too. All files in it are there, as well as some but not all hidden folders like .cache .config .gconf... too. I do have a separate partition for each user, so the same thing happens to them when logged on. To add to the clutter all users directories are listed too: Jim, Jason, Jack and Jill, and everyone else who lives up the hill. ;)
my user folder isn't (and shouldn't) mirrored there. there's indeed a directory with the same name with my user but IIRC I created it manually when playing with some stuff and it's not used anymore. the only thing mirrored there is my my cdrom content but that was due to how cdrom was mounted. it's only a symlink so there's no problem with that.

PS: I'm using something close solydxk EE.

User avatar
ZoidMaster
Posts: 16
Joined: 02 May 2017 23:55
Location: U.S.A.
Contact:

Re: The media folder is a mess!?!???

Postby ZoidMaster » 09 Aug 2017 07:05

@kurotsugi Well, I have no problem with one distro doing stuff slightly different than others, although It helps to have some explanation for what to expect. I know that somewhere there is a way to fix this, because in Linux "Everything is a file" and files can be altered. I just would love to know what files I have to beat into submission, in order to clean up this mess, and have a more uncluttered view of things. :?:
The world was my oyster, until a shark ate it! :o

User avatar
ScottQuier
Posts: 1760
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: The media folder is a mess!?!???

Postby ScottQuier » 09 Aug 2017 10:57

ZoidMaster wrote:I just would love to know what files I have to beat into submission, in order to clean up this mess, and have a more uncluttered view of things. :?:

Hard to say what files need to be beaten down without know what there is to work with. A good start on this might be the return from these commands:

Code: Select all

cd /media/<username>
ls -al .
cd ~
pwd
ls -al .
cat /etc/fstab

Reading your post I sense you probably don't need to be told this, but ... just execute all the above in a terminal window, copy the output, and paste it here surrounded by

Code: Select all

[code][/code]
tags.

We'll have to see where we go from there once we have that information.
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"


User avatar
ilu
Posts: 1671
Joined: 09 Oct 2013 12:45

Re: The media folder is a mess!?!???

Postby ilu » 09 Aug 2017 11:18

kurotsugi wrote:AFAIK there is no common standard but rather "common practice" which tends to differ time by time.

Actually there IS a standard. It's the Linux Filesystem Hierarchy Standard maintained here: http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html. /media is defined exactly for the purposes zoidmaster mentioned - and those are exactly the files stored there in SolydXK - removable media.

Zoidmaster, I have no idea how your user files got there and I've never heard of a similar problem. Just keep calm, we'll figure out what went wrong on your system and how your home folder got mounted into /media. Start with the commands Scott told you. Anonymize where necessary. I'd like to see:

Code: Select all

inxi -Fxz
cat /etc/fstab

User avatar
ZoidMaster
Posts: 16
Joined: 02 May 2017 23:55
Location: U.S.A.
Contact:

Re: The media folder is a mess?

Postby ZoidMaster » 10 Aug 2017 04:18

@ScottQuier Check this out, strange eh?

@ilu I promise not to get mad this time :)

I think you are on the right track with my fstab file, but it worked under Ubuntu Studio (Xfce and Thunar), and if having a separate drive for each user is culprit, then again: it did not do this under Ubuntu Studio, so possibly KDE or Dolphin may have something to do with it. I just installed Antergos with KDE5 (Arch) alongside Solydk, but have not checked for any misbehavior with it yet.

Code: Select all

/media
total 72
drwxr-x---+ 18 root root 4096 Aug  9 23:00 .
drwxr-xr-x  29 root root 4096 Aug  6 19:56 ..
-rw-r--r--   1 root root    0 May  5 21:33 baloo-xattr-check-{4b031457-8724-4d8d-9a2e-a0441b1e88ca}
-rw-r--r--   1 root root    0 May  5 21:33 .bash_logout
-rw-r--r--   1 root root    0 May  5 13:26 .bashrc
drwxr-xr-x   2 root root 4096 Feb  3  2016 .cache
drwxr-xr-x   2 root root 4096 Feb  3  2016 .config
drwxr-xr-x   2 root root 4096 May  5 13:26 Desktop
drwxr-xr-x   2 root root 4096 Feb  3  2016 Documents
drwxr-xr-x   2 root root 4096 Feb  3  2016 .gconf
drwxr-xr-x   2 root root 4096 Feb  3  2016 .gnupg
drwxr-xr-x   2 root root 4096 Feb  3  2016 .grsync
-rwxrwxr-x   1 root root    0 Feb  2  2016 .ICEauthority
-rw-rw-r--   1 root root    0 Feb  2  2016 .ICEauthority-c
-rw-rw-r--   1 root root    0 Feb  2  2016 .ICEauthority-l
-rwxrwxr-x   1 root root    0 Feb  2  2016 .ICEauthority-n
drwxr-xr-x   2 root root 4096 Feb  3  2016 .local
drwxr-xr-x   2 root root 4096 Feb  3  2016 Music
drwxr-xr-x   2 root root 4096 Feb  3  2016 Pictures
-rw-r--r--   1 root root    0 May  5 13:26 .profile
drwxr-xr-x   2 root root 4096 Feb  3  2016 Public
drwxr-xr-x   2 root root 4096 May  5 13:26 Resources
drwxr-xr-x   2 root root 4096 May  5 13:26 Resources PC
drwxr-xr-x   2 root root 4096 Feb  3  2016 Templates
drwxr-xr-x   2 root root 4096 May  5 13:26 The Studio
drwxr-xr-x   2 root root 4096 Feb  3  2016 Videos
-rwxrwxr-x   1 root root    0 Feb  3  2016 .xsession-errors.old

 :!: NOTE:  I noticed that when I open a folder on another drive, an entry for the folder gets added. Some go away some don't. The folder "The Studio" is on an SSD drive I use for recording music I write, but under a different user name. It's been there for months!  It is commented out in fstab below as are some other drives, because there were way more entries under /media with them mounted.  :!:

/home/rde

ls: cannot access .gnome2: Input/output error
total 1540
drwxrwxrwx 49 rde  rde    4096 Aug  9 23:00 .
drwxr-xr-x  6 root root   4096 Jul  8 23:29 ..
drwxrwxrwx  3 rde  rde    4096 May  1 16:31 .adobe                                                                   
drwxrwxrwx  8 rde  rde    4096 Mar 24 12:09 Archive                                                                 
drwxrwxrwx  4 rde  rde    4096 Dec 12  2016 .audacity-data                                                           
-rw-r--r--  1 root root    162 May  7 03:02 backup.log                                                               
-rwxrwxrwx  1 rde  rde    6414 Aug  7 17:25 .bash_history                                                           
drwxrwxrwx  4 rde  rde    4096 May  3 16:01 .bluefish                                                               
drwxrwxrwx  2 rde  rde    4096 May  1 11:47 .bogofilter                                                             
drwx------ 10 rde  rde    4096 Jul  9 01:01 .cache                                                                   
drwxrwxrwx 24 rde  rde    4096 Aug  6 00:05 .config                                                                 
-rwxrwxrwx  1 rde  rde     859 Aug  3 02:54 .convertall
drwxrwxrwx  3 rde  rde    4096 May  1 09:19 .dbus
drwxrwxrwx  5 rde  rde    4096 Aug  9 23:27 Desktop
drwxrwxrwx  5 rde  rde    4096 Dec  7  2016 .dia
-rw-------  1 rde  rde      96 Aug  5 16:54 .directory
drwxrwxrwx  2 rde  rde    4096 Apr 27 11:58 Documents
drwxrwxrwx  4 rde  rde    4096 Jul 10 20:04 Downloads
-rw-------  1 rde  rde      16 May  5 20:45 .esd_auth
-rw-r--r--  1 rde  rde    9860 May 18 15:12 .face.icon
lrwxrwxrwx  1 rde  rde      39 May  8 19:32 .fonts.conf -> /home/rde/.config/fontconfig/fonts.conf
drwxrwxrwx  2 rde  rde    4096 May 25  2016 .FreeCAD
drwxrwxrwx  3 rde  rde    4096 Aug  9 23:00 .gconf
drwxrwxrwx 24 rde  rde    4096 Aug  5 02:26 .gimp-2.8
-rw-r-----  1 rde  rde       0 Jul 27 15:03 .gksu.lock
d?????????  ? ?    ?         ?            ? .gnome2
drwxrwxrwx  2 rde  rde    4096 May  1 09:39 .gnome2_private
drwx------  3 rde  rde    4096 Jul 27 16:59 .gnupg
drwx------  2 rde  rde    4096 Aug  9 01:40 .imms
drwxrwxrwx  8 rde  rde    4096 Jan 31  2017 Instrument Design
drwxrwxrwx  6 rde  rde    4096 Jul 16  2016 Instruments
drwxrwxrwx  8 rde  rde    4096 Dec 21  2016 Junk Drawer
drwxrwxrwx  6 rde  rde    4096 May  4 16:55 .kde
drwxrwxrwx 11 rde  rde    4096 Mar 27 05:04 Library
drwxrwxrwx  3 rde  rde    4096 Feb  3  2016 .local
drwxrwxrwx  4 rde  rde    4096 May  4 00:51 .log
drwxrwxrwx  2 rde  rde   16384 May  5 05:19 lost+found
drwxrwxrwx  3 rde  rde    4096 May  1 16:31 .macromedia
drwxrwxrwx  5 rde  rde    4096 Feb  3  2016 .mozilla
drwxr-xr-x  2 rde  rde    4096 May  7 05:43 .mplayer
drwxrwxrwx  2 rde  rde    4096 Feb  3  2016 Music
drwxrwxrwx 10 rde  rde    4096 Apr  7 06:23 Offices
drwxrwxrwx 10 rde  rde    4096 Jun 26 13:17 Pictures
drwxrwxrwx  3 rde  rde    4096 Mar  3 22:16 .pki
drwxr-xr-x  2 rde  rde    4096 Aug  4 23:42 Print Me
drwxrwxrwx  2 rde  rde    4096 Feb  3  2016 Public
-rw-------  1 rde  rde   37242 Aug  8 23:20 .recently-used
drwxrwxrwx  4 rde  rde    4096 Jun  7 10:44 Repair Jobs
drwxrwxrwx  7 rde  rde    4096 Jan 27  2016 Resources PC
drwxrwxrwx  4 rde  rde    4096 Feb 16 12:10 Resources Shared
drwxrwxrwx  2 rde  rde    4096 Aug  3  2016 Shop
drwxrwxrwx  2 rde  rde    4096 Aug  9 23:01 .spamassassin
drwx------  2 rde  rde    4096 May 12 00:39 .ssh
-rw-r--r--  1 rde  rde       0 Aug  5 23:58 .sws.flag
drwxrwxrwx  9 rde  rde    4096 Jul 28 15:20 Templates
-rw-r--r--  1 root root  14916 Jul 10 11:41 testdisk.log
drwx------  4 rde  rde    4096 May 24 18:32 .thumbnails
drwx------  4 root root   4096 May 18 20:05 .Trash-0
drwxrwxrwx  2 rde  rde    4096 Dec  2  2016 Videos
drwxrwxrwx  7 rde  rde    4096 Mar 26 19:00 Web Development
-rw-------  1 rde  rde      50 Aug  9 23:00 .Xauthority
-rw-------  1 rde  rde  326237 Aug  9 23:31 .xsession-errors
-rw-------  1 rde  rde  938929 Aug  9 04:16 .xsession-errors.old


Code: Select all

inxi -Fxz
System:    Host: LLLLL Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4) Desktop: KDE 4.14.2 (Qt 4.8.6)
           Distro: SolydXK 8 solydxk
Machine:   System: Acer product: Aspire M3300
           Mobo: Acer model: FRS780M Bios: American Megatrends v: P03-B4L date: 08/27/2010
CPU:       Quad core AMD Phenom II X4 810 (-MCP-) cache: 2048 KB
           flags: (lm nx sse sse2 sse3 sse4a svm) bmips: 20742
           Clock Speeds: 1: 800 MHz 2: 800 MHz 3: 800 MHz 4: 1400 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RS780 [Radeon HD 3200] bus-ID: 01:05.0
           Display Server: X.Org 1.16.4 drivers: ati,radeon (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: Gallium 0.4 on AMD RS780 GLX Version: 3.0 Mesa 10.3.2 Direct Rendering: Yes
Audio:     Card-1 Advanced Micro Devices [AMD/ATI] RS780 HDMI Audio [Radeon (HD) 3000 Series]
           driver: snd_hda_intel bus-ID: 01:05.1
           Card-2 Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA)                                 
           driver: snd_hda_intel bus-ID: 00:14.2                                                             
           Card-3 Creative Labs SB0400 Audigy2 Value driver: snd_emu10k1 port: c800 bus-ID: 03:04.0         
           Sound: Advanced Linux Sound Architecture v: k3.16.0-4-amd64
Network:   Card: Realtek RTL-8185 IEEE 802.11a/b/g Wireless LAN Controller
           driver: rtl818x_pci port: e800 bus-ID: 05:06.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 1782.4GB (29.1% used) ID-1: /dev/sda model: KINGSTON_SNVP325 size: 64.0GB
           ID-2: /dev/sdb model: OCZ size: 128.0GB ID-3: /dev/sdd model: WDC_WD10EADS size: 1000.2GB
           ID-4: /dev/sde model: OCZ size: 90.0GB ID-5: /dev/sdc model: WDC_WD5000AADS size: 500.1GB
Partition: ID-1: / size: 29G used: 9.6G (36%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 4.35GB used: 0.00GB (0%) fs: swap dev: /dev/sdb2
Sensors:   System Temperatures: cpu: 43.0C mobo: 29.5C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 218 Uptime: 43 min Memory: 1649.0/5730.5MB Init: systemd runlevel: 5 Gcc sys: 4.9.2
           Client: Shell (bash 4.3.301) inxi: 2.1.28[/code}
           
[code]cat /etc/fstab
                                                                                                     
UUID=f4c81586-dc42-42af-8542-8102d1eb6d98        /                                                    ext4     rw,errors=remount-ro,noatime         0    0                           
UUID=7418ba2a-074f-48ce-9347-cc746f0b408b         swap                                             swapsw                                                                                                       0   0
UUID=7bb33beb-a670-4c38-994c-41e8d99d18d8       /home/rde                                ext4    noatime                                0     0                                                                                           
UUID=ea2c135b-941c-4b91-9a8d-1bc66469d29e        /media/ARCHIVEZ                  ext4    noatime                                0     0
#UUID=f7c51440-6c3e-48b4-bf7f-6f8c449e7eca           /home/DRIVE                           ext4    noatime                                0     0
#UUID=eaa8ff27-d01c-45e9-b8a4-b7f0ec779d95         /home/DRIVE                           ext4    noatime                                0     0
#UUID=c81aafd5-7016-4643-81b9-b84dff283f7e          /media/Antergos                    ext4    noatime                                0     0
#UUID=ff675245-9b8c-41b6-933b-be16d5b51b0e       /media/DRIVE                          ext4    noatime                                0     0
#UUID=3cd56c76-21b5-46cc-aa77-df402d3f872c          /media/DRIVE                          ext4    noatime                                0     0
#UUID=96dabd54-07b4-4b08-bed6-f52af53df233        /media/DRIVE                          ext4    noatime                                0     0

# RAM disks
tmpfs                                           /tmp                                tmpfs    defaults,noatime,mode=1777             0     0
tmpfs                                           /var/tmp                        tmpfs    defaults,noatime                       0     0
tmpfs                                           /var/backups                tmpfs    defaults,noatime                       0     0
tmpfs                                           /var/log                           tmpfs    defaults,noatime                       0     0
tmpfs                                           /var/log/apt                   tmpfs    defaults,noatime                       0     0
tmpfs                                           /var/log/samba             tmpfs    defaults,noatime                       0     0
tmpfs                                           /var/log/cups                 tmpfs    defaults,noatime                       0     0
tmpfs                                           /var/log/lightdm           tmpfs    defaults,noatime                       0     0
tmpfs                                           /var/log/ConsoleKit     tmpfs    defaults,noatime                       0     0
tmpfs                                           /var/log/clamav            tmpfs    defaults,noatime                       0     0
tmpfs                                           /var/cache/apt/archives     tmpfs defaults,noexec,nosuid,nodev,mode=0755 0     0


As i mentioned I will change the /media mount points to /mnt, which may or may not help, but it won't change my user folders mounted in/home from being displayed under/media. :cry:
The world was my oyster, until a shark ate it! :o

User avatar
Schoelje
Site Admin
Posts: 8460
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: The media folder is a mess?

Postby Schoelje » 10 Aug 2017 06:19

I can't say I completely followed this topic and I don't know whether this is related or not but I'm especially worried about this line:

Code: Select all

ls: cannot access .gnome2: Input/output error


I few weeks ago I had a similar message which was caused by a dying hard drive. This led to more I/O errors over time and I eventually had to buy a new one.


SolydXK needs you!
Development | Testing | Translations

kurotsugi
Posts: 1952
Joined: 09 Jan 2014 00:17

Re: The media folder is a mess?

Postby kurotsugi » 10 Aug 2017 07:04

the question popped in my mind was "did you use something like samba, cifs, or something similar on your system?". your expalanation about "the studio" folder made me think that this behaviour is something purposively done by the system. checking the process and active app might give a hint.

btw, I believe this behaviour is safe and could be relatively ignored. though, it's indeed a curious case.

User avatar
ZoidMaster
Posts: 16
Joined: 02 May 2017 23:55
Location: U.S.A.
Contact:

Re: The media folder is a mess?

Postby ZoidMaster » 10 Aug 2017 16:57

@Schoelje Please don't scare me, :shock: My SSD's are not that old, but expensive. It may be that it's because they are all links, and a .gnome2 folder doesn't even exist in my home directory. It does exist under the other user profiles, but they are all empty. Once I unmounted unneeded drives there were all kinds of folders in /media that could not be accessed.

@Kurotzugi No I don't use any virtual Fs's and especially nothing Microsoft, like wine or exchange. I am 100% M$ free including their sub companies!

As I stated I have a separate partition for each user, all mounted in/home. /home is not a separate partition, but the users within are. The links in /media to all of those places were created gradually (a few weeks ago) while I was traversing the Fs in dolphin.

I changed fstab to mount non user drives to /mnt. Also, I deleted the "Video" folder from /media/rde as an experiment, and as I expected (it being a link), the video folder (empty) in /home/rde remained. So I unmounted all but my own user partition (just to play it safe), and deleted the entire contents of /media. With it completely empty I remounted the drives, and navigated around in them and so far /media has remained empty. :D So everything seems to be back to normal now, but I am none the wiser. :?:

If this behavior returns, I will do my best to take note of exactly what i did when it happens, and report it here. :geek:
The world was my oyster, until a shark ate it! :o


Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 4 guests