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


Groups > linux.debian.user > #204866

Re: Partition information as text file?

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From "Thomas Schmitt" <scdbackup@gmx.net>
Newsgroups linux.debian.user
Subject Re: Partition information as text file?
Date Thu, 31 Jan 2019 16:00:01 +0100
Message-ID <xmlYR-5UK-7@gated-at.bofh.it> (permalink)
References <xmlma-5Hu-1@gated-at.bofh.it>
X-Mailbox-Line From debian-user-request@lists.debian.org Thu Jan 31 14:56:30 2019
Old-Return-Path <scdbackup@gmx.net>
X-Amavis-Spam-Status No, score=-7.699 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding 8bit
X-Provags-ID V03:K1:5ysbEVSxDpr36n4h0GYp/WKRSxT5XrGxohsaPQmjDpu3fRP9YMg Qx3GBlF2LrmhsWQKwP0eDWLyqjDwABaZYe5MstIDL+PQXa50/y799UpOQn3/A+qH7UHcJ/Z BldAjKYrWegkcfF4l43vBvwwj34OTTRBRZBzsOqsZKIFc7xRh7oxsAV0MEtfKZCP9jB61yw QWaQS9SSHfC4QP82dDoMQ==
X-Ui-Out-Filterresults notjunk:1;V03:K0:izZu2XBdBrc=:oHuJKN8ZEGlsti6rpJdOuX IiA/WuwfwTh4W+Nu4edZqJyZfLIdlAiM+uGAaGWKilssGf0cIUJnBv766zX9ysZnDYLAWeuLs Q63sVe+oZBOGhWO2PwIptfJZq/e3tSdVZZcDAaJQhbwTs9EBfTnr6s2VMy8PoFdgWwcvXdhfj Q3e6oEatJ9DkQm3KmT6btQ1zeEyAYI/WIzEau1KDlQC9xNxUPQ77jIjkjJcjWGJyQgs7m+odb GKCu+oX51usYQB9wrZB9QFYKjoEKbg/YqiDgSCbdWN3JKccQ61ZwIbeD8Skm7cpl2SVuUCsq+ iu3u1GjbGhHnuHitf2H2ajh6b48+5oXlFp3qpIaior/QbRucjOWuylqKq7xiTj4yCUflENN+s //x7bTJqJDMwRAsFW5HiYVMKFCCMCx3eBfw3g9L9P5PNNlpHqm7ho9Q7z1lcB7H7+sJJJ7h5v LLy83lgjvL8rH7nKtZD9ViNbCH5I2WJTxHFr/DISLlxYM94SJunh2RO82ovRJCiHGNZd6j8Lb N6XHolrRi47yqrSBmLGphM+l/KtSBllLzFyXA7lkCG7LEpywGHMjJYX3cSzdTUe1qmNrzE2ri 2pqQw2avrsMLQ+DfkhXoO5EXM+K3ITLfwfE154V1tnsCTLLLiC2eotRw42zUBR+HS2NKlPtFC cb5kmXKQQnjlOyU5SpkQTOIpnom/Q40y1rXx0d8YhUV/KIKJCAnNewhL51h02kTIpJ3wa+Kjn Kz3CtlqprJz0COX3REyvBbsOoSBSe5BSeCwo2GYQ51yhDZCrXlmN0ID1eLRWTUzYvK2mX3Yuz OhaytYVNdrEJ24HSoxFFZloZpqwwu6Uri8F5wXFjQwD3B/YR+I4Sf3oCQprG6HzBkdZuO1fwm PI2u4wgAJjD99vbXqjcEog+w9wECBXKfi+2ZrKfgmFG7s0m+lMWQ/mXNiew6OfTPoabGGBxfe mdn/Z8Ed6mw==
X-Mailing-List <debian-user@lists.debian.org> archive/latest/744845
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/15762687220605177347@scdbackup.webframe.org
Approved robomod@news.nic.it
Lines 33
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 31 Jan 2019 15:54:57 +0100
X-Original-Message-ID <15762687220605177347@scdbackup.webframe.org>
X-Original-References <7a006d60-a88d-b5fe-6b14-56e8cb1e2017@cloud85.net>
Xref csiph.com linux.debian.user:204866

Show key headers only | View raw


Hi,

Richard Owlett wrote:
> Though I not a C programmer, their organization leads to answers for my
> questions [even a few I hadn't asked].

It's C++ in this case. (bleh ...)

But what i meant is that Gparted runs external programs, which a simple
shell script could do too.

https://github.com/GNOME/gparted/blob/master/src/ext2.cc#L147
uses
  dumpe2fs -h ...partition.path...
and if the partition is not mounted 
  resize2fs -P ...partition.path...

https://github.com/GNOME/gparted/blob/master/src/fat16.cc#L129
uses
  fsck.fat -n -v ...partition.path...
or if that is not present
  dosfsck -n -v ...partition.path...

The Gparted C++ code then looks for particular text snippets in the
output of the programs in order to read the numbers which follow.

One may suck more hints from the programmers' comments in the lines
which begin by "//".


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