Placeholder |
Example |
Comment |
$TARGETDISK |
/dev/hda2 |
The partition on which the new Debian system should
reside. Check the Debian installation guide for suggested sizes. Your bootloader
must be able to boot Linux from here. |
$BOOTDISK |
/dev/hda3 |
The partition on which the installation disk, the
part which creates the base Debian installation, will be placed. It can be
fairly small, like 20 MB. Your bootloader must be able to boot Linux from
here. |
$BASEFILES |
debianinst on /dev/hda1 |
The directory in which the Debian installation files
(listed in the next section) will be placed. It can be on any existing partition,
like $BOOTDISK or that of your existing OS, as long as the filesystem is
ext2 (or FAT?). |
dist/stable/main/disks-i386/current/
of your favourite Debian mirror and arrange them in the exact same way under $BASEFILES.images-1.44/root.bin
, you doNecessary files:cd $BASEFILES
mkdir images-1.44
cd images-1.44
wget ftp://ftp.debian.org/debian/dists/stable/main/disks-i386/current/images-1.44/root.bin
base2_2.tgz
linux
drivers.tgz
images-1.44/rescue.bin
images-1.44/root.bin
images-1.44/driver-1.bin
images-1.44/driver-2.bin
images-1.44/driver-3.bin
images-1.44/driver-4.bin
images-1.44/kernel-config
cd /mnt
mkdir bootdisk
mkdir target
mkdir bootloop
mke2fs $BOOTDISK
mke2fs $TARGETDISK
mount -t ext2 $BOOTDISK bootdisk
mount -t ext2 $TARGETDISK target
cd /tmp
cp $BASEFILES/images-1.44/root.bin root.bin.gz
gunzip root.bin.gz
mount -o loop -t ext2 root.bin /mnt/bootloop
cd /mnt/bootloop
cp -dpRx . /mnt/bootdisk
cp $BASEFILES/linux /mnt/bootdisk
/linux
on $BOOTDISK.boot/vmlinuz-something
).