Linux Lite Forums
Good idea to clone HDD to ssd? - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Hardware - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=6)
+--- Forum: Hard Drives and SSDs (https://www.linuxliteos.com/forums/forumdisplay.php?fid=26)
+--- Thread: Good idea to clone HDD to ssd? (/showthread.php?tid=6624)

Pages: 1 2


Good idea to clone HDD to ssd? - waynebob - 12-03-2019

Ordered 2 Samsung ssd's, one M.2 and one sata expecting to use Samsung Magician Software. Upon reading about it before they arrive I find the software will not work in Linux.
Is it a good idea to clone ( LL 4.6 & LL 3.8 ) using d.d. or Clonezilla or do a reinstall?
Found this tutorial :
https://www.linuxliteos.com/forums/tutorials/cloning-your-linux-lite-drive-using-the-'dd'-command/msg39977/#msg39977
Not sure if this is a solution and if d.d. runs from the live system or from a bootable cd?
Thanks Wayne.
I understand LL 4.6 will do trim and 3.8 I will have to set it up.


Re: Good idea to clone HDD to ssd? - JanetBiggar - 12-03-2019

Hi Waynebob,
Might this post provide you with a solution for the LL 3.8 install?:

https://www.linuxliteos.com/forums/installing-linux-lite/installing-linux-lite-via-a-systemback-iso-to-a-different-laptop/

Oobuntus provided the detailed steps towards the end of the thread.


Re: Good idea to clone HDD to ssd? - robinc - 12-03-2019

1. Use timeshift to create a backup of your current system - make sure you include your hidden files.
2. Do an install on your new drive - just the minimum
3. Start up the new system and use timeshift to restore the timeshift backup to the new drive - it will overwrite as required and restore your local configs.

You now have you old system on the new drive with all the installed software and matching configs

Copy data from old drive or backups as required.


Re: Good idea to clone HDD to ssd? - waynebob - 12-04-2019

Thanks for the ideas, I received the ssd's today but am still experimenting on my spare machine. Will post the outcome. :-)



Re: Good idea to clone HDD to ssd? - waynebob - 12-17-2019

Well I tried cloning on my spare machine.
    -used gparted to shrink 500 gb hdd to 136 gb          succesful ?
    -used clonezilla to clone from 136gb partition to 160 gb hdd    succesful ?
Now the target 160gb hdd will boot (to a grub menu though?)
The source 136gb partition (on 500gb hdd) will not boot even though configured in bios and identified as bootable.
When I unplug the 160gb hdd the 136gb partition will boot (to a grub menu though)
Tried a boot repair disk, both ways still boot to a grub menu first and the source drive (136gb) still will not boot if the 160gb is plugged in.

On my main machine I did a clean install to the M.2 500gb drive. Used Timeshift to restore my backup from 1TB HDD. Worked like a charm or so I thought. After a couple of restarts all the browser logins were not there anymore?
Starting to think Joe Collin’s thoughts about just doing a fresh install, especially to a new SSD would be easier and probably better in the long run.
Reading up on grub and grub2 repair stuff and lose interest pretty quick. Getting old (70)
Not really sure if the gparted or the clonezilla broke the boot.

Thanks for the help, I shall keep farting around but a fresh install looks good.

Wayne.


Re: Good idea to clone HDD to ssd? - firenice03 - 12-17-2019

Just a thought -- something you might want to think about...
Is as you're plugging/unplugging disks --- If both were plugged in together.. The /dev/sdX may be different.

i.e.
if the 500/136 was sda and the 160 is sdb its not necessarily going to boot... Or vice versa
Grub doesn't know where the bootloader resides...

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

it should scan and repopulate the OS's..
Not sure what was done with "boot repair disk" .... but maybe the above will help resolve....


I haven't tried with a clone.. but you "could" connect both disks and update grub - it should see both LL's


Re: Good idea to clone HDD to ssd? - DeepThought - 12-17-2019

[member=5414]firenice03[/member]
Quote:You may wanna try, connecting the disk boot to a LiveUSB, once at the desktop launch terminal and run
Code: [Select]
sudo update-grub

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 Smile


Re: Good idea to clone HDD to ssd? - waynebob - 12-17-2019

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?


Re: Good idea to clone HDD to ssd? - firenice03 - 12-18-2019

(12-17-2019, 08:38 PM)DeepThought link Wrote: [member=5414]firenice03[/member]
Quote:You may wanna try, connecting the disk boot to a LiveUSB, once at the desktop launch terminal and run
Code: [Select]
sudo update-grub

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 Smile

Eh you maybe right on that... [member=7644]DeepThought[/member] 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... [member=7644]DeepThought[/member] 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

Code:
sudo chroot /mnt

Code:
sudo update-grub


If grub needs re-installed
Code:
sudo grub-install /dev/sdxY


Reboot


Re: Good idea to clone HDD to ssd? - firenice03 - 12-18-2019

(12-17-2019, 11:40 PM)waynebob link Wrote: 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?
[member=241]waynebob[/member]
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  Smile
Updating grub tell grub to scan the disks for an OS.. Then it will display them. -- Yes you could have multiple LL's running.