user-dirs.dirs > rewrited file new session

Get help with MATE specific problems
User avatar
SEMERENDO.cr
Black ninja
Black ninja
Posts: 88
Joined: 08 Nov 2023, 20:36
Distribution: alt, Porteus 5 mixed + x0.9

user-dirs.dirs > rewrited file new session

Post#1 by SEMERENDO.cr » 25 Feb 2025, 22:23

Is there a way to preserve the changes?
It's interesting, because I've noticed that the system, when booting, permanently mounts some partitions and doesn't let me unmount them to back up some with "Gnome Disk"

Code: Select all

/home/guest/.config/user-dirs.dirs

User avatar
Ed_P
Contributor
Contributor
Posts: 8954
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

user-dirs.dirs > rewrited file new session

Post#2 by Ed_P » 26 Feb 2025, 07:58

:%) I see no partitions in my user-dirs.dirs file.

Code: Select all

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
# 
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
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"
What is on the partition you want to unmount? And what messages are you getting when you can't unmount it?

Changes in Porteus are backed up with:

Code: Select all

guest@porteus:~$ su
Password: 

root@porteus:/home/guest# /opt/porteus-scripts/save-changes

save-changes /path/to/resulting/module.xzm
There's also a changes-commit command to backup a session's changes.

User avatar
SEMERENDO.cr
Black ninja
Black ninja
Posts: 88
Joined: 08 Nov 2023, 20:36
Distribution: alt, Porteus 5 mixed + x0.9

user-dirs.dirs > rewrited file new session

Post#3 by SEMERENDO.cr » 26 Feb 2025, 09:53

Changes no saved, only partitions mount in "/mnt"!

User avatar
Ed_P
Contributor
Contributor
Posts: 8954
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

user-dirs.dirs > rewrited file new session

Post#4 by Ed_P » 26 Feb 2025, 17:17

SEMERENDO.cr wrote:
25 Feb 2025, 22:23

Code: Select all

/home/guest/.config/user-dirs.dirs
SEMERENDO.cr wrote:
26 Feb 2025, 09:53
Changes no saved, only partitions mount in "/mnt"!
Ok.
SEMERENDO.cr wrote:
25 Feb 2025, 22:23
to back up some with "Gnome Disk"
So what partition are you trying to backup with Disk? And
Ed_P wrote:
26 Feb 2025, 07:58
what messages are you getting when you can't unmount it?
Porteus has apps for backing up changes, with the "partitions" mounted.

Added in 2 hours 30 minutes 52 seconds:
This link may help you: https://www.tecmint.com/clone-linux-partitions/ :)

Added in 11 hours 32 minutes 57 seconds:
Oh! :o Just rethought this. You want to exclude Porteus $HOME directories from the user-dirs.dirs file so you can back them up like partitions? That's not how Porteus is built. All changes written/made to the Porteus $HOME folders are actually written to their shadow in the /mnt/live/memory/changes/ directory. So, to backup the changes you made run the save-changes or changes-commit commands, which create xzm files of the changes you've made.

If you want to create file backups with GNOME-DISK copy/move the files you want to save that way to a partition/drive/folder outside of Porteus. I save many downloads and pictures to folders on drives outside of the Porteus system for access by my Windows systems. And I do that for backups of many of my $HOME files. :happy62:

I also create modules of some of my customized changes, like my file manager's bookmarks. So, backups are a good thing, just need to know how to do them. ;)

hth :)

User avatar
SEMERENDO.cr
Black ninja
Black ninja
Posts: 88
Joined: 08 Nov 2023, 20:36
Distribution: alt, Porteus 5 mixed + x0.9

user-dirs.dirs > rewrited file new session

Post#5 by SEMERENDO.cr » 02 Mar 2025, 14:28

Yeah, in the end I have a copy that Geany drags and I replace it... regarding the rest, before, I used the "partimage" program and I no longer remember if it was a requirement to unmount! 👍🏾
Ed_P wrote:
27 Feb 2025, 07:21

Post Reply