Fastest way to migrate to a bigger SSD (18.04)
6,030
What about using a Live System and
sudo dd if=/dev/sdx0 of=/dev/sdy0
and
sudo resize2fs /dev/sdy0
afterwards to resize the partition.
With sdx0 being your old partition and sdy0 being the new one.
Related videos on Youtube
Author by
ssssstut
Updated on September 18, 2022Comments
-
ssssstut almost 2 years
I've seen a few postings about migration with older Ubuntu versions.
What's the fastest way to migrate 120GB (80GB full) to a 1TB SSD under Ubuntu 18.04?
- live duplicate or via image possible
- how to extend the new volume on the new SSD?
Because I've only a limited time window once I've started I'd be happy for suggestions for the fastest way to get new system up and running again.
-
vaquito over 5 yearsIs having both disks in the system an option?
-
ssssstut over 5 yearsno, I don't want to use both disks afterwards. (limited=because of other jobs that should run at a certain time) Murphy: yes, I'm willing to prepare everything as good as possible
-
oldfred over 5 yearsI boot install media from one SSD using grub's loopmount and toram parameter and install to another SSD in about 10 minutes. Then I restore /home & data partitions. Fully working system in about an hour. I always suggest new installs rather than image copy, but since going from smaller to larger you can do a image copy. DD is known as disk destroyer so should be last choice, it also is slow as it also copies bit by bit and includes all the blank space.
-
ssssstut over 5 years> DD is known as disk destroyer so should be last choice, - Oh, I didn't know that, thanks a lot for mentioning it! I'll probably try clonezilla or acronis
-
Hannu over 5 years"bit per bit"?
dd ... bs=1M
will do the copy using 1 MB blocks. -
AtomiX84 over 5 yearsyes, but as per the first answer and if you do not pass any flags to dd the default is that, off course with the base count flag will faster then normal, but you have also to think the dd command do not skip free space, so the image size of 500GB disk will be 500GB, does not metter if the disk is in use at 30%. For this I suggest different solution, partclone is more evoluted then dd for this pourpose.
-
Hannu over 5 yearsIn a low usage situation any other tool than a block by block copy is preferred, yes. Then you also have other issues -> superuser.com/a/1388090/346288
-
ssssstut over 5 yearsdd: how long would it take to duplicate around 100 GB approx.? resize2fs: does it expand the file system to the max avail. capacity?
-
vanadium over 5 years"man resize2fs" will tell you that if no size is specified, the full partition size is used, which is probably what you are looking for. dd indeed might be slower than solutions in the other answer.
-
Tomáš Zato - Reinstate Monica almost 4 yearsWill this work with a windows system?