[TLUG] Re: [TLUG] Re: 如何重新切割 file system?

Lai Chih-Lung tlug@linux.org.tw
Tue, 12 Oct 1999 13:08:12 +0800


This is a multi-part message in MIME format.
--------------368BAD0A62CF4405EAEE5180
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

That's right. The suggestion Peace gave  is totally 
correct. Command 'cp -r' won't keep the owner, group
orignal information. The information will be kept as
the user who command. 'tar' will keep the orignal information
. I am sorry that what I mention before was confused.(I use 
'copy to' in my sentence) And I think use 'mv' is the 
most dangous command in the case. It's still  worse 
than 'cp' because you can not resotre the former 
information but 'cp -r' can.

peace wrote:
> 
> 給一個建議:
> 千萬不要用 "cp" 來移植系統如 /var , /usr 等
> 使用 "tar" 才是正確的方法!!
> 
> -----原始郵件-----
> 寄件者: Lai Chih-Lung <lacoste@chttl.com.tw>
> 收件者: <tlug@linux.org.tw>
> 日期: 1999年10月11日 PM 03:59
> 主旨: [TLUG] Re: 如何重新切割 file system?
> 
> 要詳細回答太浪費時間,而且方法很多種,影響情況也很多種,另外你
> 如果只靠別人詳細回答,你沒辦法完了解,看起來就好像是考試只在背
> 答案
> 
> 1. symbol link 用法各種Unix不同,我不記得(基本上只有先後).
>    symbol link 是將檔案或目錄轉換到其它位置,所以你要在你要
>    使用的partition 上開一個目錄用來, 假設 /usr/xxx
>      /var/spool/mail -> /usr/xxx (使用/usr的partition)
>     (/var/spool/mail 要看你的sendmail 所設定的位置 )
>    另外symbol link不一定可以用,有些application 如 apache
>    需要設定要symbol link才可以做為/htdoc or /cgi-bin的目錄
>    ,如果未設定symbol link 不一定能生效(Maybe is for security.)
>    所以你先試試看,如果不行你找找sendmail的 document 是否有記錄
> 2. 你先 將 想法將/var  /usr copy to another partition and
>    umount, then remount them.(please be careful
>    , if you have wrong order or wrong command it will damage
>    your operating system. After you'v done this. Format your
>    new partition the move your target directory back. Then
>    you will finish your work. ( The best environment is in the
>    single user mode!)
> 
>    Caution:
>    I just suggest the method if you are a skillful and senior
>    System manager.
> 3. Next time, you can user Vxfs file system, you can extend dynamiclly
>    without change your OS environments.( It is not free. And I don't
> know
>    if it support linux(IDE, ....)
> 
> I hope I'v helped you!
>
--------------368BAD0A62CF4405EAEE5180
Content-Type: text/x-vcard; charset=us-ascii;
 name="lacoste.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Lai Chih-Lung
Content-Disposition: attachment;
 filename="lacoste.vcf"

begin:vcard 
n:Lai;Chih-Lung
tel;cell:0937531446
tel;fax:886-2-23445032
tel;home:886-2-89511319
tel;work:886-2-23262448
x-mozilla-html:FALSE
url:http://www.csie.ncu.edu.tw/~cs852037 Job Experience:=0D=0A1. System and Network Administrator=0D=0A2. Database Administrator=0D=0A3. Web Administrator=0D=0A4. Perl & Java Programmer
org:Chunghwa Telecom Co. Telecommunication Laboratories;Information Technology Lab. 
adr:;;4F, No. 9 Lane 74 Hsin-Yi Road, Sec 4 Taipei;Taipei;Taiwan;106;R.O.C.
version:2.1
email;internet:lacoste@chttl.com.tw
title:Associate Reseacher 
x-mozilla-cpt:;-880
fn:Ken C.L. Lai
end:vcard

--------------368BAD0A62CF4405EAEE5180--