[en] Fixing Ubuntu boot process after restoring tar backups to newly formatted disk (with UUID changed)

Mostly note to my self for futu­re reference.

What they don’t tell You in the tar bac­kup tuto­rial is that it’s not eno­ugh to edit /etc/fstab (and the­ir instruc­tions for grub are for grub-legacy).

Becau­se after resto­ring you pro­ba­bly have new par­ti­tion UUIDs, you must:

  • boot livecd
  • mount your root fs
  • mount -B /dev /rootfs/dev, etc. (with proc and sys at least) to be able to chro­ot from livecd to your root fs
  • chroot /rootfs
  • edit /etc/fstab and chan­ge UUIDs the­re (new ones you can get using blkid
  • do sudo dpkg-reconfigure -plow grub-pc to auto­ma­ti­cal­ly upgra­de grub con­fig files, just let it install to the drive(s) it was on
  • do update-initramfs -u so UUID sto­red insi­de ini­tramfs get upda­ted, too

Then you sho­uld be able to boot it.

Jeden komentarz do “[en] Fixing Ubuntu boot process after restoring tar backups to newly formatted disk (with UUID changed)

  1. Fan­ta­stic goods from you, man. I’ve take into acco­unt your stuff prior to and you’re sim­ply extre­me­ly excel­lent. I actu­al­ly like what you have bought right here, real­ly like what you are sta­ting and the best way in which you are say­ing it. You are making it enter­ta­ining and you still take care of to keep it sen­si­ble. I cant wait to read much more from you. This is actu­al­ly a won­der­ful web site.

Możliwość komentowania została wyłączona.