🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #59387

Re: Help: Wnat to separate fielsystem

#59387
From: Ken Yap
Date: Thu, 01 Feb 1996 00:00
28 lines
1712 bytes
|>I want to move the /usr to another partition, how can I do it?
|>I've already prepare the partition for /usr but I don't know
|>how to do then.
|
|You need to duplicate your entire /usr tree onto the new drive.
|
|First, amount the new drive into some convenient location, such as
|/mnt:
|
|  mount -t <type> /dev/?d?? /mnt
|
|Then do the following to completely duplicate the directory tree:
|
|(cd /usr; tar cf - . ) | (cd /mnt; tar xvf -)
|
|The effect is to run tar twice in a pipe, the sending end creating
|an archive into the pipe starting at /usr, and the receiver grabbing
|data from the pipe and unpacking it into /mnt.

That's excellent advice and I would add this:

(cd /usr; tar cf - . ) | (cd /mnt; tar xvpf -)

The p flag says retain original mode of the files.  Otherwise you get
whatever mode results from the current umask.

I've also read that cp -A (GNU cp) or something like that will also do
the job but never tried it myself.
Technical Details
Message-ID: <4eri73INN1gk@seurat.syd.dit.csiro.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <DM3Fy6.JsM@hkuxb.hku.hk> <DM3HHx.4rv@blaze.net.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,e56598697dbdb905
X-Google-Attributes: gid102983,public
From: ken@syd.dit.CSIRO.AU (Ken Yap)
Subject: Re: Help: Wnat to separate fielsystem
Date: 1996/02/01
Message-ID: <4eri73INN1gk@seurat.syd.dit.csiro.au>
X-Deja-AN: 137924789
sender: ken@syd.dit.csiro.au (Ken Yap)
x-nntp-posting-host: seurat.syd.dit.csiro.au
references: <DM3Fy6.JsM@hkuxb.hku.hk> <DM3HHx.4rv@blaze.net.au>
x-face: bak'McMAD{%JrA$mQ(j_Ex_o?a/F8/Nt<W\sbPkh?,)PF7TK1{Lh"HJLuQfhE}(Dj!g:c(U  =wh/r[<MJUF}hXzR*URO0e/Lh'mn_YUpU+;ycf6:0>ng*t2KX(NcfGalVs^Ke^C61:F
organization: CSIRO Division of Information Technology
reply-to: ken@syd.dit.csiro.au (Ken Yap)
newsgroups: aus.computers.linux