|
|
发表于 2004-6-16 16:55:53
|
显示全部楼层
cp要注意权限和属性都不能变。好像是cp -ax
先man cp下,偶以前都是用tar的,比较方便。
(cd /home && tar cpf - . ) | (cd /home.new && tar xpf -)
然后修改下/etc/fstab。
另外,tar 你可以看看它的帮助。
tar --help
-l, --one-file-system stay in local file system when creating archive(这个选项对挂在/mnt下面的其它系统文件比较有用,特别是大规模移动分区时) |
|