<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Doesn’t df -h give that info? Sorry if I misunderstood your question. <div><br id="lineBreakAtBeginningOfSignature"><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Feb 21, 2024, at 16:36, Kevin McGregor <kevin.a.mcgregor@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">With 'lsblk' I can get something like this:<div><font face="monospace">NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT<br>sda 8:0 0 20G 0 disk<br>└─sda1 8:1 0 20G 0 part<br> ├─vg0-root 253:0 0 15G 0 lvm /<br> └─vg0-var 253:1 0 5G 0 lvm /var<br>sdb 8:16 0 100G 0 disk<br>└─sdb1 8:17 0 100G 0 part<br> └─vg1-data 253:2 0 100G 0 lvm /mnt/data<br>sr0 11:0 1 1024M 0 rom</font><br></div><div><br></div><div>What I'm looking for is output like:</div><div>/ 15G</div><div>/var 5G</div><div>/mnt/data 100G</div><div><br></div><div>So I just want the size of the block devices which are actually mounted. I'm wondering what is the most reliable way to produce the second output. I can just grep for 'lvm', but I can't guarantee the mounts are all LVM type. I can grep for ' 253:', but is the 253 going to be reliable? What does 253 even mean?</div><div><br></div><div>From <a href="https://www.kernel.org/doc/html/latest/admin-guide/devices.html">https://www.kernel.org/doc/html/latest/admin-guide/devices.html</a> :</div><div><pre class="gmail-literal-block" style="line-height:1.3em;overflow:auto hidden;clear:both;font-family:Consolas,Menlo,"DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;font-size:0.9em;background:rgb(238,238,238);padding:7px 30px;margin-top:15px;margin-bottom:15px;color:rgb(62,67,73)">240-254 block LOCAL/EXPERIMENTAL USE
Allocated for local/experimental use. For devices not
assigned official numbers, these ranges should be
used in order to avoid conflicting with future assignments.</pre></div><div>... which isn't encouraging. Is that list outdated? grep for '/'s?</div><div><br></div></div>
<span>_______________________________________________</span><br><span>Roundtable mailing list</span><br><span>Roundtable@muug.ca</span><br><span>https://muug.ca/mailman/listinfo/roundtable</span><br></div></blockquote></div></body></html>