README.transfer 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. INDEX
  2. -----
  3. * Transfer ISO file to target medium (configs/releng)
  4. * To -> CD / DVD / BD
  5. * To -> USB-key / SD / HDD / SSD
  6. * PC-BIOS (MBR)
  7. * PC-BIOS (ISOHYBRID-MBR)
  8. * PC-EFI (GPT) [x86_64 only]
  9. * PC-EFI (ISOHYBRID-GPT) [x86_64 only]
  10. *** Transfer ISO image to target medium (configs/releng)
  11. ISO images names consist of: parabola-<YYYY>.<MM>.<DD>-dual.iso
  12. Where:
  13. <YYYY> Year
  14. <MM> Month
  15. <DD> Day
  16. ** To -> CD / DVD / BD
  17. Note: All ISO images are booteable on a PC-BIOS via "El Torito" in no-emulation mode,
  18. All x86_64 ISO images are booteable on a PC-EFI via "El Torito" in no-emulation mode.
  19. Nomeclature:
  20. <B> scsibus number
  21. <T> target number
  22. <L> lun number
  23. (Note: see cdrecord -scanbus, for these numbers)
  24. 1) Write it directly using your favorite recording program.
  25. # cdrecord dev=<B>,<T>,<L> -dao parabola-<YYYY>.<MM>.<DD>-dual.iso
  26. ** To -> USB Flash Drive (USB-key) / Memory card (SD) /
  27. Hard-Disk Drive (HDD) / Solid-State Drive (SSD)
  28. Note: These steps are the general workflow, you can skip some of them,
  29. using another filesystem if your bootloader supports it,
  30. installing to another directory than "parabola/" or using more than
  31. one partition. Just ensure that main boot params options
  32. (parabolaisolabel= and parabolaisobasedir=) are set correctly according to your setup.
  33. Nomeclature:
  34. <DEV-TARGET>: Device node of the drive where ISO contents should be copied
  35. (example: /dev/sdx)
  36. <DEV-TARGET-N>: Device node of the partition on <DEV-TARGET>
  37. (example: /dev/sdx1)
  38. <MNT-TARGET-N>: Mount point path where <DEV-TARGET-N> is mounted
  39. (example: /mnt/sdx/1)
  40. <ISO-SOURCE>: Path to the ISO file parabola-<YYYY>.<MM>.<DD>-dual.iso
  41. (example: ~/parabola-2012.07.22-dual.iso)
  42. <FS-LABEL>: Represents the filesystem label of the <ISO-SOURCE>
  43. (example: PARA_201302)
  44. * PC-BIOS (MBR):
  45. Note: Using here a MBR partition mode as example, but GPT should also works
  46. if machine firmware is not broken.
  47. Just ensure that partition is set with attribute "2: legacy BIOS bootable"
  48. and use gptmbr.bin instead of mbr.bin for syslinux.
  49. 1) Create one partition entry in MBR and mark it as "active" (booteable).
  50. Note: Type "b" for FAT32, "83" for EXTFS or "7" for NTFS.
  51. # fdisk <DEV-TARGET>
  52. 2) Create a FAT32, EXTFS or NTFS filesystem on such partition and setup a label.
  53. Note: COW is not supported on NTFS.
  54. # mkfs.fat -F 32 -n <FS-LABEL> <DEV-TARGET-N>
  55. # mkfs.ext4 -L <FS-LABEL> <DEV-TARGET-N>
  56. # mkfs.ntfs -L <FS-LABEL> <DEV-TARGET-N>
  57. 3) Mount target filesystem.
  58. # mount <DEV-TARGET-N> <MNT-TARGET-N>
  59. 4) Extract ISO image on target filesystem.
  60. # bsdtar -x --exclude=isolinux/ --exclude=EFI/ --exclude=loader/ -f <ISO-SOURCE> -C <MNT-TARGET-N>
  61. 5) Install syslinux bootloader on target filesystem.
  62. # extlinux -i <MNT-TARGET-N>/parabola/boot/syslinux
  63. 6) Unmount target filesystem.
  64. # umount <MNT-TARGET-N>
  65. 7) Install syslinux MBR boot code on target drive.
  66. # dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/mbr.bin of=<DEV-TARGET>
  67. * PC-BIOS (ISOHYBRID-MBR):
  68. Note: This method is the most easily, quick and dirty, but is the most limited
  69. if you want to use your target medium for other purposes.
  70. If using this does not work, use PC-BIOS (MBR) method instead.
  71. 1) Dump ISO file to target medium.
  72. # dd if=<ISO-SOURCE> of=<DEV-TARGET>
  73. * PC-EFI (GPT) [x86_64 only]
  74. Note: Using here a GPT partition mode as example, but MBR should also works
  75. if machine firmware is not broken.
  76. 1) Create one partition entry in GPT (of type "ef00")
  77. # gdisk <DEV-TARGET>
  78. 2) Create a FAT32 filesystem on such partition and setup a label.
  79. # mkfs.fat -F 32 -n <FS-LABEL> <DEV-TARGET-N>
  80. 3) Mount target filesystem.
  81. # mount <DEV-TARGET-N> <MNT-TARGET-N>
  82. 4) Extract ISO image on target filesystem.
  83. # bsdtar -x --exclude=isolinux/ --exclude=EFI/parabolaiso/ --exclude=parabola/boot/syslinux/ -f <ISO-SOURCE> -C <MNT-TARGET-N>
  84. 5) Unmount target filesystem.
  85. # umount <MNT-TARGET-N>
  86. * PC-EFI (ISOHYBRID-GPT) [x86_64 only]
  87. Note: This method is the most easily, quick and dirty, but is the most limited
  88. if you want to use your target medium for other purposes.
  89. If using this does not work, use PC-EFI (GPT) method instead.
  90. 1) Dump ISO file to target medium.
  91. # dd if=<ISO-SOURCE> of=<DEV-TARGET>