fluxalex wrote:Hi again,
... Is there a way without having to install the system again, having to download the updates and additional software that I installed and configuring everything again?...
fluxalex wrote:Basically what I'd have to do is to create an ext4 and swap partition on "sda". Then copy the complete root file system from "sdb" to "sda". Then somehow I'd have to generate a new "fstab" and reinstall/reconfigure "grub" so that it points to "sda" instead of "sdb".
Has anyone done such a thing already?
sudo mount /dev/sdb1 old
sudo mount /dev/sda1 new
sudo cp -rp old/* new
sudo grub-install --root-directory=new/ /dev/sda
sudo fdisk -l
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
(optional, only if you're on Ubuntu/Debian) apt-get install grub-pc
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda (try grub-install --recheck /dev/sda if it fails)
Ctrl+D (to exit out of chroot)
sudo umount /mnt/dev
sudo umount /mnt
Users browsing this forum: No registered users and 1 guest