[HASSBIAN] Disk space

Hi, I have a question when i do df -h I have this :

pi@hassbian:/ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.8G 1.6G 51M 98% /
devtmpfs 460M 0 460M 0% /dev
tmpfs 464M 0 464M 0% /dev/shm
tmpfs 464M 13M 452M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 464M 0 464M 0% /sys/fs/cgroup
/dev/mmcblk0p1 43M 22M 22M 51% /boot
tmpfs 93M 0 93M 0% /run/user/1000

Is it normal I have 98% for /dev/root and continues to increase?

I do sudo raspi-config --expand-rootfs

Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): Disk /dev/mmcblk0: 14.9 GiB, 15942549504 bytes, 31137792 sectors
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: 0x8b1b28e3

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 97459 89268 43.6M c W95 FAT32 (LBA)
/dev/mmcblk0p2 98304 31137791 31039488 14.8G 83 Linux

Command (m for help): Partition number (1,2, default 2):
Partition 2 has been deleted.

Command (m for help): Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (2048-31137791, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (98304-31137791, default 31137791):
Created a new partition 2 of type ‘Linux’ and of size 14.8 GiB.
Partition #2 contains a ext4 signature.

Command (m for help):
Disk /dev/mmcblk0: 14.9 GiB, 15942549504 bytes, 31137792 sectors
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: 0x8b1b28e3

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 97459 89268 43.6M c W95 FAT32 (LBA)
/dev/mmcblk0p2 98304 31137791 31039488 14.8G 83 Linux

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).

Please reboot

I reboot but nothing changed :frowning:

Thanks for you help

1 Like

After search, it seem works with this command :

sudo resize2fs /dev/mmcblk0p2

I just ran into this myself. I’m new to hassbian, so I don’t know if this is status quo or not. With vanilla raspbian, I’m used to the expansion happening automagically on first boot.

I know this doesn’t help explain what happened, but I just wanted to let you know you’re not alone in the issue.

I think it’s due to the memory card used. If it’s new, I think the problem is not happening.

FYI: sudo raspi-config

Do read my first post ? You 'll see this command “sudo raspi-config” don’t work for us.!!
The solution is “sudo resize2fs /dev/mmcblk0p2”

I did. I also read you passed it the disk expand parameter.

My suggestion was to literally use the menu option instead.