Chroot: Difference between revisions
From VVCWiki
Jump to navigationJump to search
m (typo) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<source lang="bash"> | <source lang="bash"> | ||
mkdir /mnt/sysimage | mkdir /mnt/sysimage | ||
mount /dev/ | mount /dev/vg0/root /mnt/sysimage | ||
mount /dev/ | mount /dev/vg0/var /mnt/sysimage/var | ||
mount /dev/sda1 /mnt/sysimage/boot | mount /dev/sda1 /mnt/sysimage/boot | ||
mount -t proc none /mnt/sysimage/proc | mount -t proc none /mnt/sysimage/proc |
Revision as of 10:04, 20 February 2017
mkdir /mnt/sysimage
mount /dev/vg0/root /mnt/sysimage
mount /dev/vg0/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