diskspace

Ralf Mardorf silver.bullet at zoho.com
Sun May 3 06:49:17 UTC 2020


On Sun, 2020-05-03 at 04:23 +0000, Zahid Rahman wrote:
> Can you please explain something that has always confused me about
> free space.

Hi,

you didn't mount a partition, you mounted a compressed read-only file
system, so the sizes shown are related to the contend of the compressed
read-only file system. Your expectation is wrong, not the displayed
size, see https://en.wikipedia.org/wiki/Loop_device and 
https://en.wikipedia.org/wiki/SquashFS .

If you mount a real bootable persistent live install, instead of an
image, sizes as _you_ expect them are shown.

An USB stick with a persistent NomadBSD install:

$ sudo fdisk -l /dev/sdf
Disk /dev/sdf: 28.87 GiB, 30972837888 bytes, 60493824 sectors
Disk model: TransMemory     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x90909090

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdf1             64    81983    81920   40M ef EFI (FAT-12/16/32)
/dev/sdf2  *       81984  8286271  8204288  3.9G a5 FreeBSD
/dev/sdf3        8286272 30320639 22034368 10.5G a5 FreeBSD
/dev/sdf4       30320640 60493823 30173184 14.4G  5 Extended
/dev/sdf5       30322688 56512511 26189824 12.5G 83 Linux
/dev/sdf6       56514560 60493823  3979264  1.9G 82 Linux swap / Solaris
$ sudo mkdir /mnt/linux && sudo mount /dev/sdf5 /mnt/linux
$ df -h /mnt/linux/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdf5        13G   32M   12G   1% /mnt/linux
$ sudo umount /mnt/linux
$ sudo rmdir /mnt/linux/

At the moment the Linux partition is empty, I'll try to make a dual boot
NomadBSD and a Linux, but at the moment only NomadBSD is installed.

Regards,
Ralf





More information about the ubuntu-users mailing list