DmitryMyadzelets / inxi

Automatically exported from code.google.com/p/inxi
0 stars 0 forks source link

inxi request #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How about having an option to list info of all mounted patitions?
At the moment I get this:

[code]
$ inxi -F
System:    Host antiX-M8 running  Linux 2.6.27-7-antix-486-smp i686 Distro
antiX-M8-Test1 Bolshevik 08 Nov 2008
CPU:       Dual Core AMD Athlon 64 X2 4200+ cache 1024 KB flags (sse3 nx lm
svm) bmips 3990.44
           Clock Speeds: (1) 1000.00 MHz (2) 1000.00 MHz
Graphics:  Card nVidia GeForce 8400 GS X.Org 1.4.2 Res 1024x768@50.0hz
           GLX Renderer GeForce 8400 GS/PCI/SSE2/3DNOW! | GLX Version 2.1.2
NVIDIA 177.82
Audio:     Card ATI SBx00 Azalia (Intel HDA) driver HDA Intel
           Sound: Advanced Linux Sound Architecture Version 1.0.17
Network:   Card Realtek RTL8111/8168B PCI Express Gigabit Ethernet
controller driver r8169 v: 2.3LK-NAPI at port e800
Disks:     HDD Total Size: 480.1GB (18.1% used) 1: /dev/sda WDC
WD1600AAJS-0 160.0GB 2: /dev/sdb ST3320620AS 320.1GB
Partition: ID:/ size: 30G used: 17G (59%) ID: swap:/dev/sda2 size: 1.12GB
Info:      Processes 89 Uptime 20:37 Memory 178.3/3042.3MB Client Shell
inxi 0.7.1
[/code]
I also have sda5(Audio) and sda7(Video) set to mount at boot. It would be
nice to see how much free space is available.

Good idea or not?

Original issue reported on code.google.com by antix1917@gmail.com on 24 Nov 2008 at 9:30

GoogleCodeExporter commented 9 years ago
Updated to show more partition information with -p option. -p is NOT triggered 
by -F, to avoid spamming.

Also, for user protection, if the username appears in the path, 
ie: /home/yourname/something it is replaced by ### automatically.

Also added /tmp and /usr to -P output.

Because some tester file systems had spaces in their names, which breaks the 
method, any file system with a space in its path name will fail in most cases 
to 
show up, that avoids silly output errors.

Added correct filtering by filesystem type as well, currently aufs, tmpfs, and 
iso9660 are not shown, any others that appear in the future will be added.

I'm marking this issue almost closed, but again, the code to do this was not 
elegant, so it could be improved.

This is as of version 0.8.x

Original comment by inxi-...@techpatterns.com on 3 Dec 2008 at 11:38

GoogleCodeExporter commented 9 years ago

Original comment by Trash80.v2.0@gmail.com on 17 Dec 2008 at 4:47