LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   moving folders (https://www.linuxquestions.org/questions/slackware-14/moving-folders-88850/)

Vyker 09-03-2003 11:18 AM

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

aaa 09-03-2003 11:26 AM

You didn't move anything from hda2, you copied.

Vyker 09-03-2003 11:36 AM

so how can i fix this ?

aaa 09-03-2003 06:56 PM

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.

Vyker 09-04-2003 07:42 AM

ahh it worked :)
cheers


All times are GMT -5. The time now is 08:57 AM.