Welcome. I installed the debian on the hdd disk and run the SPI Flash method. Everything works properly except for system restart. The "Sudo shutdown -r now" switches off the system. Please help me - how can I restart the system correctly? Thank you.
Unfortunately Sudo reboot, sudo shutdown -r now, sudo init 6", none of these commands work properly. LEDs are off and the system does not stand up. If it installs on the eMMC card everything works properly. Maybe a delay is needed for the system to start from hdd? Can anyone check it at home or suggest how to do it?
Greetings
01-19-2022, 09:30 AM
(This post was last modified: 01-19-2022, 10:18 AM by Ellesar Dragon.)
hi rontant, does this just directly change the file system at boot similar to how you would do it with fstab, but than by directly doing so at the most early stages of boot?
and do I need to add a automaounting script or will this automount it. further I wondered if I need to manually unmout the micro sd card after boot by adding a command to some init script, or is there a more easy way to tell this config to auto unmount the micro sd, or to mount it as read only? this is because the micro sd cards tend to fry themselves whenever there is a power outage if they are mounted in read mode, in a ssd this tends to just result in some corrupted data which often is fixable, but I preffer to not constantly replace the micro sd, it was fast enough for my case, but not durable which is why I wanted to switch it to ssd.
also why cp instead of dd? is it just a preference or does it have a technical reason such as a speed difference or such?
and thanks for this post. on the Pine a64+ there doesn't seem to be any normal way of booting from USB/ssd. otherwise I would likely have dd'd the os to the ssd and then after boot mounted everything to the USB to unmount the ssd after that.
on the pine a64+ with armbian(latest stable releas as of now),
sudo nano /boot/efi/extlinux/extlinux.conf
is
sudo nano /boot/armbianEnv.txt
for anyone seeking how to do it there. it is most easy and secure to use
sudo lsblk -f
to find the uuid of your drive this way you can just copy paste it.
The rest is just the same, you reboot and the drive you set the UUID of will be used to boot.
as extension on my question above this it: I didn't see a mountpoint for the microsd, neither was anything mounted in /mnt or /media, so it seems like I won't need to manually unmount it. it did however show 2 zmem drives, so I have to check if the micro sd is not secretly still being used for swap memory, have to figure out how to check and potentially fix that it it actually still uses it as swap. but if it doesn't and the micro sd is really not mounted or used anywhere except for at boot, then I won't need to do anything anymore and this was a much simpler tourney than expected.