Friday, December 15, 2017

dd clone then resize

When you dd clone a partition to a larger disk...

for example
     sudo dd if=/dev/sdb1 of=/dev/sdc1 bs=1M conv=noerror status=progress
then it will unlikely show the correct size after mounted.

Fix it with
     sudo resize2fs /dev/sdc1

DO NOT ARBITRARILY TYPE IN THE ABOVE COMMANDS, Be sure to use the verified correct devices or potentially suffer from total data loss.

(If you already swapped disks, then for example it might be /dev/sdb1 again)

No comments:

Post a Comment

Comments, Suggestions or "Thank you's" Invited! If you have used this info in any way, please comment below and link/link-back to your project (if applicable). Please Share.
I accept Bitcoin tips of ANY amount to: 1GS3XWJCTWU7fnM4vfzerrVAxmnMFnhysL
I accept Litecoin tips of ANY amount to: LTBvVxRdv2Lz9T41UzqNrAVVNw4wz3kKYk