Web lists-archives.com

Re: Partition information as text file?

Richard Owlett composed on 2019-01-26 08:32 (UTC-0600):

> I am attempting to create a spreadsheet to document the content of 
> multiple disks of multiple machines.

> Gparted displays the desired information.
> *HOWEVER* I see no way to capture the information.

> At the command line using "lsblk -o NAME,FSTYPE,LABEL /dev/sdb" gives 
> most of the desired information.

> It omits partition size, used space, and unused space.

> Suggestions?

I don't use a spreadsheet. I use the logs automatically created by the non-FOSS
partitioner I use, DFSee. Various examples of its logs are here:


http://fm.no-ip.com/Tmp/Dfsee/gb250L04.txt is from GPT partitioning for UEFI.

The gb250 is the hostname. The L04 is serialization of the report's creation. It's
content is reduced to that which I find useful data for tracking what's where among
my 100+ disks.

Sometimes I append output from lsblk or parted -l.

hdparm and smartctl might also provide some of what you're looking for.
Evolution as taught in public schools is religion, not science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/