Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #204888

Re: Partition information as text file?

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject Re: Partition information as text file?
Date 2019-02-01 15:10 +0100
Message-ID <xmHG2-2yT-9@gated-at.bofh.it> (permalink)
References <xmqc9-ai-1@gated-at.bofh.it> <xmqOR-DS-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/31/2019 02:03 PM, Thomas Schmitt wrote:
> Hi,
> 
> Richard Owlett wrote:
>>>> What bugs me is Gparted [though it does not output text]  reports
>>>> used/unused space on each partition/file system.
> 
> i wrote:
>>> [...] Gparted runs external programs, which a simple
>>> shell script could do too.
> 
> David Wright wrote:
>> So going back to the OP, is this a sensible approach to choose instead
>> of letting mount and df figure things out for themselves?
> 
> It's what Gparted does and what Richard mentioned as example of the desired
> information.

I'd make that statement stronger.
My starting point was Gparted displays *ALL* the desired information for 
*ALL* members of the set [ /dev/sd* ] whether mounted or not.

That PROVED that what I wanted was possible.

It's "suitability to purpose" was degraded on *2* counts:
1. it does not output the data as a text file.
2. it displays information for only 1 device at a time.

> Given that the source code of Gparted is published, we do not
> have to speculate how it does this, but rather can riddle over its C++ code.

Having known working source code for a program that almost meets my 
needs/desires remedies a major deficiency of the man page format --
  [/begin_rant   almost total lack of examples /end_rant ;]

> 
> (The ext2 specific code distinguishes between mounted and not mounted
>   partitions. The FAT related code seems not to do.)
> 
> 
> Have a nice day :)
> 
> Thomas
> 
> 
> 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-01-26 15:40 +0100
  Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-01-26 18:10 +0100
  Re: Partition information as text file? Felix Miata <mrmazda@earthlink.net> - 2019-01-26 20:40 +0100
    Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-01-26 22:20 +0100
      Re: Partition information as text file? "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-01-26 23:00 +0100
      Re: Partition information as text file? Felix Miata <mrmazda@earthlink.net> - 2019-01-27 03:10 +0100
      Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-01-27 22:30 +0100
        Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-01-28 13:50 +0100
          Re: Partition information as text file? Ionel Mugurel Ciobîcă <I.M.Ciobica@gmail.com> - 2019-01-28 16:50 +0100
          Re: Partition information as text file? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-01-28 20:50 +0100
            Re: Partition information as text file? <tomas@tuxteam.de> - 2019-01-29 15:40 +0100
              Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-01-29 16:30 +0100
                Re: Partition information as text file? <tomas@tuxteam.de> - 2019-01-29 16:40 +0100
                Re: Partition information as text file? "Thomas Schmitt" <scdbackup@gmx.net> - 2019-01-29 17:20 +0100
                Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-01-31 15:20 +0100
                Re: Partition information as text file? "Thomas Schmitt" <scdbackup@gmx.net> - 2019-01-31 16:00 +0100
                Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-01-31 20:30 +0100
                Re: Partition information as text file? "Thomas Schmitt" <scdbackup@gmx.net> - 2019-01-31 21:10 +0100
                Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-02-01 15:10 +0100
                Re: Partition information as text file? "Thomas Schmitt" <scdbackup@gmx.net> - 2019-02-01 15:30 +0100
                Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-02-01 16:10 +0100
                Re: Partition information as text file? <tomas@tuxteam.de> - 2019-02-01 16:30 +0100
                Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-02-01 17:10 +0100
                Re: Partition information as text file? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-02-01 19:40 +0100
                Re: Partition information as text file? <tomas@tuxteam.de> - 2019-02-01 22:30 +0100
                Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-02-01 17:20 +0100
                Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-02-01 18:10 +0100
                Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-02-02 02:10 +0100
                Re: Partition information as text file? <tomas@tuxteam.de> - 2019-02-02 11:00 +0100
                Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-02-02 16:30 +0100
                Re: Partition information as text file? <tomas@tuxteam.de> - 2019-02-02 17:20 +0100
                Re: Partition information as text file? rhkramer@gmail.com - 2019-02-01 17:00 +0100
                Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-02-01 17:10 +0100
                Re: Partition information as text file? Felix Miata <mrmazda@earthlink.net> - 2019-02-01 17:20 +0100
                Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-02-01 17:30 +0100
                Re: Partition information as text file? Joe <joe@jretrading.com> - 2019-02-01 19:10 +0100
                Re: Partition information as text file? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-01 19:20 +0100
                Re: Partition information as text file? Dan Ritter <dsr@randomstring.org> - 2019-02-01 19:30 +0100
                Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-02-01 23:10 +0100
                Re: Partition information as text file? Peter Ehlert <peter@sdi-baja.com> - 2019-01-29 17:40 +0100
                Re: Partition information as text file? Jude DaShiell <jdashiel@panix.com> - 2019-01-29 19:00 +0100
            Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-01-29 15:40 +0100
              Re: Partition information as text file? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-01-29 21:10 +0100
                Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-01-30 16:10 +0100
                Re: Partition information as text file? <tomas@tuxteam.de> - 2019-01-30 17:00 +0100
                Talking about loop devices (was: Re: Partition information as text file?) David <bouncingcats@gmail.com> - 2019-01-31 02:20 +0100
                Re: Talking about loop devices (was: Re: Partition information as  text file?) David <bouncingcats@gmail.com> - 2019-01-31 04:50 +0100
                Re: Talking about loop devices (was: Re: Partition information as  text file?) <tomas@tuxteam.de> - 2019-01-31 10:10 +0100
                Re: Talking about loop devices Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-01-31 20:00 +0100
                Re: Talking about loop devices David <bouncingcats@gmail.com> - 2019-02-01 06:30 +0100
                Re: Partition information as text file? Joe <joe@jretrading.com> - 2019-01-30 17:10 +0100
                Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-01-31 15:30 +0100
                Re: Partition information as text file? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-01-30 19:50 +0100
              Re: Partition information as text file? David <bouncingcats@gmail.com> - 2019-01-30 03:10 +0100
                Re: Partition information as text file? Richard Owlett <rowlett@cloud85.net> - 2019-01-30 16:20 +0100
          Re: Partition information as text file? David Wright <deblis@lionunicorn.co.uk> - 2019-01-29 19:30 +0100

csiph-web