Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #231473 > unrolled thread
| Started by | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| First post | 2021-02-07 19:50 +0100 |
| Last post | 2021-02-10 12:30 +0100 |
| Articles | 10 — 6 participants |
Back to article view | Back to linux.debian.user
Strange statistics from gparted Richard Owlett <rowlett@cloud85.net> - 2021-02-07 19:50 +0100
Re: Strange statistics from gparted Andrei POPESCU <andreimpopescu@gmail.com> - 2021-02-08 09:20 +0100
Re: Strange statistics from gparted "Thomas Schmitt" <scdbackup@gmx.net> - 2021-02-08 10:20 +0100
Re: Strange statistics from gparted David Wright <deblis@lionunicorn.co.uk> - 2021-02-08 16:10 +0100
Re: Strange statistics from gparted Richard Owlett <rowlett@cloud85.net> - 2021-02-08 12:10 +0100
Re: Strange statistics from gparted David <bouncingcats@gmail.com> - 2021-02-08 13:30 +0100
Re: Strange statistics from gparted "Andrew M.A. Cater" <amacater@einval.com> - 2021-02-08 10:30 +0100
Re: Strange statistics from gparted Richard Owlett <rowlett@cloud85.net> - 2021-02-08 13:10 +0100
Re: Strange statistics from gparted Richard Owlett <rowlett@cloud85.net> - 2021-02-10 11:40 +0100
Re: Strange statistics from gparted David <bouncingcats@gmail.com> - 2021-02-10 12:30 +0100
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2021-02-07 19:50 +0100 |
| Subject | Strange statistics from gparted |
| Message-ID | <BFXi9-1fc-5@gated-at.bofh.it> |
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? TIA ;}
[toc] | [next] | [standalone]
| From | Andrei POPESCU <andreimpopescu@gmail.com> |
|---|---|
| Date | 2021-02-08 09:20 +0100 |
| Message-ID | <BG9W1-KL-1@gated-at.bofh.it> |
| In reply to | #231473 |
[Multipart message — attachments visible in raw view] — view raw
On Du, 07 feb 21, 12:39:59, 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? > TIA ;} Based on the limited information available my best guess is that you are looking at different disk drives as the device names can change between boots. In any case, try comparing the outputs of 'parted -l' (needs root) and 'lsblk -f'. If you still see a discrepancy please paste the full output of both commands. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
[toc] | [prev] | [next] | [standalone]
| From | "Thomas Schmitt" <scdbackup@gmx.net> |
|---|---|
| Date | 2021-02-08 10:20 +0100 |
| Message-ID | <BGaS5-1rv-5@gated-at.bofh.it> |
| In reply to | #231485 |
Hi, Richard Owlett wrote: > > I am experimenting with custom installs of MATE on Debian 10.7 . > > [...] > > I have a default install with / on sda1. > > The custom install has / on sda2. > > [...] > > 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 Andrei POPESCU wrote: > Based on the limited information available my best guess is that you are > looking at different disk drives as the device names can change between > boots. If this turns out to be not the case: - Can it be that MATE stores a large amount of data when it gets shut down and deletes the files after a new startup ? (The respective active /-filesystem's usage seems to be smaller than the inactive /-filesystem.) - What does "du -s" tell about the mounted filesystems in both situations ? Have a nice day :) Thomas
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2021-02-08 16:10 +0100 |
| Message-ID | <BGgkN-4Xe-1@gated-at.bofh.it> |
| In reply to | #231488 |
On Mon 08 Feb 2021 at 10:15:22 (+0100), Thomas Schmitt wrote: > Richard Owlett wrote: > > > I am experimenting with custom installs of MATE on Debian 10.7 . > > > [...] > > > I have a default install with / on sda1. > > > The custom install has / on sda2. > > > [...] > > > 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 > > Andrei POPESCU wrote: > > Based on the limited information available my best guess is that you are > > looking at different disk drives as the device names can change between > > boots. > > If this turns out to be not the case: > > - Can it be that MATE stores a large amount of data when it gets shut down > and deletes the files after a new startup ? > (The respective active /-filesystem's usage seems to be smaller than > the inactive /-filesystem.) Well, the most obvious one is /tmp, assuming that it's "real". Booting up will normally clean this. (On occasions, I have had to boot up the other system on my disk to recover files I had accidentally left there.) > - What does "du -s" tell about the mounted filesystems in both situations ? Particularly after having mounted any other filesystems on the disk. Cheers, David.
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2021-02-08 12:10 +0100 |
| Message-ID | <BGcAy-2Ag-7@gated-at.bofh.it> |
| In reply to | #231485 |
On 02/08/2021 02:15 AM, Andrei POPESCU wrote: > On Du, 07 feb 21, 12:39:59, 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? >> TIA ;} > > Based on the limited information available my best guess is that you are > looking at different disk drives as the device names can change between > boots. No. The laptop has only a single hard disk. Also, the two installations were performed from the same USB flash drive. Both installs were configured to allow booting to either "root" or "user". > > In any case, try comparing the outputs of 'parted -l' (needs root) In both cases the result is: > Model: ATA SanDisk SDSSDA24 (scsi) > Disk /dev/sda: 240GB > Sector size (logical/physical): 512B/512B > Partition Table: msdos > Disk Flags: > > Number Start End Size Type File system Flags > 1 1049kB 8000MB 7999MB primary ext4 boot > 2 8000MB 40.0GB 32.0GB primary ext4 > 3 40.0GB 124GB 84.3GB primary ext4 > 4 124GB 240GB 116GB extended > 6 124GB 132GB 7999MB logical ext4 > 7 132GB 140GB 7999MB logical ext4 > 5 232GB 240GB 8000MB logical linux-swap(v1) > and > 'lsblk -f'. If you still see a discrepancy please paste the full output > of both commands. Difficult to compare as lsblk reports usage ONLY for mounted partitions while gparted reports values for mounted AND unmounted partitions. Cut-n-paste from both runs: > root@debian10-7-full:~# lsblk -f > NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT > sda > ├─sda1 ext4 debian-full f79f1db4-beb4-404b-85ae-18f8c037a424 3.2G 51% / > ├─sda2 ext4 home-all 7f20c788-c8ed-4a55-9571-9f528ac33909 27.7G 0% /home > ├─sda3 ext4 dvds b4e307a5-daaa-4c96-a13d-2efc211251de 5.6G 88% /dvds > ├─sda4 > ├─sda5 swap 6b892dcd-12af-4774-88c0-c53cd066cae3 [SWAP] > ├─sda6 ext4 debian-min fbd14c22-6ee7-4832-a22b-cdb8d7978abd > └─sda7 ext4 test-debian f23e8435-81b0-4b9d-bdba-d4d60f15052d > sr0 > root@debian10-7-full:~# > root@debian-min:~# lsblk -f > NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT > sda > ├─sda1 ext4 debian-full f79f1db4-beb4-404b-85ae-18f8c037a424 > ├─sda2 ext4 home-all 7f20c788-c8ed-4a55-9571-9f528ac33909 27.7G 0% /home > ├─sda3 ext4 dvds b4e307a5-daaa-4c96-a13d-2efc211251de 5.6G 88% /dvds > ├─sda4 > ├─sda5 swap 6b892dcd-12af-4774-88c0-c53cd066cae3 [SWAP] > ├─sda6 ext4 debian-min fbd14c22-6ee7-4832-a22b-cdb8d7978abd 5.3G 22% / > └─sda7 ext4 test-debian f23e8435-81b0-4b9d-bdba-d4d60f15052d > sr0 > root@debian-min:~#
[toc] | [prev] | [next] | [standalone]
| From | David <bouncingcats@gmail.com> |
|---|---|
| Date | 2021-02-08 13:30 +0100 |
| Message-ID | <BGdPX-3jV-1@gated-at.bofh.it> |
| In reply to | #231496 |
On Mon, 8 Feb 2021 at 22:09, Richard Owlett <rowlett@cloud85.net> wrote: > Difficult to compare as lsblk reports usage ONLY for mounted partitions > while gparted reports values for mounted AND unmounted partitions. The easiest solution will be to mount the partitions of interest somewhere before examining them with the appropriate tools. If you are interested in how gparted works, perhaps you might review your previous question on this topic: https://lists.debian.org/debian-user/2019/01/msg00910.html In particular: https://lists.debian.org/debian-user/2019/01/msg01106.html https://lists.debian.org/debian-user/2019/01/msg01112.html shows that gparted was using dumpe2fs. You can run that tool yourself. Maybe something like: # dumpe2fs -h /dev/sda1 | grep ^Free
[toc] | [prev] | [next] | [standalone]
| From | "Andrew M.A. Cater" <amacater@einval.com> |
|---|---|
| Date | 2021-02-08 10:30 +0100 |
| Message-ID | <BGb1M-1x2-3@gated-at.bofh.it> |
| In reply to | #231473 |
On Sun, Feb 07, 2021 at 12:39:59PM -0600, 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? > TIA ;} You may not have kept up with recent installers: the default size of swap is now smaller since it's almost never used. Did you install both exactly the same way using the same media? Andy Cater > > >
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2021-02-08 13:10 +0100 |
| Message-ID | <BGdwC-3dI-1@gated-at.bofh.it> |
| In reply to | #231489 |
On 02/07/2021 01:15 PM, Andrew M.A. Cater wrote: > On Sun, Feb 07, 2021 at 12:39:59PM -0600, 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? >> TIA ;} > > You may not have kept up with recent installers: the default size of swap > is now smaller since it's almost never used. > > Did you install both exactly the same way using the same media? > > Andy Cater I created a swap partition during the install of the first system. During the install of the second system I told the partitioning phase to NOT use the existing swap partition. I then copied the "swap line" from the /etc/fstab of the first install to the /etc/fstab of the second install. Thus both installs are using the same physical partition for swap.
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2021-02-10 11:40 +0100 |
| Message-ID | <BGV4B-5xp-9@gated-at.bofh.it> |
| In reply to | #231473 |
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}.
Elsewhere in this thread David pointed me to an old thread with a
discussion of gparted.
[https://lists.debian.org/debian-user/2019/01/msg00910.html]
[toc] | [prev] | [next] | [standalone]
| From | David <bouncingcats@gmail.com> |
|---|---|
| Date | 2021-02-10 12:30 +0100 |
| Message-ID | <BGVQZ-64n-3@gated-at.bofh.it> |
| In reply to | #231579 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web