[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange statistics from gparted



On Wed, 10 Feb 2021 at 21:35, Richard Owlett <rowlett@cloud85.net> wrote:
> On 02/07/2021 12:39 PM, Richard Owlett wrote:

> > I am experimenting with custom installs of MATE on Debian 10.7 .
> > My goal is to minimize its footprint on disk, and reduce menu clutter.
> > I have a default install with / on sda1.
> > The custom install has / on sda2.
> > Both installs use /sda3 for /home.

> > When running gparted from the first, it reports
> >    sda1 used space is 3.85 GB
> >    sda2 used space is 2.25 GB

> > When running gparted from the second, it reports
> >    sda1 used space is 4.77 GB
> >    sda2 used space is 1.80 GB

> > Why?

> The short answer is that gparted uses dumpe2fs which requires partition
> to be mounted {perhaps read only}.

That's untrue. Demo:

root@kablamm:~# umount -v /dev/sdb1
umount: /dev/sdb1: not mounted.
root@kablamm:~# dumpe2fs -h /dev/sdb1 | grep ^Free
dumpe2fs 1.44.5 (15-Dec-2018)
Free blocks:              2721787
Free inodes:              792525

It seems too that you missed the point that gparted apparently
uses dumpe2fs to examine *unmounted* partitions.

It is also puzzling why you don't just mount any partition (that
you are curious about) somewhere and run 'df'?

Are you aware that you can easily access partitions that aren't
mounted automatically? Just mount them yourself, using the
'mount' command.


Reply to: