The installation makes use of official Debian mirrors and debootstrap which installs the base system without the kernel and without doing any sort of configuration. This means, for any user to be able to log into the newly installed system, some files in /etc need to be modified just after the installation.
The installation procedure:
- mount the new partition:
sdax stands for the partition to be mounted. x is a number from 1 upwards.
Code: Select all
# mount /mnt /dev/sdax
- Install the base system.
Instead of amd64, you can use any other architecture, for example, i386 is another viable option. However, be aware that the architecture type you chose is comptable with your hardware.
Code: Select all
# debootstrap --arch amd64 stable /mnt http://ftp.us.debian.org/debian
Instead of ftp.us.debian.org/debian, you can use any other mirror. Choose one that is not too far away from where you are doing the installation. - Now that the base system is installed, we have to borrow /dev and /proc from the working Live Linux system.
Code: Select all
# mount -o bind /dev /mnt/dev
Code: Select all
# mount -o bind /proc /mnt/proc
- Copy /etc/network/interfaces and /etc/mtab from the working Live Linux system.
Code: Select all
# cp /etc/mtab /mnt/etc/mtab
Code: Select all
# cp /etc/network/interfaces /mnt/etc/network/interfaces
- Enter the new installation through chroot.
Code: Select all
# chroot /mnt /bin/bash
- Add the installation partition to the /etc/fstab file.
Be careful to replace ext4 with the appropriate file system for your partition.
Code: Select all
# echo '/dev/sdax / ext4 defaults 0 0' >> /etc/fstab
- Update the new installation repository.
Code: Select all
# apt-get update
- Install a kernel. To check which kernels are available for your system, run:
The system will respond by providing a list of viable options.
Code: Select all
#apt-get install linux-image
Install a kernel.Code: Select all
apt-get install linux-image-amd64
- Install a bootloader unless you know how to boot an installation without having menu links or you have other reasons why you would opt not to install a bootloader.
Code: Select all
# apt-get install grub-pc
- Create a root password for the installation.
Code: Select all
# passwd
- Clean the system from unnecessary files.
Code: Select all
# apt-get clean
- Exit the chroot environment.
Code: Select all
# exit
- Unmount the installation partition to flush any pending journals.
Code: Select all
# umount /dev/sdax
Exit the chroot environment, reboot and enjoy.