[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Preseeding from USB



On Sun 02 Sep 2012 at 21:26:44 +0000, T o n g wrote:

> If I want to do automated install on Debian (http://www.hps.com/~tpg/
> notebook/autoinstall.php) using preseeding configuration file from USB 
> key, how should I tell the Debian boot loader to look there? 
> 
> If normally booted, my USB key would be sdc, should I use 
> 
>   preseed/file=/sdc/path/preseed.cfg
> 
> or /mnt/sdc or /media/its_label, or...?


1. Make a FAT16 partition on the key and format it with mkfs.vfat. Put
   preseed.cfg there.

2. Before booting the installer in expert mode tell it where the preseed
   file will be with the kernel parameter

	file=/mnt/preseed.cfg

3. Boot. Switch to console 2 with ALT-F2 and list the disks known to the
   kernel:

	ls -l /dev/sd*

4. Insert the USB stick and determine its device name, /dev/sdX, using
   the previous command.

5. Mount the partition you made in step 1.:

	mount -t vfat /dev/sdX1 /mnt

6. Switch to the installer screen with ALT-F1 and proceed with the
   installation.


You're booting from an ISO on a CD? Why use old technology? Depending on
the ISO you have you could put it on the USB stick and boot from it. A
second partition on the stick could hold any files you need (firmware,
preseed etc) during the intallation.


Reply to: