* moving /var and /home to a new partition
@ Raul A. Gallegos
` Janina Sajka
` Joseph C. Lininger
0 siblings, 2 replies; 7+ messages in thread
From: Raul A. Gallegos @ UTC (permalink / raw)
To: Speakup
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?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: moving /var and /home to a new partition
moving /var and /home to a new partition Raul A. Gallegos
@ ` Janina Sajka
` Raul A. Gallegos
` Joseph C. Lininger
1 sibling, 1 reply; 7+ messages in thread
From: Janina Sajka @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: moving /var and /home to a new partition
` Janina Sajka
@ ` Raul A. Gallegos
` Steve Dawes
` Janina Sajka
0 siblings, 2 replies; 7+ messages in thread
From: Raul A. Gallegos @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Hi Ganina and others;
I ended up doing a command like this:
mount /dev/hda4 /mnt
cd /var
rsync -a * /mnt
>From reading the man page on rsync it seems that using the -a parameter is
like using recursive, simlinks, preserve owner, group, device.
Took some reading on using labels in fstab but I think I got it right. I
just don't know where to make the needed modifications so that I don't edit
fstab directly to add the new /var partition.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: moving /var and /home to a new partition
` Raul A. Gallegos
@ ` Steve Dawes
` Janina Sajka
1 sibling, 0 replies; 7+ messages in thread
From: Steve Dawes @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Adding the new mount point to fstab is quite easy. What I do is:
1. mount the new partitions
2. make sure it is working the way you want it too.
3. read /etc/mtab and look for the entry related to the new mount partition.
4. copy the related entry from mtab into fstab.
Note, I do not type the entry into fstab, I read the entry in using with my
editor to avoid any chance of mistyping it.
Steve
Steve Dawes
Calgary Canada.
-----Original Message-----
From: speakup-bounces@braille.uwo.ca
[mailto:speakup-bounces@braille.uwo.ca]On Behalf Of Raul A. Gallegos
Sent: Wednesday, March 30, 2005 9:44 PM
To: Speakup is a screen review system for Linux.
Subject: Re: moving /var and /home to a new partition
Hi Ganina and others;
I ended up doing a command like this:
mount /dev/hda4 /mnt
cd /var
rsync -a * /mnt
>From reading the man page on rsync it seems that using the -a parameter is
like using recursive, simlinks, preserve owner, group, device.
Took some reading on using labels in fstab but I think I got it right. I
just don't know where to make the needed modifications so that I don't edit
fstab directly to add the new /var partition.
_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: moving /var and /home to a new partition
` Raul A. Gallegos
` Steve Dawes
@ ` Janina Sajka
` Raul A. Gallegos
1 sibling, 1 reply; 7+ messages in thread
From: Janina Sajka @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
You can just add it, something like:
/dev/sda4 /var ext3 rw 0 2
Adjust for your own partition, of course.
And, you do know fstab has its own man page, apart from the mount man
page, right?
Raul A. Gallegos writes:
> Hi Ganina and others;
>
> I ended up doing a command like this:
>
> mount /dev/hda4 /mnt
> cd /var
> rsync -a * /mnt
>
> >From reading the man page on rsync it seems that using the -a parameter is
> like using recursive, simlinks, preserve owner, group, device.
>
> Took some reading on using labels in fstab but I think I got it right. I
> just don't know where to make the needed modifications so that I don't edit
> fstab directly to add the new /var partition.
>
>
> _______________________________________________
> 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: moving /var and /home to a new partition
` Janina Sajka
@ ` Raul A. Gallegos
0 siblings, 0 replies; 7+ messages in thread
From: Raul A. Gallegos @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Yep, gotit working. It just seemed like FC3 used fstab-sync for all fstab
related mounts. That is what was throwing me off. I just created label for
/dev/hdc1 and called it /home and put that information in fstab. Did the
same for /var where /home used to be and all went well. rsync -a from old
var into new var went well and everything seems to be working fine now.
I just need to read up on how FC3 handles packages and the like. I don't
like sendmail and would rather use exim but see both are installed with
sendmail being used.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: moving /var and /home to a new partition
moving /var and /home to a new partition Raul A. Gallegos
` Janina Sajka
@ ` Joseph C. Lininger
1 sibling, 0 replies; 7+ messages in thread
From: Joseph C. Lininger @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Hi,
mv automatically preserves all owner, group, and permition information.
What you want to do should work just fine.
Equal causes can produce very unequal effects.
Joseph C. Lininger
jbahm@pcdesk.net
Verification: 5eab38a77ac40416e075be8f50607ff7
And so it came to pass that on Wed, 30 Mar 2005, Raul A. Gallegos said
> 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
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
moving /var and /home to a new partition Raul A. Gallegos
` Janina Sajka
` Raul A. Gallegos
` Steve Dawes
` Janina Sajka
` Raul A. Gallegos
` Joseph C. Lininger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).