The translation is temporarily closed for contributions due to maintenance, please come back later.
English Sinhala
First, ensure that working boot media exists for the system in case a problem occurs. If the boot loader is not configured properly to boot the new kernel, you can use this media to boot into {MAJOROS}.
USB media often comes in the form of flash devices sometimes called _pen drives_, _thumb disks_, or _keys_, or as an externally-connected hard disk device. Almost all media of this type is formatted as a `VFAT` file system. You can create bootable USB media on media formatted as `ext2`, `ext3`, `ext4`, or `VFAT`.
You can transfer a distribution image file or a minimal boot media image file to USB media. Make sure that sufficient free space is available on the device. Around 4 GB is required for a distribution DVD image, around 700 MB for a distribution CD image, or around 10 MB for a minimal boot media image.
You must have a copy of the `boot.iso` file from a {MAJOROS} installation DVD, or installation CD-ROM#1, and you need a USB storage device formatted with the `VFAT` file system and around 16 MB of free space. The following procedure will not affect existing files on the USB storage device unless they have the same path names as the files that you copy onto it. To create USB boot media, perform the following commands as the `root` user:
Install the [application]*SYSLINUX* bootloader on the USB storage device:
~]#{nbsp}syslinux /dev/sdX1
...where _sdX_ is the device name.
Create mount points for `boot.iso` and the USB storage device:
~]#{nbsp}mkdir /mnt/isoboot /mnt/diskboot
Mount `boot.iso`:
~]#{nbsp}mount -o loop boot.iso /mnt/isoboot
Mount the USB storage device:
~]#{nbsp}mount /dev/sdX1 /mnt/diskboot
Copy the [application]*ISOLINUX* files from the `boot.iso` to the USB storage device:
~]#{nbsp}cp /mnt/isoboot/isolinux/* /mnt/diskboot
Use the `isolinux.cfg` file from `boot.iso` as the `syslinux.cfg` file for the USB device:
~]#{nbsp}grep -v local /mnt/isoboot/isolinux/isolinux.cfg > /mnt/diskboot/syslinux.cfg
Unmount `boot.iso` and the USB storage device:
~]#{nbsp}umount /mnt/isoboot /mnt/diskboot
You should reboot the machine with the boot media and verify that you are able to boot with it before continuing.