root@rockpi2:~# cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=20
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='applied'
- Distro version | bookworm
- Kernel version |
Linux rockpi2 5.15.93-rockchip64 #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 aarch64 GNU/Linux
- Architecture |
arm64
- SBC model |
ROCK 4 (aarch64)
- Power supply used | 2.5amp usb-c provided by Nebra (repurposed hotspot miner)
- SD card used | Sandisk > EMMC (I’ve done this on another Rock Pi without the resize issue)
Steps to reproduce
Unsure exactly but here’s what I think happened…
flash dietpi for rockpi4 board to sandisk SD card
boot the rockpi from the SD and complete the dietpi basic install
use dd to copy the 16G SD contents to the 32G EMMC using these instructions
- Here’s where there is a difference in how I did this on my 2 Rock Pi boards - On the first I let DD run from start to finish. On this one, I used ctl + c to interrupt it. I forgot that DD needed to copy the entire 16GB partition over to the EMMC and thought that something was wrong when it got to 8GB copied for an OS with only ~500mb of files - my mistake.
poweroff, remove the SD card, boot, everything runs just fine!
use the dietpi-drive_manager resize function (no obvious issue), and reboot
do lsblk
and see this (28.9G)
mmcblk1 179:0 0 28.9G 0 disk
└─mmcblk1p1 179:1 0 28.9G 0 part /
do 'fdisk -l` and get this (28.9G)
Disk /dev/mmcblk1: 28.91 GiB, 31037849600 bytes, 60620800 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: 0x97bfc449
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 * 32768 60620799 60588032 28.9G 83 Linux
do df -h
and get this (16G)
Filesystem Size Used Avail Use% Mounted on
udev 919M 0 919M 0% /dev
tmpfs 199M 2.9M 196M 2% /run
/dev/mmcblk1p1 16G 546M 15G 4% /
tmpfs 991M 0 991M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 990M 0 990M 0% /tmp
tmpfs 50M 8.0K 50M 1% /var/log
At one point in my googling I found the path for the dietpi-drive_manager log file, but I’m unable to locate that again for sharing here.
Before I run fdisk
to recreate the root partition, I wanted to ask if there is a best way to try to resolve this. My concern is that fdisk -l
reports the start sector as 32768
and when I start to recreate the partition with fdisk the first sector is 2048
. I’m afraid of wiping something out that might be required for booting off the EMMC…
Thanks for any insights/tips.