Created
March 26, 2012 22:33
-
-
Save mandymozart/2210281 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir /mnt/root | |
#on 64bit | |
sudo mount -t ext4 /dev/sda1 /mnt/root | |
#on 32bit | |
sudo mount -t ext3 /dev/sda1 /mnt/root | |
sudo mount -t proc none /mnt/root/proc | |
sudo mount -o bind /dev /mnt/root/dev | |
#enter chroot | |
sudo chroot /mnt/root /bin/bash | |
#fix chroot issues with dhcp | |
nano /etc/resolv.conf | |
#Add line for router | |
nameserver 192.168.2.1 | |
#make swap file instead of swap partition | |
dd if=/dev/zero of=/swapfile bs=1048576 count=1000 | |
mkswap /swapfile | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment