Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: HOME Directory files disappears randomly (Read 353 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

HOME Directory files disappears randomly

Hey
as title says my home directory disapppears randomly and I don't know how it happens
this is my user-dirs.dirs :
Code: [Select]
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
XDG_DIR_DIR="$HOME/"
and it removes all my file in home folder exept files that has dot at first and they are hidden
I don't know why is that problem it's really annoying
this is my fstab if it matters:
Code: [Select]
/dev/sda2               /               xfs             rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota        0 1

# UUID=A6F1-EECE
/dev/sda1               /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2

# UUID=9b30dc10-66ea-4489-b3ec-68ce19df6b85
/dev/sdb1               /home           xfs             rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota        0 2

/swap                   none            swap            defaults        0 0

tmpfs                   /tmp            tmpfs           defaults,nosuid,nodev,noatime           0 0

TL'DR : I installed elogind , xdg-utils , xdg-user-dirs , xdg-dbus-proxy,xdg-desktop-portal if it matters too
TL'DR: I remove all files in .cache directory every day
TL'DR: last time happend when I coppied a file from .mozilla to Document and wanted to upload it to my backup and when I Cancelled it this again happend
TL'DR: My Shell is Fish with some aliases and a theme prompt

Re: HOME Directory files disappears randomly

Reply #1
Sounds weird
What I will say first Is you'd help the description of your issue if you try and explain 'it' more in certain places

"and it removes all my file" What is 'it'?
"coppied a file from .mozilla to Document and wanted to upload it to my backup and when I Cancelled it"
copied how and what 'it' did you cancel ?

My first thought is maybe your home dir is unmounting itself because of errors ?
I've never used xfs so don't know the default options ?
But that is one explanation for how files could appear to magically vanish. Then you would see any files which already existed in /home before /dev/sdb1  is mounted on top of it.

Have you checked your mounts before and after this happens ?

If you mount /dev/sdb1 somewhere else do you see your files?

I'd be tempted to comment out the home partition in fstab for a while, copy from your backup to home dir on root / and see if it stops happening. If it does stop it's got to be to do with the mount. If it doesn't then you must have some rogue program deleting your files. The latter seems unlikely but within the realms of possibility.

Re: HOME Directory files disappears randomly

Reply #2
If it's not a mount issue the "audit" selinux logging tool might help reveal what's happening if you set up a watch on the affected files / directories but it could take a bit of reading to learn how to get it to do that.

 
Artix forum uses a single cookie to remember youOK