Create a bootable CD under linux

October 2016


Emulating a boot disk for kernel 2.6


  • mkbootdisk_________version 1.5.1
  • Cdrecord-Clone_____version 2.01a28-dvd (i686-pc-linux-gnu)



Open a terminal and log as "root":
[jp@Mandrake tmpfs]$ su -
[root@Mandrake root]#
Determine the version of your kernel with the command "uname-r":
[root@Mandrake root]# uname -r
[root@Mandrake root]#

Create image file

Now it's time to create the boot image (.iso)
[root@Mandrake tmpfs]#  mkbootdisk --device cdbootdisk.iso -v --iso 2.6.3-19mdk
Installing isolinux... done
Copying /boot/vmlinuz-2.6.3-19mdk... done.
Copying /boot/initrd-2.6.3-19mdk.img... done.
Configuring bootloader... done.

Size of boot image is 4 sectors -> No emulation
[root@Mandrake tmpfs]#


  • mkbootdisk
    • The command
  • --device </path/file>
    • The boot image is created on the special file </path/file>. If --device is not specified, /dev/fd0 is used.
  • cdbootdisk.iso
    • The name of the file.
  • -v
    • Display the process(image creation)on screen.
  • --iso <kernel>
    • The version of your kernel.

Verification of file and its size( "ls -lh"):
[root@Mandrake tmpfs]# ls -lh
total 2,0M
-rw-r--r--  1 root root 2,0M mar 17 12:22 cdbootdisk.iso
[root@Mandrake tmpfs]#


It still remains burn our image on a CD-R or CD-RW. For that we'll use the command "cdrecord".

Note that: since kernel version 2.6, the CD/DVDBurners are no longer emulated as "SCSI" devices as it was the case for the 2.4 kernel. Thus we no longer need to use the command "cdrecord-scanbus" to determine the parameters to pass to the "dev=", simply enter the direct path to your device, such as "dev=/dev/hdd".

CD creation

  • For those who wish to use a CD-RW, start by erasing oit:
    • [jp@Mandrake tmpfs]$ cdrecord dev=/dev/hdd blank=fast
  • Once blank, burn your "iso":
    • [jp@Mandrake tmpfs]$ cdrecord -v -dao speed=4 dev=/dev/hdd cdbootdisk.iso
  • Reboot your system, and configure the BIOS to boot from the CDrom first ...

Related :

This document entitled « Create a bootable CD under linux » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.