Skip to content

Life without user defined mounts sh #1379

@sxored

Description

@sxored

How I can get back my features in user defined "~/.config/far2l/mounts.sh" ?

Features list

  1. show path to FS or path to device instead of type of FS, optionally show path to loop device image

  2. path can be non-absolute in "${HOME}/.config/far2l/favorites", ' ~ ' should point to home directory of current user and possibility to use environment variables like this "~/various/${my_env_var}/subdir"

  3. optionally show use percentage in disk list with other delimiter than "/", i guess that "blank space" is better delimiter when there are more than 2 columns like in "df" an "mount" output

  4. optionally show used disk space for some paths in favorites

  5. show read-write/read-only status of mounted FS ( ' - ' before FS )

"/mnt/backup" is mounted read-only

FAR2L, version 2.4.0-6af0746e-beta Linux x86_64

before changes

╔═══════════════════════════════════════════════ Location ═══════════════════════════════════════════════╗

...

║                                   /run/user/1000 │ 392M 392M 1%             │ tmpfs > tmpfs            ▓
║                                      /mnt/backup │ 3.2G 175G 99%            │ - ext4 > /dev/xvdi       ▓
║                                       /mnt/media │ 1.1G 100G 99%            │ fuseblk > /dev/xvdj      ▓
║                                      /mnt/custom │ 1.2G 146G 99%            │ ext4 > /dev/xvdk         ▓
║                              /tmp/test_mnt/a1 a2 │ 3.6M 3.9M 1%             │ ext4 > /dev/loop0        ▓
║                             /tmp/test_mnt/b1  b2 │ 3.6M 3.9M 1%             │ ext4 > /dev/loop1        ▓

...

║                                /tmp/test_mnt/^?_ │ 0.0K 0.0K [useprc]       │ ext4 > /tmp… a/disk4.img ░
║                                /tmp/test_mnt/|?} │ 0.0K 0.0K [useprc]       │ ext4 > /tmp… ]/disk5.img ░
║                                /tmp/test_mnt/9?[ │ 0.0K 0.0K [useprc]       │ ext4 > /tmp… 0/disk6.img ░

...

╟────────────────────────────────────────────── home dirs ────────────────────┼──────────────────────────░
║                               /home/user/Desktop │                          │                          ░
║                             /home/user/Documents │ =  1.6G                  │ ~/Documents              ░

...

╚═══════════════════════════════════════ Ins,Del,Shift-Del,F4,F9 ════════════════════════════════════════╝

FAR2L, version 2.4.1-a2ece888-beta Linux x86_64

after changes

╔═════════════════════════════════════════ Location ═════════════════════════════════════════╗

...

║                                            /home │ 8.48G/19.5G  │ ext4                     ▓
║                                       /usr/local │ 8.48G/19.5G  │ ext4                     ▓
║                                  /var/spool/cron │ 8.48G/19.5G  │ ext4                     ▓
║                                   /var/lib/lxcfs │   0B/0B      │ fuse.lxcfs               ▓
║                                      /mnt/backup │ 3.21G/176.0G │ ext4                     ▓
║                                       /mnt/media │ 1.20G/100.0G │ fuseblk                  ▓
║                                      /mnt/custom │ 1.21G/146.5G │ ext4                     ▓
╟──────────────────────────────────────── home dirs ──────────────┼──────────────────────────▓
║                                        ~/Desktop │              │ ~/Desktop                ▓
║                                      ~/Documents │ :du          │ ~/Documents              ▓

...

╚═════════════════════════════════ Ins,Del,Shift-Del,F4,F9 ══════════════════════════════════╝

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions