Broke my install while resizing root partition

My YunoHost server

Hardware: Raspberry Pi 2b at home, micro-SD card class A1 (128 Go) for OS + 500 GB USB HDD for backups
YunoHost version: 4.4.2.14
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : No

Description of my issue

Hello,
I used another computer to reduce my root partition in order to clone my system on a smaller SD card (that is another story)
After that, my system couldn’t boot. It stucked here :

I managed to fix it, but quite randomly, editing /etc/fstab :

from :

proc            /proc           proc    defaults          0       0
PARTUUID=6a1c0ec9-01  /boot           vfat    defaults          0       2
PARTUUID=6a1c0ec9-02  /               ext4    defaults,noatime  0       1
UUID="be8b9dcf-6202-4d77-b3c7-de1758a99047" /media/usb-hdd ext4 defaults,nofail 0 0
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

to :

proc            /proc           proc    defaults          0       0
UUID="EBB0-D8C8"  /boot           vfat    defaults          0       2
UUID="b2ec542f-c9f9-46c1-8436-73536ef689e7"  /               ext4    defaults,noatime  0       1
UUID="4e40236e-b36d-4b83-874e-fa9da92a56dc" /media/usb-hdd ext4 defaults,nofail 0 0
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

and I changed /boot/cmdline.txt:

console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

I forgot how it was before, sorry --" But i never changed it before. In my memory the root argument was like
root=PARTUUID=6a1c0ec9-02

So my questions are :

  • How resizing a partition broke the boot ?
  • Why the partitions are named using PARUUID ? I read somewhere that it is only used for GPT tables, and I have a MBR table
  • Can we fix it so that I can backup my system and restore it on another SD card using raspibackup ? (I guess that changing device, will change partitions UUID and won’t work)

Thank you in advance. I hope that i am clear ^^ (I’m French)

Je n’ai pas encore touché aux partitions sur mon système Yunohost, mais en dehors de ça, j’ai pris l’habitude - ou plutôt, j’ai gardé l’habitude - d’étiqueter mes partitions et de les référencer dans mon fstab avec “LABEL=…”. Parce qu’il arrive parfois que les UUID soient modifiés par je-ne-sais-quelle-opération-du-saint-esprit et c’est la galère quand il faut les ressaisir dans le fichier.

1 Like

Merci ! Je ne connaissais pas. Ca fonctionnerait comment dans mon cas ? (/boot et / sont sur la carte micro-SD du raspberry pi)

Par défaut j’ai l’impression que c’était PARTUUID, que je ne connaissais donc pas non plus. Et d’après mes recherches, c’est fait pour les tables GPT alors que je suis en MBR, donc je ne sais pas comment ça marchait avant ^^

Bon au pire, ça fonctionne tel quel :slight_smile: Mais lorsque je restaure avec raspibackup sur une nouvelle carte, je dois juste actualiser les UUID dans le fstab.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.