[opensuse] what is the best way to migrate on an UEFI system a root partition from an old ssd to a new ssd?
There are various advices on the net (live cd, dd, etc). But does anybody have experience or knows how to perform the procedure? Thank you. _________________________________________________________________ ________________________________________________________ Ihre E-Mail-Postf�cher sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 15/11/2019 01.28, stakanov wrote:
There are various advices on the net (live cd, dd, etc). But does anybody have experience or knows how to perform the procedure? Thank you.
Well, if destination is same size or bigger, you can just clone the disk with dd. I did it with a Windows disk, no issues. Then I enlarged the partition tables and added Linux. I don't remember the details, I just followed my feet. I might have used clonezilla. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXc31SwAKCRC1MxgcbY1H 1U0mAJ0ZQyDRTgGZHP+qO/rVJDIumGzlUACeMjlxumDl8zz6ElwNU2iOR1lJwOg= =2SY1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-11-14 07:28 PM, stakanov wrote:
There are various advices on the net (live cd, dd, etc). But does anybody have experience or knows how to perform the procedure? Thank you.
I just backed up my /home and some important files and then converted. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 15/11/2019 à 03:03, James Knott a écrit :
On 2019-11-14 07:28 PM, stakanov wrote:
There are various advices on the net (live cd, dd, etc). But does anybody have experience or knows how to perform the procedure? Thank you.
I just backed up my /home and some important files and then converted.
in such situation, I usually simply make a new install with the last distro version. Enough to keep the .thunderbird folder for mails. it's a way to clean the system, very often after some years of use you are cluttered with old configs - for example btrfs do not have the same initial config it had three years ago... else dd or clonezilla do a very good job jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 15/11/2019 à 03:03, James Knott a écrit :
On 2019-11-14 07:28 PM, stakanov wrote:
There are various advices on the net (live cd, dd, etc). But does anybody have experience or knows how to perform the procedure? Thank you.
I just backed up my /home and some important files and then converted.
in such situation, I usually simply make a new install with the last distro version. Enough to keep the .thunderbird folder for mails.
it's a way to clean the system, very often after some years of use you are cluttered with old configs - for example btrfs do not have the same initial config it had three years ago...
else dd or clonezilla do a very good job
jdd It is easy if you have you peace of mind and some time to spare. But if you need the system up fast, it is somewhat troublesome to have to put up all the changes from "default" that you usually are accumulating during the years. Yes, having a new install can help in some aspects (but I have to say, the max
In data venerdì 15 novembre 2019 11:24:45 CET, jdd@dodin.org ha scritto: problems - I am using exclusively EXT4, do not have a good opinion of btrfs - I had them with akonadi bugs and shortcomings, little, very little else). _________________________________________________________________ ________________________________________________________ Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-11-15 06:03 AM, stakanov wrote:
It is easy if you have you peace of mind and some time to spare. But if you need the system up fast, it is somewhat troublesome to have to put up all the changes from "default" that you usually are accumulating during the years. Yes, having a new install can help in some aspects (but I have to say, the max problems - I am using exclusively EXT4, do not have a good opinion of btrfs - I had them with akonadi bugs and shortcomings, little, very little else).
I wouldn't risk converting an existing system, even if it's possible. You have to create a new partition for the UEFI stuff, IIRC. Doing that sort of thing without a full backup is dangerous and since you're doing the backup anyway, it's easier to create a new system. It also gives you a chance to clean up some things you might have done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 15/11/2019 à 13:02, James Knott a écrit :
I wouldn't risk converting an existing system, even if it's possible.
if the problem is to convert a MSDOS computer disk to an UEFI computer, there is nothing to do to at all (to only move one disk). Most if not all UEFI firmware do have a compatible mode that loads grub. Linux do not care of the disk/firmware situation. What you may have to do is only if you want to *use* UEFI on linux is boot with legacy bios (compatible mode) and install grub-uefi the linux partition do not have any change. You will need a small (500Mb) EFI partition anywhere on the disk jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-11-15 05:24 AM, jdd@dodin.org wrote:
in such situation, I usually simply make a new install with the last distro version. Enough to keep the .thunderbird folder for mails.
I also did a fresh install. Backing up /home will protect .thunderbird and every other user data. Howvever, it won't protect anything in /root, so you'll have to do that separately, if needed. You might also have some other stuff around the system that you might want to keep. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 15 Nov 2019 01:28:56 +0100 stakanov stakanov wrote:
There are various advices on the net (live cd, dd, etc). But does anybody have experience or knows how to perform the procedure? Thank you.
Hi Staknov, I have successfully used Clonezilla (https://clonezilla.org/) in 'device to device' mode for this. The technical notes on the downloads page say "... if you need uEFI secure boot, please use AMD64 version of Clonezilla live." Where Windows 10 is involved, I seem to recall it needs to be shut down in a manner (while depressing the shift key?) which disables 'fast boot' and marks the Windows filesystem as 'clean.' This will allow it to be mounted and read without errors for copying. In general, the procedure involves doing a cold boot of the Clonezilla Live system with the new device connected via USB and selecting to clone 'from' the internal device 'to' the external device. When all is done, you shut everything down, swap the devices and power the system up. In an ideal world, there'll be nothing left to do because everything has 'just worked' correctly the first time. :) You may need to answer a few questions in the process about allocating additional space if the target device is larger than the source device. In the case of Linux partitions and filesystems, Clonezilla can create larger partitions, clone the existing filesystems and then expand them to fit the larger space. This goes without saying, but before you start, create a redundant set of backups 'just in case.' hth & regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 11/14/2019 11:44 PM, Carl Hartung wrote:
There are various advices on the net (live cd, dd, etc). But does anybody have experience or knows how to perform the procedure? Thank you. Hi Staknov,
I have successfully used Clonezilla (https://clonezilla.org/) in 'device to device' mode for this. The technical notes on the downloads page say "... if you need uEFI secure boot, please use AMD64 version of Clonezilla live."
Where Windows 10 is involved, I seem to recall it needs to be shut down in a manner (while depressing the shift key?) which disables 'fast boot' and marks the Windows filesystem as 'clean.' This will allow it to be mounted and read without errors for copying.
In general, the procedure involves doing a cold boot of the Clonezilla Live system with the new device connected via USB and selecting to clone 'from' the internal device 'to' the external device. When all is done, you shut everything down, swap the devices and power the system up. In an ideal world, there'll be nothing left to do because everything has 'just worked' correctly the first time. :)
You may need to answer a few questions in the process about allocating additional space if the target device is larger than the source device. In the case of Linux partitions and filesystems, Clonezilla can create larger partitions, clone the existing filesystems and then expand them to fit the larger space.
This goes without saying, but before you start, create a redundant set of backups 'just in case.'
hth & regards,
Carl
+1 on clonezilla. It is basically a Debian boot environment that handles the copying for you. It has a really cool option that let's you write the clonezilla code to your new disk which is loaded in RAM freeing that drive to be the target and will copy from old to new and then all you do is yank the old drive and you are done. The use of clonezilla in that manner is detailed in the thread: 8/23/18 [opensuse] Short Howto Closing System (Linux or Win) Using rufus + clonezilla -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
In data venerdì 15 novembre 2019 07:45:22 CET, David C. Rankin ha scritto:
On 11/14/2019 11:44 PM, Carl Hartung wrote:
There are various advices on the net (live cd, dd, etc). But does anybody have experience or knows how to perform the procedure? Thank you.
Hi Staknov,
I have successfully used Clonezilla (https://clonezilla.org/) in 'device to device' mode for this. The technical notes on the downloads page say "... if you need uEFI secure boot, please use AMD64 version of Clonezilla live."
Where Windows 10 is involved, I seem to recall it needs to be shut down in a manner (while depressing the shift key?) which disables 'fast boot' and marks the Windows filesystem as 'clean.' This will allow it to be mounted and read without errors for copying.
In general, the procedure involves doing a cold boot of the Clonezilla Live system with the new device connected via USB and selecting to clone 'from' the internal device 'to' the external device. When all is done, you shut everything down, swap the devices and power the system up. In an ideal world, there'll be nothing left to do because everything has 'just worked' correctly the first time. :)
You may need to answer a few questions in the process about allocating additional space if the target device is larger than the source device. In the case of Linux partitions and filesystems, Clonezilla can create larger partitions, clone the existing filesystems and then expand them to fit the larger space.
This goes without saying, but before you start, create a redundant set of backups 'just in case.'
hth & regards,
Carl
+1 on clonezilla. It is basically a Debian boot environment that handles the copying for you. It has a really cool option that let's you write the clonezilla code to your new disk which is loaded in RAM freeing that drive to be the target and will copy from old to new and then all you do is yank the old drive and you are done. The use of clonezilla in that manner is detailed in the thread:
8/23/18 [opensuse] Short Howto Closing System (Linux or Win) Using rufus + clonezilla
Thank you Carl and David (as well as Carlos of course) for the heads up and information on Clonezilla. I am a bit embarrassed because I never heard of it before. By the token of the situation, it should be easy because: The new ssd is double the size of the old. Both are still SATA standard. My home is on a different device. Even my kvm virtual machines are mounted on a different disk and partition. I have an external E-Sata attachment that allows me to mount the new disc externally. A few more information on why I had to do this. I had after the fixing of the vlc problem still no way to run vidcutter. It always stopped at 66% of elaboration of the project and then stuck. Over the CLI I did not get any info, so I did forget one day that I had it running and came back after an hour - and the desktop crashed. I then manged to see that the root device was completely filled up. It was the /tmp folder that took all space and it was vidcutter the culprit putting there a temporary file of over 10 GB of size. Now I tried with a normal SATA disk, but it is very sluggish and does need a lot of resources during the writing process. When I used an ssd this was seamless. (I like to enslave my machine and have these things working in the background while doing a lot of other things). So I will attribute the old ssd to /tmp and the new one for root (which may also be a good decision as the new one is considerably faster). So I will go for Clonezilla (I guess that with Opensuse Image Writer I will be able to have a bootable USB-Clonezilla key and after that I can proceed. Thank you to everybody. _________________________________________________________________ ________________________________________________________ Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
stakanov wrote:
There are various advices on the net (live cd, dd, etc). But does anybody have experience or knows how to perform the procedure? Thank you.
Well, my last move from a SSD RAID1 to an NVMe RAID1 went extremely smooth using just btrfs: btrfs replace start /dev/md0 /dev/md2 / I had also increased the size of the partition, so after that finished I needed btrfs filesystem resize 1:max / Did that with the system running... In case of UEFI you probably need to cross-check with efibootmgr that the new disk is accepted. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
Carl Hartung
-
Carlos E. R.
-
David C. Rankin
-
James Knott
-
jdd@dodin.org
-
Peter Suetterlin
-
stakanov