Matthew Rosewarne on 20 Oct 2007 17:52:43 -0000


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

Re: [PLUG] How best to replace old drive with new drive


On Saturday 20 October 2007, Dan Widyono wrote:
> Another issue: when I chroot and want to do some normal work in the chroot,
> I always bind mount /dev and /proc into the chroot area.
>
> 	mount -o bind /dev /mnt/hda1/dev
> 	mount -o bind /proc /mnt/hda1/proc
>
> This makes many many programs work better inside the chroot.

For 2.6 kernels, one should bind mount /sys, in addition to /dev and /proc, 

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug