On Tue, Aug 07, 2007 at 08:04:15PM +0530, Vivek Goyal wrote: > On Tue, Aug 07, 2007 at 12:30:48PM +0100, Mark Hindley wrote: > > Hi, > > > > I have just started using kexec. If I kexec from within an xterm I get > > the following error on reboot. kexec from a console there is no error. > > > > This is from 2.6.23-rc2, but I get something similar back to 2.6.16. > > > > How are you using kexec? Are you doing directly "kexec -e" ? You should > be using "reboot". This will first shutdown X and other user space applications > and then do a kexec (if kexec kernel was loaded). Yes, I was using directly because debian init scripts kexec -l a kernel just before calling kexec -e in runlevel 6. There appears no way of preventing that with the scripts as they stand, but that looks like a problem to take up with the debian maintainer. Thanks for the help. Mark