I should add that you do the bind mount *before* you chroot. And that the same directories should be excluded from what you try to copy across file systems.
On Thu, Mar 18, 2010 at 6:45 PM, Christian Paro <[email protected]>wrote: > If you're going the chroot route, you'll want to bind-mount /dev /proc and > /sys into the directory that you'll chroot into. This will make these > in-memory-only filesystems accessible within your chrooted environment. > > See here: > > http://fermilinux.fnal.gov/documentation/tips/mount-bind-chroot > > > On Thu, Mar 18, 2010 at 6:30 PM, Victor Echavarry Diaz < > [email protected]> wrote: > >> Mark: >> >> I try this >> >> L104M:/# mount /var >> mount /var >> mount: special device /dev/system/var does not exist >> L104M:/# >> >> And this >> >> L104M:/# ls >> ls >> --one-file-system bin dismount lib media opt roottmp sys >> var >> Oracle boot etc lib64 mnt proc sbin tmp >> THIS_IS_THE_NEW dev home lost+found netiq root srv usr >> L104M:/# mount /dev/system/var /var >> mount /dev/system/var /var >> L104M:/# >> >> And get the same error message >> >> Regards, >> >> Víctor Echavarry >> System Programmer >> Technology Systems & Operations Division >> EVERTEC >> >> >> >> -----Original Message----- >> From: Linux on 390 Port [mailto:[email protected]] On Behalf Of >> Mark Post >> Sent: Thursday, March 18, 2010 6:17 PM >> To: [email protected] >> Subject: Re: Move root from LVM to Non-LVM File System >> >> >>> On 3/18/2010 at 05:53 PM, Victor Echavarry Diaz < >> [email protected]> >> wrote: >> > After chroot, I do mkinitrd and receive the following message >> > >> > /var/tmp is not a directory >> >> OK, then, after the chroot, but before the mkinitrd: >> mount /var >> >> and try again. >> >> >> Mark >> >> ---------------------------------------------------------------------- >> For LINUX-390 subscribe / signoff / archive access instructions, >> send email to [email protected] with the message: INFO LINUX-390 or >> visit >> http://www.marist.edu/htbin/wlvindex?LINUX-390 >> >> >> >> ----------------------------------------- >> CONFIDENTIALITY NOTE: This email communication and its attachments >> contain information that are proprietary and confidential to >> EVERTEC, INC., its affiliates or its clients. They may not be >> disclosed, distributed, used, copied or modified in any way without >> EVERTEC, Inc.’s authorization. If you are not the intended >> recipient of this email, you are not an authorized person. Please >> delete it and notify the sender immediately. EVERTEC, Inc. and its >> affiliates do not assume any liability for damages resulting from >> emails that have been sent or altered without their consent. >> Moreover, EVERTEC, Inc. has taken precautions to safeguard its >> email communications, but cannot assure that such is the case and >> disclaim any responsibility attributable thereto. >> >> ---------------------------------------------------------------------- >> For LINUX-390 subscribe / signoff / archive access instructions, >> send email to [email protected] with the message: INFO LINUX-390 or >> visit >> http://www.marist.edu/htbin/wlvindex?LINUX-390 >> > > ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
