LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-27-2006, 02:49 PM   #1
mazebane
Member
 
Registered: Aug 2004
Location: UK
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
Is it possible to move a folder to a new partition


I have set up slack10.2 on 1 partition but i was thinking of moving /var onto another partiton, is there an easy way of doing this without reinstalling?
 
Old 06-27-2006, 02:58 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
unmount the partition, make sure the other partition is ready with a filesystem, edit your /etc/fstab file to reflect what partition of the drive /var is going to be located, and re-mount.

but of course there is stuff in /var that you'll want, so just mount the new (and/or existing) partition as whatever cp -R /var /newpartition/ and then follow the steps above.

I wrote that quick, but I dont' think I missed anything. I'm sure someone will correct me if so.
 
Old 06-27-2006, 03:52 PM   #3
mazebane
Member
 
Registered: Aug 2004
Location: UK
Distribution: Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
thanks, i will give that a try tonight
 
Old 06-27-2006, 04:27 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
and also you can delete the stuff in the old place when you are done
 
  


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
How to move a folder and replace files RAdams Linux - Newbie 2 06-24-2006 12:11 AM
i move my /etc folder in my /home folder Casanogab Linux - Newbie 8 03-31-2006 01:21 PM
move folder to new partition blizunt7 Fedora 11 10-13-2005 07:16 AM
Cant move a folder to another path? dwarf007 Linux - Newbie 2 09-19-2004 02:28 AM

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

All times are GMT -5. The time now is 06:49 PM.

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