Hardware - Support > Hard Drives and SSDs

Good idea to clone HDD to ssd?

(1/3) > >>

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

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

firenice03:

--- Quote from: waynebob on December 17, 2019, 06:40:06 PM ---Question : I kind of thought if you had 2 HDD's each with an OS that the bios would determine which would boot, just like when you have to put the DVD drive first in line for it to boot.
Apparently I was wrong?

--- End quote ---
@waynebob
Kind of..  BIOS says skip all else and go look for something I can use.. Or go find something usable in this order..
Whether Windows or Linux there is a boot manager/boot loader. Grub is this boot manager of sorts. Depending on how many OS's or disks it will list all available OS's.
- You could have 4 OS's on 1 disk, BIOS doesn't care just wants to know where/which disk....
Grub says where on the disk to go find it - Win?? Linux Lite 1,  LL 2, or LL3   :)
Updating grub tell grub to scan the disks for an OS.. Then it will display them. -- Yes you could have multiple LL's running.

firenice03:

--- Quote from: DeepThought on December 17, 2019, 03:38:04 PM ---@firenice03

--- Quote ---You may wanna try, connecting the disk boot to a LiveUSB, once at the desktop launch terminal and run
Code:
sudo update-grub
--- End quote ---

Won't that try to update-grub on the liveusb ? I think you will need to create a chroot environment on sda and then update grub there :)

--- End quote ---

Eh you maybe right on that... @DeepThought Thanks!!   
and each/either will need to be mounted .. i.e. /dev/sdxY will need to mounted then chroot  then grub could be updated....


The following should do this... although I'm not at my system else I would test the commands... @DeepThought this more on par? missing anything


For x the corresponding letter (sda or sdb ... ) Y the number (sda2 or sdc1) - You'll need to know these.. *It maybe sda but confirm and I would start with 1 drive not both..


From the LiveUSB...

--- Code: ---sudo mount /dev/sdxY /mnt
--- End code ---


--- Code: ---sudo chroot /mnt
--- End code ---


--- Code: ---sudo update-grub
--- End code ---


If grub needs re-installed

--- Code: ---sudo grub-install /dev/sdxY
--- End code ---


Reboot

waynebob:
Booted a LL 4.6 dvd with both HDD's plugged in (machine will not boot from usb). Did sudo update-grub.
Got /usr/sbin/grub-probe: error: failed to get canonical path of '/cow'.   ??
Question : I kind of thought if you had 2 HDD's each with an OS that the bios would determine which would boot, just like when you have to put the DVD drive first in line for it to boot.
Apparently I was wrong?

Navigation

[0] Message Index

[#] Next page

Go to full version