Cloning a Drive in Linux via Commands: Difference between revisions

mNo edit summary
mNo edit summary
Line 86: Line 86:


And then change the name in a bunch of different places like: /etc/kernel/cmdline, /etc/fstab, /etc/default/grub/, /boot/loader/entries/WhatEverEntryName, /boot/grub2/grub.cfg (only if on the booted OS: sudo grub2-mkconfig -o /boot/grub2/grub.cfg, otherwise edit the dang file)  
And then change the name in a bunch of different places like: /etc/kernel/cmdline, /etc/fstab, /etc/default/grub/, /boot/loader/entries/WhatEverEntryName, /boot/grub2/grub.cfg (only if on the booted OS: sudo grub2-mkconfig -o /boot/grub2/grub.cfg, otherwise edit the dang file)  
=== IDs for Drives ===
Tune2fs for UUID:
PARTUUID: sfdisk --disk-id /dev/sda 0x40dae42c (remember, the 0x is sort of a static thing that has to preceed whatever ever value is to be changed, plus the partition number will be tacked onto the end.  IE, if one has a PARTUUID Number as 55fa144a-01 and wants to change a PARTUUID number to this, 40dae42c, add 0x, that's a zero, in front of 40dae42c, and the -01 will be tacked onto the end of it when viewing with blkid)


=== And for the Critics ===
=== And for the Critics ===