D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] chroot apache, postfix, samba, etc

 

Michael Mortimore wrote:
> Any reason you're not just booting from the server hard drive?

Because I still need to use my PC with it's own setup, I don't want to 
change the servers boot config, and the server's HDD lacks things 
required for some of the hardware anyway.

> I think you need to mount /proc to /mnt/server/proc and /dev to
> /mnt/server/dev for some things to be happy in a chroot jail.

Found it- http://slackworld.berlios.de/2007/chroot_howto.html

Need to bind mount /dev first.


> On 7/10/07, Simon Williams <systemparadox@xxxxxxxxxxxxxx> wrote:
>> Hello everyone.
>> The motherboard on my server died a few weeks ago. Unfortunately I've been
>> out of the country for the last couple of weeks so haven't been able to do
>> anything until now. The idea is to get my PC to take over as server until I
>> can repair or replace the mobo. I've taken the HDD out of the server and
>> attached it to my PC, mounting the whole tree under /mnt/server. Originally
>> I was going to installed apache, samba, etc onto my PC and copy the config
>> files, but that's not really going to be practical (changing all the paths
>> to have the prefix /mnt/server will take too long for starters). I've tried
>> chrooting into /mnt/server and starting processes there, but for some reason
>> they either refuse to start or say they have started and then don't show up.
>> I would use UML, but don't want to have to mess with compiling another
>> kernel.


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html