Skip to content

How to add/change preseed files on Ubuntu DVD/CD

Automation is usually the best thing you can do when you perform things/tasks more than once. When you automate a process you have more time and more time means more time spent doing things that you really enjoy. In this scenario I will explain how to add a Ubuntu / Debian preseed file into a Ubuntu Alternate DVD iso so you can automate the installation process from a CD install. It can be used for doing automatic Ubuntu cd installations.
Important: This article does not explain how to create Ubuntu / Debian preseed files. If you’re interested in how to create a preseed file, please go to

1. Create environment
mkdir ~/lts-remaster
mkdir ~/lts-remaster/iso
mkdir ~/lts-remaster/cd-remaster
cd ~/lts-remaster

2. Mount ISO
sudo mount -o loop ubuntu-10.04.3-dvd-amd64.iso ~/lts-remaster/iso

2.1 Copy the ISO contents to the cd-remaster
rsync -avr iso/ cd-remaster/

3. Copy your already created seed file into the preseed directory.
sudo cp -v seed.seed ~/lts-remaster/cd-remaster/preseed/

4. Make changes to isolinux/text.cfg if necessary. Text.cfg is the file where you can configure the options menu.
sudo vi cd-remaster/isolinux/text.cfg

5. Burn the cd again
sudo mkisofs -r -V "Custom Ubuntu Install CD" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/ -no-emul-boot -boot-load-size 4 -boot-info-table -o custom-lts1043.iso ~/lts-remaster/cd-remaster

7. Boot the cd and add the following boot options or change the file isolinux/text.cfg :
file=/cdrom/preseed/seed.seed locale=en_US priority=critical console-setup/ask_detect=false console-setup/layoutcode=us hostname=your-hostname domain=your-domain initrd=/install/initrd.gz quiet --

PS: You must add those additional entries at boot time otherwise those questions/answers do not work.

You may have to play a bit with your preseed file in order to have all the questions answered. Dustin Kirkland has made available a preseed file as an example.


Posted in Knowledge Base.

Tagged with , , , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

or, reply to this post via trackback.