unixwz0r

making a custom slackware iso

Feb 9th, 2015
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | None | 0 0
  1. HOW TO MAKE A BOOTABLE SLACKWARE DVD ISO IMAGE
  2.  
  3. To make a bootable Slackware install DVD, get into the top level Slackware
  4. directory (The one with ChangeLog.txt in it) and issue a command like this
  5. to build the ISO image in /tmp:
  6.  
  7. mkisofs -o /tmp/Tux-Hat-Linux-3.5-AMD64.iso \
  8. -R -J -A "Slackware Install" \
  9. -hide-rr-moved \
  10. -v -d -N \
  11. -no-emul-boot -boot-load-size 4 -boot-info-table \
  12. -sort isolinux/iso.sort \
  13. -b isolinux/isolinux.bin \
  14. -c isolinux/isolinux.boot \
  15. -m 'source' \
  16. -V "SlackDVD" .
  17.  
  18. As an additional step, the ISO image may be processed to make it bootable
  19. when written to a USB stick. This processing will not impact the ISO's
  20. ability to boot from DVD media. Use the following command to do this:
  21.  
  22. isohybrid /tmp/Tux-Hat-Linux-3.5-AMD64.iso
  23.  
  24. On my system, here's the command I'd use to burn the resulting DVD ISO:
  25.  
  26. growisofs -speed=2 -dvd-compat -Z /dev/sr0=slackware-dvd.iso
  27.  
  28. If your burner is not /dev/sr0, replace the device with the one your
  29. system uses.
  30.  
  31. I find discs burned at 2x are more reliable than ones burned at higher
  32. speeds, but you may see completely different results depending on media
  33. and burner type. The -dvd-compat option is also used so that a complete
  34. lead-out is written to the media for maximum compatibility.
  35.  
  36. To write the ISO image to a USB stick (process with isohybrid first, as
  37. shown above), use a command such as this (replace /dev/sdX with the device
  38. name for your USB stick):
  39.  
  40. dd if=/tmp/slackware-dvd.iso of=/dev/sdX bs=1M
  41.  
  42. Or, you can burn directly from the Slackware tree to a DVD(-/+)R(W):
  43.  
  44. growisofs \
  45. -Z /dev/sr0 \
  46. -R -J -A "Slackware Install" \
  47. -hide-rr-moved \
  48. -v -d -N \
  49. -no-emul-boot -boot-load-size 4 -boot-info-table \
  50. -sort isolinux/iso.sort \
  51. -b isolinux/isolinux.bin \
  52. -c isolinux/isolinux.boot \
  53. -m 'source' \
  54. -dvd-compat \
  55. -V "SlackDVD" .
  56.  
  57. Note that the source code directory will not be included on these DVD
  58. images in order to keep them under the limit for a single-layer disc.
  59. If you are using double layer DVD media and want to burn the complete
  60. tree to your disc, remove the -m option line from the command.
  61.  
  62.  
  63. HOW TO MAKE A SET OF BOOTABLE / INSTALLABLE CDROMS
  64.  
  65. This is a little bit more tricky. Step one will be to split the tree into
  66. portions that will fit on the media that you plan to burn to. The first
  67. disc must contain these directories:
  68.  
  69. /isolinux/
  70. /kernels/
  71. /slackware/
  72.  
  73. You'll need to make other /slackware/ directories on discs 2, 3, and maybe
  74. more, moving some of the disc series from disc 1 to other discs to make
  75. things fit. It is also possible to split a series to make more efficient
  76. use of the CD media. See the README_SPLIT.TXT example and instructional
  77. file in this directory for details about how to set that up.
  78.  
  79. The rest of the splitting up of discs is left as an exercise for the reader.
  80.  
  81. To make the first (bootable) ISO, a command like this is used within the
  82. directory where the disc tree is. Let's say the directory is 'd1' and you
  83. wish to output the ISO image in /tmp:
  84.  
  85. cd d1
  86. mkisofs -o /tmp/slackware-install-1.iso \
  87. -R -J -A "Slackware Install 1" \
  88. -hide-rr-moved \
  89. -v -d -N \
  90. -no-emul-boot -boot-load-size 4 -boot-info-table \
  91. -sort isolinux/iso.sort \
  92. -b isolinux/isolinux.bin \
  93. -c isolinux/isolinux.boot \
  94. -V "SlackCD1" .
  95.  
  96. Making a non-bootable disc is similar. Just omit a few options:
  97.  
  98. cd d2
  99. mkisofs -o /tmp/slackware-install-2.iso \
  100. -R -J -A "Slackware Install 2" \
  101. -hide-rr-moved \
  102. -v -d -N \
  103. -V "SlackCD2" .
  104.  
  105. To burn an ISO image to CD-R(W), the cdrecord command is used. For complete
  106. instructions, see the man page ('man cdrecord'). On my own machine where
  107. the burner is /dev/cdrw, disc one would be burned with the following command:
  108.  
  109. cat /tmp/slackware-install-1.iso | cdrecord -v dev=/dev/cdrw speed=10 fs=8m -tao -eject -data -
  110.  
  111. As before, it's possible to burn from the disc trees without the intermediate
  112. step of creating iso images by omitting the -o option to mkisofs and piping
  113. the output directly to cdrecord:
  114.  
  115. cd d1
  116. mkisofs \
  117. -R -J -A "Slackware Install 1" \
  118. -hide-rr-moved \
  119. -v -d -N \
  120. -no-emul-boot -boot-load-size 4 -boot-info-table \
  121. -sort isolinux/iso.sort \
  122. -b isolinux/isolinux.bin \
  123. -c isolinux/isolinux.boot \
  124. -V "SlackCD1" . | cdrecord -v dev=/dev/cdrw speed=10 fs=8m -tao -eject -data -
  125.  
  126. -----
  127.  
  128. NOTES:
  129. The isolinux/isolinux.boot file will be created on the disc; it's not
  130. supposed to be in the source tree. I mention this only because so many
  131. people report the "missing" isolinux/isolinux.boot file as a bug.
  132.  
  133. The "-boot-load-size 4" is actually not large enough to hold the isolinux
  134. boot loader, but many BIOS implementations are broken and will *only*
  135. accept "4". Evidently many newer, more correct BIOS implementations
  136. expect this and will continue to load the boot loader file until the
  137. EOF is reached. Anyway, previous uses of larger values were correct, but
  138. led to the Slackware ISO not booting on some machines which contained
  139. broken BIOS implementations. It is my hope that by using the incorrect
  140. value of 4 sectors that the ISO will boot on most (if not all) machines
  141. that are supposed to be able to boot from an ISO image.
  142.  
  143. I don't know how to create a bootable Slackware ISO on operating systems
  144. other than Linux, but it should be easy to burn the Linux-created ISO with
  145. most CD burning software on any operating system.
  146.  
  147. Enjoy!
  148.  
  149. -P.
Advertisement
Add Comment
Please, Sign In to add comment