[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: UUID updates for dmcrypt/luks



Le 19/08/2011 11:24, Christian Jaeger a écrit :
> Hi
> 
> I've used the Debian installer (Sarge) for installing a system onto an
> SSD, using this layout:
> 
>  /dev/sda1  /boot
>  /dev/sda5  luks, -> sda5_crypt with "/"
>  /dev/sda6  /usr
> 
> After the installation finished, I realized that I should have aligned
> the partition boundaries. So I booted into GRML, backed up the file
> systems with tar, created a new partition table + filesystems
> manually, mounted, extracted the tars. Mounted in correct nesting plus
> /proc /sys /dev and chroot'ed inside, "grub-setup -d /boot/grub
> /dev/sda".
> 
> Now, the difficult part is figuring out all the locations where the
> system is using UUIDs (d'oh!), and maybe other information that has
> changed by me recreating the partition table.
> 
> I've updated /etc/fstab and /etc/crypttab and ran update-grub from
> within the chroot (while running GRML). 
[cut]

Hi, maybe you should have updated the initramfs too (update-initramfs).
But from the beginning you could have reverted the newly created
partitions uuid's to the old ones, for instance with "tune2fs -U
old_uuid /new/partition", this way no need to modify fstab, grub,
initramfs and whatnot.


Reply to: