Going to watch a basketball game so will leave commands:
Code:
Am using sda5 as partition # use your own to mount partition.
Code:
sudo mount /dev/sda5 /mnt
Code:
sudo mount -o bind /dev /mnt/dev
Code:
sudo mount -o bind /dev/pts /mnt/dev/pts
Code:
sudo mount -o bind /proc /mnt/proc
Code:
sudo mount -o bind /sys /mnt/sys
Code:
sudo cp /etc/resolv.conf /mnt/etc/resolv.conf
Code:
dpkg --configure -a
Code:
apt-get update && apt-get upgrade
Code:
sudo umount /mnt/dev/pts
Code:
sudo umount /mnt/dev
Code:
sudo umount /mnt/proc
Code:
sudo umount /mnt/sys
You have mounted your partition with dev,dev/pts,proc and sys
you have copied internet connection to partition
you have gotten into root of your file system (chroot)
you have fixed dependencies
you have updated and upgraded
you have checked dependencies
you have updated grub
And unmounted partition.
## Notice the first command: You have put sda5 in /mnt so from now on sda5 is /mnt until is unmounted.
Bookmarks