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

Disclaimer

This information may have errors; It is not permissible to be read by anyone who has ever met a lawyer.
Use is confined to Engineers with more than 370 course hours of electronic engineering for theoretical studies.
ph +1(785) 841-3089

Email inform@xtronics.com

(C) Copyright 1994-2017, Transtronics, Inc. All rights reserved
TranstronicsĀ® is a registered trademark of Transtronics, Inc.
All trademarks are the property of their respective owners.