[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    mount -o bind and chroot with rootfs
From:       Quang Ngo <quang4ngo () hotmail ! com>
Date:       2008-09-26 17:38:21
Message-ID: BAY132-W24740DDC0AA2D06E0B1323F1470 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I have a rootfs-based initrd created using cpio.   I need to chroot to /newroot, but \
in new root I want to access files in the main root (/).  So, normally I'd use mount \
-o bind /newroot/mainroot /; chroot /newroot  
However, for some reason mount -o bind fails.  Is this a bug or a limitation?  I \
tried both busybox's mount and full-version mount command and they both failed.  
Is there any other way?  Does the main root have an entry in /dev that maybe I can \
mount it using mount -t rootfs /dev/root /newroot/mainroot?  
Thanks,
Quang
 
 


[Attachment #5 (text/html)]

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>I have a rootfs-based initrd created using cpio.&nbsp;&nbsp; \
I need to chroot to /newroot, but in new root I want to access files in the main root \
(/).&nbsp; So, normally I'd use mount -o bind /newroot/mainroot /; chroot \
/newroot<BR> &nbsp;<BR>
However, for some reason mount -o bind fails.&nbsp; Is this a bug or a \
limitation?&nbsp; I tried both busybox's mount and full-version mount command and \
they both failed.<BR> &nbsp;<BR>
Is there any other way?&nbsp; Does the main root have an entry in /dev that maybe I \
can mount it using mount -t rootfs /dev/root /newroot/mainroot?<BR> &nbsp;<BR>
Thanks,<BR>
Quang<BR>
&nbsp;<BR>
&nbsp;<BR></body>
</html>



_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic