Ditepi forst bott from SSD Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
zofri
Posts: 6
Joined: Fri Aug 17, 2018 9:31 am

Ditepi forst bott from SSD

Post by zofri »

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:

Code: Select all

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:

Code: Select all

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!
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Ditepi forst bott from SSD

Post by Joulinar »

Hi,

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

Code: Select all

cat /var/tmp/dietpi/logs/fs_partition_resize.log
as well let's check following

Code: Select all

lsblk -no SIZE,FSSIZE /dev/sda2
findmnt -no SIZE /
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
zofri
Posts: 6
Joined: Fri Aug 17, 2018 9:31 am

Re: Ditepi forst bott from SSD

Post by zofri »

fs_partition_resize.log:

Code: Select all

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:

Code: Select all

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

Code: Select all

root@DietPi:~# findmnt -no SIZE /
715.8M
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Ditepi forst bott from SSD

Post by Joulinar »

can you try to resize manually pls

Code: Select all

resize2fs /dev/sda2
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
zofri
Posts: 6
Joined: Fri Aug 17, 2018 9:31 am

Re: Ditepi forst bott from SSD

Post by zofri »

Thank You! It helped.
Post Reply