|
On 05/27/2015 07:20 AM, Philip Hands
wrote:
Charles Chambers <cchamb2@gmail.com> writes:Hi, Phil: And I've looked further. There's a step by step out there that describes the following steps: 1) Wipe USB drive. 2) Copy (via dd) boot.img to it.I'm guessing that boot.img is an image of a VFAT file system, with something like grub4dos on it (which supports booting ISO images from the filesystem). That's a completely different thing from dd-ing the ISO itself. For it to work, the ISO needs to be able to find it's own image on any old file system (which ours are built to do). If that floats your boat, fine. The boot.img is extracted from boot.img.gz, which is found at, for example, here: http://ftp.debian.org/debian/dists/wheezy/main/installer-amd64/current/images/hd-media/
Delete /dev/sdb2-4? I'm not sure that we look at the filesystem containing the ISO, when it's been loop-mounted (as would be the case here, assuming it works) in order to find a default preseed, but I guess that it's going to be mounted on /hd-media, so if not at least you ought to be able to specify it by it's path. As for question 3) well, you're copying (dd) a file system to the stick, and then copying an ISO into that file system, so you get no partitions. Don't file systems exist only in partitions? The file system comes in when you dd boot.img, and it creates four partitions. On the fdisk output, I have accomplished step 2. Kparted and Gparted both agree at that same point that there are no partitions, but fdisk shows 4 partitions, thus none can be added. I'm assuming that the four partitions are embedded in boot.img and created as part of the dd operation. I was describing dd-ing the ISO directly to the stick. Our ISO images contain a partition table and boot loader as a bit of magic to make the stick bootable. It turns out that one seems to be able to add partitions, which is what I was on about. I can double check that, but IIRC I tried and could not. The remaining issue would be getting the new partition mounted, and the preseed.cfg therein used, preferably automatically. The objective is a unattended USB install with an edittable preseed.cfg, and optionally additional packages and firmware files included on the media. Windows does it with a customizable unattended.txt (I think) and a system integration tool to select the installation options. |