Thank you for DietPi, this is exactly what I was been looking for.
However, is there a way to disable the automatic file expansion feature ? I need to define other partitions to fit my project’s needs.
Or is it possible to reduce the expanded partition after DietPi has expanded ?
I’m lost with all the tutos about partitionning on linux… and I can’t find a way to achieve it.
Thank you ! I’ve modified the Dietpi image to set a size to the expanded partition. It perfectly works.
Madar
Edit : Only filesystem was set to the good size. So I finally used the first method : using gparted on an ubuntu machine. Now everything is ok. Thank you !
New question : I now wish to protect my Pi booting on read only filesystem except for the new partition I’ve created that I will use for keeping pesistent data changes. Do you have a good tutorial entry point ? I’ve followed some, but it seems it doesn’t work so well. There were many errors during boot and sometimes whole system is freezing.
Yes it works. Thank you. I’ve also added ‘ro’ at the end of the cmdline.txt file.
What does ‘errors=remount-ro’ stands for exactly ? If I’m on a readonly system, it should not have any error at all, isn’t it ?
Do you think it’s mandatory ?
If the partiton has an filesystem error (eg: corrupt data due to power loss), ‘errors=remount-ro’ will mount the partition as read only to prevent further damage.
As your always mounting the drive as read only, you can remove this flag. However, there is also no harm in leaving the flag in there.