Re: moving /var



On Wed, Dec 20, 2006 at 03:20:33PM -0800, Andrew Sackville-West wrote:

On Wed, Dec 20, 2006 at 10:01:35PM -0000, richard@xxxxxxxxxxxxx wrote:
On Wed, Dec 20, 2006 at 01:41:11PM -0500, Greg Folkert wrote:

On Wed, 2006-12-20 at 14:36 +0000, richard@xxxxxxxxxxxxx wrote:
I recently tried to move /var to a new partition. Booted from some
live cd, moved it and edited /etc/fstab to suit. Broke the machine
as it wouldn't boot afterwards (in fact I recollect it booted but
with

[...]
Effectively you have to make sure you get everything. I
[...]

So, what did you do to move it? (list of commands used, would be good)

but in this case I think I used mv
[...]
when I've done it in the past, I have tar'd the whole directory, cp'd
and untar'd it in the new location, change fstab and reboot. done. I
don't see why cp -a wouldn't work too... hmmm... maybe you've got some
other problem and this is just a symptom.

Yes, I think you must be right. I'll try it again when I get back to
that machine, and see if I can learn more.

[...]

Really, I asked two questions mixed up together. The other is how to
run makeinitrd, or anything else such as lilo or grub-install (or
whatever the command is) in a chroot, when chrooting cuts you off from
the /dev and /proc filesystems so that none of these commands will run.

mount proc -t proc /mnt/chroot/proc

check the debian install manual, there is information on installing
from another unix system and included there is how to install kernels
from the chroot. should be applicable here.

Thanks to all for the various comments and advice on these two
unconnected issues

--
richard



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: moving /var
    ... as it wouldn't boot afterwards (in fact I recollect it booted but with ... whatever the command is) in a chroot, when chrooting cuts you off from ... the /dev and /proc filesystems so that none of these commands will run. ... from another unix system and included there is how to install kernels ...
    (Debian-User)
  • Re: [opensuse] [openssuse] Could not find the openSUSE Repository, Activating Manual setup program
    ... And I do a lot of work in suse. ... So much for parallels - why not install suse on the bare metal? ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: [opensuse] chroot: cannot run command `/bin/bash: No such file or directory
    ... Subject: chroot: cannot run command `/bin/bash': No such file or directory ... want to work on a mounted ISO to create a customized live-cd/live-usb ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: [opensuse] Baghira...help
    ... install and enjoy it. ... Version: GnuPG v2.0.4-svn0 ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: [opensuse] ketchup
    ... read Gregs "linux kernel in a nutshell" and since then it is one of the first ... tools i install on systems i'm gonna work on. ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)