LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-03-2003, 11:18 AM   #1
Vyker
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Question 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
 
Old 09-03-2003, 11:26 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
You didn't move anything from hda2, you copied.
 
Old 09-03-2003, 11:36 AM   #3
Vyker
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
so how can i fix this ?
 
Old 09-03-2003, 06:56 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
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.
 
Old 09-04-2003, 07:42 AM   #5
Vyker
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
ahh it worked
cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Folders moving themselves between drives tmoorman Mandriva 1 07-12-2005 02:43 PM
File moving on mounted folders from Java zeshanzia Programming 0 03-11-2005 01:00 AM
moving files and folders thru command line JROCK1980 Linux - General 2 02-16-2004 06:55 PM
Moving Mozilla mail folders between machines rharvey@cox Linux - Software 6 02-13-2004 09:56 AM
Moving swap and sharing folders in distros jazzyjazz Slackware 1 11-19-2003 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration