Linked by Eugenia Loli on Sat 8th Jul 2006 04:54 UTC
General Unix Copying a live file system can be risky, especially if there are open files. You should also be careful to ensure that you don't accidentally overwrite a partition, or existing files, with the files you are trying to copy. With some careful thought, you can effectively migrate files reliably to take advantage of more space, even on a live system.
Permalink for comment 141609
To read all comments associated with this story, please click here.
dd
by Drantin on Mon 10th Jul 2006 10:14 UTC
Drantin
Member since:
2006-07-10

I had to do this a few months ago when setting up my laptop. I didn't notice that the last partition I created had for some reason been designated sda3 (it was a 10 gig partition set aside for a win2k dual boot) I ended up using dd if=/dev/sda3 of=/dev/sda4 (sda4 was where my install was originally supposed to end up at... an 82G partition for gentoo) I then used the resize_reiserfs util that is part of the reiserfstools package to expand the copied fs to the limit of the partition and changed fstab to match...

Please note that I did this by booting from the install CD so nothing was being accessed on the drive by the booted OS.

Reply Score: 1