You are not logged in.
Hi,
Currently have Arch installed in a 500GB HDD. I have shrunk the partitions to have around 300GB unallocated and I want to move to a 256GB SSD.
I have dd'ed the whole drive (if=/dev/sda) into an (compressed) .img file, but the image is way over the 200GB I have allocated, what tells me that it's probably going over the unallocated space also.
Can I just dd that image into the SSD? What other maintenance will I have to do? (edit the partition table? re-align the SSD?)
Thanks
Offline
Maybe I'm mising something here but isn't 300GiB > 256GiB?
Surely it won't fit?
Presuming I'm understanding it wrong, I have dd'd my install from a 64GiB USB stick to a 110GiB internal SSD directly (from the live environment).
The UUID's remain the same so the fstab is unaltered; the partition table is copied along with the filesystem that lies on top.
I used gparted to increase the size of the root partition afterwards to fill up the remaining space (tune2fs could also be used for this).
Hope this helps.
Jin, Jîyan, Azadî
Offline
300GB *unallocated*, that is, I'm using around 200GB (which is less than the SSD's 256GB)
That's good news, so in reality the only thing I have to do afterwards is resize the root partition to fill the whole 256GB.
I'm still not sure though if I can just dd though, because as I said, I think dd has ran over the unallocated space also, so the image is greater than the 256GB...
Since it's only unallocated space, can I just dd everything to the SSD and when it reaches the limit dd will fail but I'll still be able to boot?
Offline
Why not just partition the ssd and rsync the file system over? To me, you're making this way too difficult.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I agree with @graysky, but FWIW dd will not even execute unless there is enough space on $target
Last edited by Head_on_a_Stick (2014-09-14 17:42:57)
Jin, Jîyan, Azadî
Offline
It's a laptop, I only have one SATA connection. I can't connect both drives at the same time, so I have to make an image, store it in an external drive and then dd it to the SSD
Offline
It's a laptop, I only have one SATA connection. I can't connect both drives at the same time, so I have to make an image, store it in an external drive and then dd it to the SSD
rsync it to the external drive, then rsync it back.
Offline
Most probably you shouldn't use dd, you want to have the partitions on the SSD properly aligned, I doubt the partitions you have now on your current disk have the best alignment for the SSD.
On another note, dd will happily write data until it runs out of space, dd is also known as disk destroyer for this reason, it's very easy to mess things up
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
I would propose the use of fsarchiver. It may split onto DVD size as well and then reconstruct the FS to destination.
DD can be also used, but rather slow tranfer (6~7 Mib/sec), then piped on zip process which allows to split the resulting image.
Last edited by TheSaint (2014-09-15 22:07:14)
do it good first, it will be faster than do it twice the saint
Offline