Copying hda3(~5GB) to hda1(~10GB) nearly fills hda1
I recently ran out of space on my root partition but I've liberated a couple of x windows partitions. Now what I want to do is copy everything on the current root hda3 to hda1, I've tried using dd and cp but both have resulted in leaving approximately the same amount of free space left on hda1 as on hda3. Eg. Before: hda3 used space=4.75GB; hda1 used space = 0
After: hda1 used space = 9.98GB, free space = 17.42MB; hda3 free space=17.42MB Anybody got any ideas why this happens and what I can do to stop it? |
Are the source and destination filesystems both native linux filesystems (ext2/3, reiserfs, etc.)? If so, can you post the cp command that you used? If /dev/hda3 was mounted on /mnt/src and /dev/hda1 was mounted on /mnt/dest you should just need something like:
Code:
cp -a /mnt/src/* /mnt/dest |
Thanks for the reply gilead. They are both reiserfs. The cp command was
Code:
cp /dev/hda3 /dev/hda1 Code:
dd if=/dev/hda3 of=/dev/hda1 bs=4096 |
Quote:
But why not use both hda1 and hda3. Is your entire install one partition or several? If you need more space in /usr or /var or /home for example just copy the that directory into the new partition and create an entry in fstab to mount it as such. BTW. http://wiki.linuxquestions.org/wiki/Dd |
All times are GMT -5. The time now is 04:10 PM. |