On Mon, Nov 18, 2019 at 08:44:25PM +0100, sashab wrote: > Hi Chris, > > fist of all: A fresh install will be much less pain ;) > Well, yes, except that I'd have to re-install all the things I've added to the basic/standard setup.
> If you'd like to do it all manually, > let's assume you have > /dev/sda - "old" SSD > /dev/sda1 - /boot > /dev/sda2 - / > /dev/nvme0 - "new" SSD > > Moving '/' to new device: > You'll have to boot a "live system" from a CD, > to copy your rootfs. > It would be better to create a new fs on /dev/nvme0p? > and rsync all files. > After this you look the UUID of your "new" rootfs up > (e.g. with blkid) and change the /-mount in /etc/fstab accordingly. > sync, reboot and if it comes up and you see "/dev/nvme0p? ... on /" in > `mount`, your're gold. > > > If you have no separate boot partition, you'll have to create one and > mark it bootable and create a fs on it (ext2 is sufficient). > Then, rsync the contents of /boot to the new fs (especially kernel and > initramfs). > After doing so, create an appropriate entry in /etc/fstab and mount the > partition. > If we assume it's /dev/sda1, then you have to > grub-install --target i386-pc /dev/sda > grub-mkconfig > If both commands give you no warnings/errors, > the system should be able to boot from your newly created partition. > However, you'll need to > dpkg-reconfigure grub-pc > (or however the package's name is on xubuntu) > so that future updates of grub get installed on the right drive. > Thank you, that sounds really, really useful. -- Chris Green
