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/...") |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<source lang="bash"> | <source lang="bash"> | ||
mkdir /mnt/ | mkdir /mnt/sysimage | ||
mount /dev/ | mount /dev/vg0/root /mnt/sysimage | ||
mount /dev/ | mount /dev/vg0/var /mnt/sysimage/var | ||
mount /dev/sda1 /mnt/ | mount /dev/sda1 /mnt/sysimage/boot | ||
mount -t proc none /mnt/ | mount -t proc none /mnt/sysimage/proc | ||
mount --rbind /sys /mnt/ | mount --rbind /sys /mnt/sysimage/sys | ||
mount --rbind /dev /mnt/ | mount --rbind /dev /mnt/sysimage/dev | ||
chroot /mnt/ | chroot /mnt/sysimage | ||
</source> | </source> | ||
[[Category:Linux]] |
Latest revision as of 10:05, 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