

This is the device name of the USB stick. Now plug the stick in and note the extra entry under NAME when the command is executed again. Without the stick plugged into a USB port execute lsblk (as a user). This can be done with or without becoming root. There is no requirement to use su or sudo for a device to be partitioned, formatted and have GRUB installed to its MBR on Debian 7.Īn exception to the need to have root privileges is when it comes to mounting a partition on a USB stick. On Debian 7 an ordinary user does have the permissions to write to a raw device and the dd, fdisk, cfdisk, mkfs.vfat and grub-install commands will be successful. The only way to have these commands complete successfully is for a user to gain root privileges with su or sudo or log in as root. Using the dd, fdisk, cfdisk, mkfs.vfat and grub-install commands will not work for such a user. It is tailored to install a minimal text mode OS that has an ethernet connection to the internet.įor Debian 8 and later an ordinary user does not have the permissions to write to a raw device.

There is a sample preseed.cfg file available to consult. The same techniques should be applicable to pre-Debian 11 (buster and earlier) and the amd64 architecture of all distributions. Having the USB stick also hold a Debian archive to allow package installation from it after the OS has been installed.Īutomation is done via preseeding and the focus here will be on the i386 Debian 11 (bullseye) architecture to illustrate the process.Producing an automated installation of a Debian operating system from a USB stick.The techniques described on this page have the objectives of Telling the OS About the Package Archive.Choose from Multiple Installation Images.
