Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/boot not mounted by PARTUUID #7103

Open
1 task done
mw75 opened this issue Jun 10, 2024 · 3 comments
Open
1 task done

/boot not mounted by PARTUUID #7103

mw75 opened this issue Jun 10, 2024 · 3 comments

Comments

@mw75
Copy link

mw75 commented Jun 10, 2024

Creating a bug report/issue

  • I have searched the existing open and closed issues

Required Information

  • DietPi version | 9.5.1
  • Distro version | bookworm 0
  • Kernel version | Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • SBC model | RPi 4 Model B (aarch64)
  • Power supply used | 5V 5A
  • SD card used | none, booting from 2G Kingston USB

Additional Information (if applicable)

  • Software title | bare System
  • Was the software title installed freshly or updated/migrated?
    • Updated from the latest 9.4.? to 9.5.1
  • Can this issue be replicated on a fresh installation of DietPi?
    • Yes, repeated two times with different USB flash devices

Steps to reproduce

  1. dd if=DietPi_RPi-ARMv8-Bookworm.img of=/dev/
  2. mount first partition
  3. edit config.txt to change resolution to VGA
  4. edit dietpi-config.txt to enable wifi, disable ethernet, set country code and keyboard to "de"
  5. boot on rpi4 4gb
  6. fulfill the init wizard with 9.5.1 update and install vim and git with dietpi-software
  7. shutdown
  8. power cycle
  9. got stuck in ...ifupdown_online... and ...dev-disk-by...
  10. enter recovery shell by root password
  11. mount shows /boot is missing, root is fine
  12. cat /etc/fstab and compare /boot with blkid - all fine
  13. replace PARTUUID=f0cf2e93-01 with /dev/sda1
  14. works again

Expected behaviour

mounting by PARTUUID shold by possible

Actual behaviour

mount needs partition device file

Extra details

  • rebooted between 12 and 13
  • fsck'ed both partitions on an other pc
  • have NOT tried to get the problem back after successful boot
@MichaIng
Copy link
Owner

Did you check whether the actual PARTUUID of the boot partition matches the one in /etc/fstab?
You can do so from another Linux system, e.g. via

lsblk -no PARTUUID /dev/sda1

There you can also test to mount it with this PARTUUID, like so

mount PARTUUID=9f102456-01 /mnt/mountpoint

Replace the values accordingly.

@mw75
Copy link
Author

mw75 commented Jun 11, 2024

Please see action item 12 : "cat /etc/fstab and compare /boot with blkid - all fine"
blkid also shows the partuuid and they matched up perfectly. That is the reason for the first "Extra detail" - I've meant it should have worked....

@MichaIng
Copy link
Owner

MichaIng commented Jun 11, 2024

I am not sure how it can have this effect, but since it was one change in DietPi v9.5 and you mentioned it is stuck at ifupdown-sonething, can you try this, before reboot:

sed -i '/^[^#].*network-pre.target/s/^/#/' /etc/systemd/system/ifupdown-pre.service.d/dietpi.conf
systemctl daemon-reload
reboot

Respectively remove/comment the two network-pre.target lines in /etc/systemd/system/ifupdown-pre.service.d/dietpi.conf?

And can you rule out that it is a powering/voltage issue? I.e. those are USB sticks only, no 2.5" drives, otherwise have a dedicated PSU? And there are no voltage or I/O errors in kernel logs?

dmesg -l 0,1,2,3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants