Skip to content

Instantly share code, notes, and snippets.

@mandymozart
Created March 26, 2012 22:33
Show Gist options
  • Save mandymozart/2210281 to your computer and use it in GitHub Desktop.
Save mandymozart/2210281 to your computer and use it in GitHub Desktop.
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