Para a situação descrita na questão, usei o script. Você precisa copiar os dados para o SSD e mudar o / etc / fstab para lá.
#!/bin/bash
# Stop script on single error
set -e
# Script must be run from root user
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
# Temporary mount point for guest root
MountDir="/media/root"
# Create mount point if not exist
if [ ! -d "$MountDir" ]; then
mkdir -p "$MountDir"
fi
# Set ownership
chown root:root "$MountDir"
# Mount guest root (change for your system)
mount /dev/sdb1 "$MountDir"
# Mount other paritions (change for your system)
mount /dev/sda1 "${MountDir}/boot"
mount /dev/mapper/vg1-var "${MountDir}/var"
mount /dev/mapper/vg1-opt "${MountDir}/opt"
mount /dev/mapper/vg1-tmp "${MountDir}/tmp"
mount /dev/mapper/vg1-home "${MountDir}/home"
# Mount some system in-memory directories for correct operation of guest system
mount -B /proc "${MountDir}/proc"
mount -B /dev "${MountDir}/dev"
mount -B /sys "${MountDir}/sys"
# Enter to guest root and run commands to update OS boot configuration
chroot "$MountDir" /bin/bash -c "update-initramfs -u; update-grub"
# Unmount partitions (change for your system)
umount "${MountDir}/boot"
umount "${MountDir}/var"
umount "${MountDir}/opt"
umount "${MountDir}/tmp"
umount "${MountDir}/home"
# Unmount in-memory directories
umount "${MountDir}/proc"
umount "${MountDir}/dev"
umount "${MountDir}/sys"
# Unmount guest root
umount "$MountDir"
Isso é basicamente escrito de outras respostas:
link - copiando
link - mas udpate-grub
não é suficiente, você precisa executar update-initramfs -u
primeiro…