Quote:
Originally Posted by bioe007
iirc the 'proper' way to move /home is to telinit 1, umount /home, edit fstab, mount /home and telinit 3.
I'm worried that since there is no keyboard/mouse/monitor for this anymore (i ssh to set up the webpages) once I telinit 1 I'll be screwed..
|
I am guessing you loose your network connection when you switch to single user mode (
telinit 1). If you want to test it, you could use an
at command to shut it down in, say, 5 minutes and then do a dry run where you haven't actually changed anything. If you find yourself locked out, the computer will automatically reboot in a few minutes anyway. (Being cautious, I would suggest you do a dry run on the automated reboot itself first.) I am assuming here you are
sshed in as
root so if this is successful, it won't hurt to temporarily loose the
/home partition.
Another, I would guess safer, way would be to change
fstab while in your normal runlevel and then reboot the computer remotely. When the computer reboots, it should have the new
/home partition mounted. Of course, you need to copy everything to the new
/home partition first.
EDIT: Do make sure you have the ability to ssh in as root
in case there is some problem with your new /home
partition that prevents you connecting as a normal user.