fancy-motd icon indicating copy to clipboard operation
fancy-motd copied to clipboard

Visibility issue when a lot of disks are mounted

Open rpelissi opened this issue 10 months ago • 1 comments

Hi! First, let me tell you that I really love this tool!! :)

I have this small issue and wanted to let you know about it. It's not an issue per say but maybe an improvment. I have a system where a lof of disks are mounted so when the motd detect and display them, it became barely readable, like:`

$ ./fancy-motd/motd.sh

Logged as:     [email protected]
OS:            Red Hat Enterprise Linux Server 7.9 (Maipo)
IP addresses:  10.55.20.30
Uptime:        5 weeks, 2 days, 8 hours, 11 minutes
Load average:  0.00, 0.01, 0.05
Memory:        RAM - 9.4G used, 494G available             / 503G
               [================================================]
               Swap - 0 used, 14 available                   / 14
               [================================================]
Disk space:    os-root (/) - 36G used, 65G free            / 100G
               [================================================]
               sda2 (/boot) - 197M used, 251M free         / 477M
               [================================================]
               sda1 (/boot/efi) - 8.2M used, 192M free     / 200M
               [================================================]
               os-data0 (/data0) - 787M used, 231G free    / 232G
               [================================================]
               sdb1 (/data1) - 33M used, 1.7T free         / 1.7T
               [================================================]
               sdk1 (/data10) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdl1 (/data11) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdm1 (/data12) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdn1 (/data13) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdo1 (/data14) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdp1 (/data15) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdq1 (/data16) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdr1 (/data17) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sds1 (/data18) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdt1 (/data19) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdc1 (/data2) - 33M used, 1.7T free         / 1.7T
               [================================================]
               sdu1 (/data20) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdy1 (/data24) - 33M used, 1.7T free        / 1.7T
               [================================================]
               sdd1 (/data3) - 33M used, 1.7T free         / 1.7T
               [================================================]
               sde1 (/data4) - 33M used, 1.7T free         / 1.7T
               [================================================]
               sdf1 (/data5) - 33M used, 1.7T free         / 1.7T
               [================================================]
               sdg1 (/data6) - 33M used, 1.7T free         / 1.7T
               [================================================]
               sdh1 (/data7) - 33M used, 1.7T free         / 1.7T
               [================================================]
               sdi1 (/data8) - 33M used, 1.7T free         / 1.7T
               [================================================]
               sdj1 (/data9) - 33M used, 1.7T free         / 1.7T
               [================================================]
               os-home (/home) - 7.9G used, 43G free        / 50G
               [================================================]
               os-log (/var/log) - 1.9G used, 49G free      / 50G
               [================================================]
Updates:       N/A available

Is there a way to either filter out some mounts or when the number of disks if more than X just to a summary like Mor than 10 mounts detecteds, only displaying the first 10

or maybe add a column to display the remaining mounts/disks.

Just put some ideas here.

Again thank you for this!!! R.

rpelissi avatar Mar 06 '25 23:03 rpelissi

Hi, thank you for the kind words.

Unfortunately, I don't use this project anymore, and I don't really plan on putting in any more work into it. That being said, if you'd like to tackle the issue yourself, I will accept a PR.

bcyran avatar Mar 09 '25 11:03 bcyran