看板FreeBSD
标 题Re: [问题] 请教关於移转/usr
发信站星情小筑 (Tue Oct 20 23:10:31 2009)
转信站ptt!news.ntu!news.au!zoonews.ee.ntu!Leo.mi.chu!SF
假设你原本的 /usr 跟 /backup 已经 mount 起来了,也都写在 /etc/fstab 里。
1. 进 single user mode
2. /sbin/mount -a
3. cd /usr
4. /usr/bin/tar clf - . | /usr/bin/tar xvpf - -C /backup
5. 修改 /etc/fstab,把 /backup 的 slice 挂为 /usr
(建议把原本的 /usr 改挂为 /backup,或是注解掉)
6. 重开
这是我在很早以前的作法,我没重新确认指令的参数是否仍可用。
--
Linux is for people who want to know why it works.
Mac is for people who don't want to know why it works.
DOS is for people who want to know why it does not work.
Windows is for people who don't want to know why it does not work.
--
☆Origin: 星情小筑 ( Star.leobbs.net )
★Author: JoeHorn
☆From: 114-37-130-193.dynamic.hinet.net