Disclaimer

This information HAS errors and is made available WITHOUT ANY WARRANTY OF ANY KIND and without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It is not permissible to be read by anyone who has ever met a lawyer or attorney. Use is confined to Engineers with more than 370 course hours of engineering.
If you see an error contact:
+1(785) 841 3089
inform@xtronics.com

Create Thumbdrive with Debian


Could be best to just use Debian installer?

Manual method

# fdisk -l /dev/sdx

Zero it out.

# dd if=/dev/zero of=/dev/sdx bs=1048576 
# parted
(parted) mklabel msdos
(parted) mkpart primary ext2 1 -1
(parted) set 1 boot on
(parted) quit

system-nspawn Make a file system

# mkfs.ext4 /dev/sdx1
# mount /dev/sdx1 /mnt

Install the base system

# debootstrap --variant=minbase jessie /mnt http://httpredir.debian.org/debian/

Install grub (no chroot needed)

# grub-install --boot-directory /mnt/boot /dev/sdx1

Set a root password

# chroot /mnt
# passwd root
# exit

create up fstab

  1. blkid -p /dev/sdc1 | cut -f2 -d' ' > /mnt/etc/fstab

Need to edit to fix syntax, tell ext4, etc...

Now switch to system-nspawn - (sort of like chroot)

  1. systemd-nspawn -b -D /mnt

login to the container, install linux-base, linux-image-amd64, grub-pc


Top Page wiki Index