Hey I need to put the isolinux bootloader on an sd card but how do I properly do that?

  • Is a Linux distro? Because each distro have it own way to do it. – Willian Paixao Jan 21 '13 at 19:05

Assuming that you can boot to the SD card, you might try using dd to write the ISO image to the SD card. Note that any image written this way may or may not have problems writing to the image, depending on how the ISO is configured. Also, you might destroy your Linux installation if you use incorrect parameters, so be careful.

dmesg | grep sd | less

This will allow you to look through your boot log for disks. Do this before and after putting the SD card into your working Linux machine. The device file /dev/sd? which is new to your list of visible drives will be your SD card. For example, let's say that it was assigned /dev/sdz.

dd if=your-linux-iso-image.iso of=/dev/sdz

This will take the contents of the ISO image and write it, bit for bit, to the SD card. The 'if' parameter is your input file, which should be your ISO image. The 'of' parameter is your output file, which should point to the SD card. This command may take some time, perhaps even several cups of coffee, so be patient. It's due to the low write speed of the memory inside the SD card and the speed of the USB bus.

Keep in mind that the /dev/sdz listed here is an example. If that were replace by the reference to an actual hard drive, that would be overwritten by the ISO image, causing irreparable damage to the Linux installation. Examine the results of the mount command to know what partitions are mounted and what disks are hard drives versus SD cards and other removable media.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.