Chroot: Difference between revisions

From VVCWiki
Jump to navigationJump to search
(Created page with "<source lang="bash"> mkdir /mnt/sysimange mount /dev/vg1/root /mnt/sysimange mount /dev/vg1/var /mnt/sysimange/var mount /dev/sda1 /mnt/sysimange/boot mount -t proc none /mnt/...")
 
m (typo)
Line 1: Line 1:
<source lang="bash">
<source lang="bash">
mkdir /mnt/sysimange
mkdir /mnt/sysimage
mount /dev/vg1/root /mnt/sysimange
mount /dev/vg1/root /mnt/sysimage
mount /dev/vg1/var /mnt/sysimange/var
mount /dev/vg1/var /mnt/sysimage/var
mount /dev/sda1 /mnt/sysimange/boot
mount /dev/sda1 /mnt/sysimage/boot
mount -t proc none /mnt/sysimange/proc
mount -t proc none /mnt/sysimage/proc
mount --rbind /sys /mnt/sysimange/sys
mount --rbind /sys /mnt/sysimage/sys
mount --rbind /dev /mnt/sysimange/dev
mount --rbind /dev /mnt/sysimage/dev
chroot /mnt/sysimange
chroot /mnt/sysimage
</source>
</source>

Revision as of 03:31, 12 December 2015

mkdir /mnt/sysimage
mount /dev/vg1/root /mnt/sysimage
mount /dev/vg1/var /mnt/sysimage/var
mount /dev/sda1 /mnt/sysimage/boot
mount -t proc none /mnt/sysimage/proc
mount --rbind /sys /mnt/sysimage/sys
mount --rbind /dev /mnt/sysimage/dev
chroot /mnt/sysimage