Re: moving /usr, /var, and /etc
On Fri, Apr 18, 2008 at 09:24:59AM -0700, Bob McGowan wrote:
> I would suggest that you do all this in single user mode, to begin with.
Debian's single-user mode ends up with everything mounted. It is safer
to boot with a kernel command line of init=/bin/sh which bypasses all
the init scripts (and init itself too) and just gives you a shell. You
can manually run any initscripts you need (in the correct order with the
"start" parameter), then get your partitions set up.
>
> And, once you have the 3 systems copied and fstab updated, reboot.
I agree that a copy is safer than a move; perhaps e.g mv /var /oldvar so
you have it just in case.
>
> Then, if all is well, you can remove the original directories on the
> flash drive.
>
> If something unexpected happens, you should be able to boot to single
> user mode again (if there was a boot problem, you may well be there or
> in a busybox init shell, already), and work on it.
init=/bin/sh is your friend. You can also install sash (stand-alone
shell, sort of like busybox called as sash) and use init=/bin/sash.
Doug.
Reply to: