From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from concerto.rednote.net ([66.92.170.139]) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1DGkvz-0005qp-00 for ; Wed, 30 Mar 2005 16:41:07 -0500 Received: from concerto.rednote.net (localhost.localdomain [127.0.0.1]) by concerto.rednote.net (8.13.1/8.13.1) with ESMTP id j2ULf6Zi001914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 30 Mar 2005 16:41:07 -0500 Received: (from janina@localhost) by concerto.rednote.net (8.13.1/8.13.1/Submit) id j2ULf6Rl001913 for speakup@braille.uwo.ca; Wed, 30 Mar 2005 16:41:06 -0500 Date: Wed, 30 Mar 2005 16:41:06 -0500 From: Janina Sajka To: "Speakup is a screen review system for Linux." Message-ID: <20050330214106.GC7525@rednote.net> Mail-Followup-To: "Speakup is a screen review system for Linux." References: <004a01c53564$b3eca7c0$0d00a8c0@Saidar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004a01c53564$b3eca7c0$0d00a8c0@Saidar> User-Agent: Mutt/1.4.1i X-Operating-System: Linux concerto.rednote.net 2.6.10-1.770_FC3spksmp Organization: Capital Accessibility LLC (http://www.CapitalAccessibility.com) X-PGP-Key: http://www.CapitalAccessibility.com/JaninaSajka_gpg_key.html Subject: Re: moving /var and /home to a new partition X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 21:41:07 -0000 One of the drawbacks of the mv command is permissions and ownership. Instead, you might want to use rsync which will allow you to preserve those with the -p switch. Also, rsync is safer--in case something happens during the big job. Once moved, you can just rm -rf. Raul A. Gallegos writes: > Hi. I have FC3 installed and currently use the following on one hdd: > > /hda1 swap > /hda2 / > /hda3 /usr/local > /hda4 /home > > I did this because at time of install I only had one drive. Now I will be > installing a second drive for /home only. So what I want to do is move > /home to /hdc1 and then move /var to home's current partition /hda4. > > I boot into single user mode first and edit fstab. > > I know how to edit /etc/fstab but my question is what parameters I should > give mv when moving the directories. > > I figured I could temporarily mount /hdc1 as /newhome then: > > cd /home > mv * /newhome > > Now I can umount /newhome > > Now for /var I could do: > > cd /var > mv * /home > > So when I reboot all the /var files will be in /home's old partition /hda4 > and the new /home will be on /hdc1. > > What I'm worried about is preserving all permissions, ownerships, etc. > > Does this all look right? > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup -- Janina Sajka Phone: +1.202.494.7040 Partner, Capital Accessibility LLC http://www.CapitalAccessibility.Com Chair, Accessibility Workgroup Free Standards Group (FSG) janina@freestandards.org http://a11y.org If Linux can't solve your computing problem, you need a different problem.