[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pivot_root. unmount old root



no, I don't have X. I just tried to mount --move /dev and /proc to the
new root before actually doing the pivot-root. proc/mounts doesn't show
any mountpoints under old-root afterwards, but an umount still gives
device busy...

On 03/20/2010 02:33 PM, Rogerio Luz Coelho wrote:
are you doing this with X enabled?

If so stop X before atempting a umount

Rogerio

2010/3/20 Katharina Haselhorst <brandlk@mathematik.uni-marburg.de
<mailto:brandlk@mathematik.uni-marburg.de>>

    Hello,

    I'm running debian lenny with xen kernel 2.6.26, amd64. Inside a
    domU I need to make a pivot_root and unmount the old root afterwards.
    I've done the following:

    cd /newroot
    (newroot contains a minimal system from initrd, dev/console,
    dev/null and old-root are available unter newroot/)
    exec <dev/console >dev/console 2>&1
    pivot_root . old-root
    exec chroot . bin/sh
    umount -n old-root

    but I always get: device is busy - so I can't umount the old root.
    /proc/mounts shows that the proc fs is still mounten under
    old-root/proc and an umount old-root/proc doesn't work either
    (device is busy, too).

    I also tried to umount proc before doing the pivot_root, but no luck
    either.
    Why doesn't pivot_root remove the proc mountpoint from old-root? As
    I understand the documentation - it should clear all dependencies so
    that the old-root can be unmounted afterwards...

    Any ideas or suggestions to help would be great!

    K. Haselhorst


    --
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
    <mailto:debian-user-REQUEST@lists.debian.org> with a subject of
    "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    <mailto:listmaster@lists.debian.org>
    Archive:
    [🔎] 4BA4A71F.8060506@mathematik.uni-marburg.de">http://lists.debian.org/[🔎] 4BA4A71F.8060506@mathematik.uni-marburg.de




Reply to: