Saturday, November 3, 2012

Expanding my Linux's Partition

My Linux partition was so small (40GB) and I need to resize it and delete my Windows's partition. So I must backup my Linux partition and restore to the big one. I use dd to do this, very simple software.
Backup : dd if=/dev/sdax of=file.img 
Restore : dd if=file.img of=/dev/sdax 
Restore with proggress bar :dd if=FILE.IMG | pv -s $(stat file.img | egrep -o "Size : [[:digit::]]*" | egrep -o "[[:digit:]]*") | dd of=/dev/sdax




After waiting restoration progress, finally I got 92.7 GB for my Linux space ! Woohoo !


No comments:

Post a Comment

Share