Ditepi forst bott from SSD

Hi!

I have an 480GB SSD, and tried to boot from it.

I downloaded the dietpi image, and flashed to my SSD, then connected the SSD to the PI, and booted.

Dietpi update fails by: Free space check: path=/ | available=84 MiB | required=100 MiB

It seems /dev/root is too small.

This is df -h output:

root@DietPi:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       716M  579M   84M  88% /
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           1.9G  8.3M  1.9G   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs            50M  8.0K   50M   1% /var/log
tmpfs           1.9G     0  1.9G   0% /tmp
/dev/sda1       253M   50M  203M  20% /boot

fdisk:

root@DietPi:~# fdisk -l /dev/sda
Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: Generic         
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x9730496b

Device     Boot  Start       End   Sectors   Size Id Type
/dev/sda1         8192    532479    524288   256M  c W95 FAT32 (LBA)
/dev/sda2       532480 937703087 937170608 446.9G 83 Linux

What can i do with it? Can i resize /dev/root? If yes, how?
Please, help me!

Hi,

usually resize should be done during first boot. Let’s have a look

cat /var/tmp/dietpi/logs/fs_partition_resize.log

as well let’s check following

lsblk -no SIZE,FSSIZE /dev/sda2
findmnt -no SIZE /

fs_partition_resize.log:

Removed /etc/systemd/system/local-fs.target.wants/dietpi-fs_partition_resize.service.
Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: Generic         
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x9730496b

Old situation:

Device     Boot  Start     End Sectors   Size Id Type
/dev/sda1         8192  532479  524288   256M  c W95 FAT32 (LBA)
/dev/sda2       532480 2088623 1556144 759.9M 83 Linux

/dev/sda2: 
New situation:
Disklabel type: dos
Disk identifier: 0x9730496b

Device     Boot  Start       End   Sectors   Size Id Type
/dev/sda1         8192    532479    524288   256M  c W95 FAT32 (LBA)
/dev/sda2       532480 937703087 937170608 446.9G 83 Linux

The partition table has been altered.

lsblk:

root@DietPi:~# lsblk -no SIZE,FSSIZE /dev/sda2
446.9G 715.8M

findmnt -no SIZE /:

root@DietPi:~# findmnt -no SIZE /
715.8M

can you try to resize manually pls

resize2fs /dev/sda2

Thank You! It helped.