7 ms·
If disk sizes are different, which they almost always are, AFAIK dd doesn't quite hack it, otherwise I would have just booted off a Ubuntu live CD and done that
by spolsky 18y ago
If disk sizes are different, which they almost always are, AFAIK dd doesn't quite hack it, otherwise I would have just booted off a Ubuntu live CD and done that.
- wmf 18y agoYes, after the dd you have to run parted to adjust the partition table and then possibly use some other tool to grow the filesystem.
- jrockway 18y agoIndeed. Without this, though, I think his system still would have booted. Incremental progress is certainly better than wasting two days pressing buttons in a GUI, at least IMHO. (Once the system boots, you can worry about using the extra bits on the disk.)
- blasdel 18y agoIf the new volume is smaller (which it almost always is when switching to a SSD), you'd need to shrink the filesystem before you block-copied it with dd.
- blasdel 18y agopartimage was the tool you were looking for. It natively understands NTFS, FAT, extX, Reiser, XFS, etc. and can resize as it images. By default it pops up a somewhat annoying ncurses interface, but it's quite a solid tool.