moving folders
i had hda2 mounted at /usr/local
seeing as hda2 was only 46mb i wanted to move it to hda3 which is 5gig and has a mount piont of / so i "cp -a /usr/local /usr/local.new" then i closed the programs running from usr/local then "umount /usr/local" removed the refrence in fstab then when i tried to " mv /usr/local.new /usr/local" i got /usr/local/local.new, so now im trying to move local.new to local i remounted hda2 to /stuff and in df -h i get Filesystem Size Used Avail Use% Mounted on /dev/hda3 5.8G 2.7G 2.8G 48% / /dev/hda1 3.2G 20k 3.0G 1% /home/site /dev/hda2 46M 46M 0 100% /stuff it shows that its still a full drive, does that mean the stuff in usr/local hasent moved yet ? how can i move fix this, all i want is usr/local to be on hda3 please help |
You didn't move anything from hda2, you copied.
|
so how can i fix this ?
|
Try:
rm /usr/local/local cp -R /stuff/* /usr/local Don't use mv, because it doesn't save any time when moving between partitions, and if it doesn't work, the stuff on hda2 would have been deleted. |
ahh it worked :)
cheers |
All times are GMT -5. The time now is 08:57 AM. |