Hardware - Support > Hard Drives and SSD's

Good idea to clone HDD to ssd?

<< < (3/3)

DeepThought:
from :

--- Quote ---https://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd
--- End quote ---


--- Code: ---sudo mount /dev/sdXY /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sdX
grub-install --recheck /dev/sdX
update-grub

--- End code ---

Replace X and Y with disk and partition number e.g. sda1


--- Code: ---exit
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt
--- End code ---

Then reboot

waynebob:
Ran a live cd and the /dev/sda1 is not seen, it is mounted at /mnt and won't let me unmount it because it is busy. lol. I have attached screenshots (hopefully).
Thanks, Wayne.   https://drive.google.com/drive/folders/1HxS78Uj3rH8QguJ7sUeN4ouBI5Ir5uVw?usp=sharing

Navigation

[0] Message Index

[*] Previous page

Go to full version