Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 364 Bytes

copy a file from system to chroot directory.MD

File metadata and controls

11 lines (8 loc) · 364 Bytes

First check where the chroot directory is mounted(let's assume /mnt)

after chrooting inside mnt(chroot /mnt)

open another terminal and type in

sudo cp /etc/resolv.conf /mnt/etc

I've booted into a live cd, mounted the root partition on /mnt and chrooted.So, I'm copying resolv.conf from the systems etc directoy to the chrooted etc.