2012-10-13 19:40:41 +02:00
|
|
|
INDEX
|
|
|
|
-----
|
|
|
|
|
|
|
|
* Transfer ISO file to target medium (configs/releng)
|
|
|
|
* To -> CD / DVD / BD
|
|
|
|
* To -> USB-key / SD / HDD / SSD
|
|
|
|
* PC-BIOS (MBR)
|
|
|
|
* PC-BIOS (ISOHYBRID-MBR)
|
|
|
|
* PC-EFI (GPT) [x86_64 only]
|
2013-06-28 17:49:46 +02:00
|
|
|
* PC-EFI (ISOHYBRID-GPT) [x86_64 only]
|
2012-10-13 19:40:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*** Transfer ISO image to target medium (configs/releng)
|
|
|
|
|
2013-01-31 07:34:48 +01:00
|
|
|
ISO images names consist of: archlinux-<YYYY>.<MM>.<DD>-dual.iso
|
2012-10-13 19:40:41 +02:00
|
|
|
|
|
|
|
Where:
|
|
|
|
<YYYY> Year
|
|
|
|
<MM> Month
|
|
|
|
<DD> Day
|
|
|
|
|
|
|
|
|
|
|
|
** To -> CD / DVD / BD
|
|
|
|
|
|
|
|
Note: All ISO images are booteable on a PC-BIOS via "El Torito" in no-emulation mode,
|
|
|
|
All x86_64 ISO images are booteable on a PC-EFI via "El Torito" in no-emulation mode.
|
|
|
|
|
|
|
|
Nomeclature:
|
|
|
|
<B> scsibus number
|
|
|
|
<T> target number
|
|
|
|
<L> lun number
|
|
|
|
(Note: see cdrecord -scanbus, for these numbers)
|
|
|
|
|
|
|
|
|
|
|
|
1) Write it directly using your favorite recording program.
|
2013-01-31 07:34:48 +01:00
|
|
|
# cdrecord dev=<B>,<T>,<L> -dao archlinux-<YYYY>.<MM>.<DD>-dual.iso
|
2012-10-13 19:40:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
** To -> USB Flash Drive (USB-key) / Memory card (SD) /
|
|
|
|
Hard-Disk Drive (HDD) / Solid-State Drive (SSD)
|
|
|
|
|
|
|
|
Note: These steps are the general workflow, you can skip some of them,
|
|
|
|
using another filesystem if your bootloader supports it,
|
|
|
|
installing to another directory than "arch/" or using more than
|
|
|
|
one partition. Just ensure that main boot params options
|
|
|
|
(archisolabel= and archisobasedir=) are set correctly according to your setup.
|
|
|
|
|
|
|
|
Nomeclature:
|
|
|
|
<DEV-TARGET>: Device node of the drive where ISO contents should be copied
|
|
|
|
(example: /dev/sdx)
|
|
|
|
<DEV-TARGET-N>: Device node of the partition on <DEV-TARGET>
|
|
|
|
(example: /dev/sdx1)
|
|
|
|
<MNT-TARGET-N>: Mount point path where <DEV-TARGET-N> is mounted
|
|
|
|
(example: /mnt/sdx/1)
|
2013-01-31 07:34:48 +01:00
|
|
|
<ISO-SOURCE>: Path to the ISO file archlinux-<YYYY>.<MM>.<DD>-dual.iso
|
|
|
|
(example: ~/archlinux-2012.07.22-dual.iso)
|
2012-10-13 19:40:41 +02:00
|
|
|
<FS-LABEL>: Represents the filesystem label of the <ISO-SOURCE>
|
2013-01-31 07:34:48 +01:00
|
|
|
(example: ARCH_201302)
|
2012-10-13 19:40:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
* PC-BIOS (MBR):
|
|
|
|
|
|
|
|
Note: Using here a MBR partition mode as example, but GPT should also works
|
|
|
|
if machine firmware is not broken.
|
|
|
|
Just ensure that partition is set with attribute "2: legacy BIOS bootable"
|
|
|
|
and use gptmbr.bin instead of mbr.bin for syslinux.
|
|
|
|
|
2012-10-26 04:40:03 +02:00
|
|
|
1) Create one partition entry in MBR and mark it as "active" (booteable).
|
|
|
|
Note: Type "b" for FAT32, "83" for EXTFS or "7" for NTFS.
|
2012-10-13 19:40:41 +02:00
|
|
|
# fdisk <DEV-TARGET>
|
|
|
|
|
2012-10-26 04:40:03 +02:00
|
|
|
2) Create a FAT32, EXTFS or NTFS filesystem on such partition and setup a label.
|
|
|
|
Note: COW is not supported on NTFS.
|
2012-10-13 19:40:41 +02:00
|
|
|
# mkfs.vfat -F 32 -n <FS-LABEL> <DEV-TARGET-N>
|
|
|
|
# mkfs.ext4 -L <FS-LABEL> <DEV-TARGET-N>
|
2012-10-26 04:40:03 +02:00
|
|
|
# mkfs.ntfs -L <FS-LABEL> <DEV-TARGET-N>
|
2012-10-13 19:40:41 +02:00
|
|
|
|
|
|
|
3) Mount target filesystem.
|
|
|
|
# mount <DEV-TARGET-N> <MNT-TARGET-N>
|
|
|
|
|
|
|
|
4) Extract ISO image on target filesystem.
|
|
|
|
# bsdtar -x --exclude=isolinux/ --exclude=EFI/ --exclude=loader/ -f <ISO-SOURCE> -C <MNT-TARGET-N>
|
|
|
|
|
2012-10-26 04:40:03 +02:00
|
|
|
5) Install syslinux bootloader on target filesystem.
|
2012-10-13 19:40:41 +02:00
|
|
|
# extlinux -i <MNT-TARGET-N>/arch/boot/syslinux
|
|
|
|
|
|
|
|
6) Unmount target filesystem.
|
|
|
|
# umount <MNT-TARGET-N>
|
|
|
|
|
|
|
|
7) Install syslinux MBR boot code on target drive.
|
|
|
|
# dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/mbr.bin of=<DEV-TARGET>
|
|
|
|
|
|
|
|
|
|
|
|
* PC-BIOS (ISOHYBRID-MBR):
|
|
|
|
|
|
|
|
Note: This method is the most easily, quick and dirty, but is the most limited
|
|
|
|
if you want to use your target medium for other purposes.
|
2013-06-28 17:49:46 +02:00
|
|
|
If using this does not work, use PC-BIOS (MBR) method instead.
|
2012-10-13 19:40:41 +02:00
|
|
|
|
|
|
|
1) Dump ISO file to target medium.
|
|
|
|
# dd if=<ISO-SOURCE> of=<DEV-TARGET>
|
|
|
|
|
|
|
|
|
|
|
|
* PC-EFI (GPT) [x86_64 only]
|
|
|
|
|
|
|
|
Note: Using here a GPT partition mode as example, but MBR should also works
|
|
|
|
if machine firmware is not broken.
|
|
|
|
|
|
|
|
1) Create one partition entry in GPT (of type "ef00")
|
|
|
|
# gdisk <DEV-TARGET>
|
|
|
|
|
|
|
|
2) Create a FAT32 filesystem on such partition and setup a label.
|
|
|
|
# mkfs.vfat -F 32 -n <FS-LABEL> <DEV-TARGET-N>
|
|
|
|
|
|
|
|
3) Mount target filesystem.
|
|
|
|
# mount <DEV-TARGET-N> <MNT-TARGET-N>
|
|
|
|
|
|
|
|
4) Extract ISO image on target filesystem.
|
|
|
|
# bsdtar -x --exclude=isolinux/ --exclude=EFI/archiso/ --exclude=arch/boot/syslinux/ -f <ISO-SOURCE> -C <MNT-TARGET-N>
|
|
|
|
|
|
|
|
5) Unmount target filesystem.
|
|
|
|
# umount <MNT-TARGET-N>
|
2013-06-28 17:49:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
* PC-EFI (ISOHYBRID-GPT) [x86_64 only]
|
|
|
|
|
|
|
|
Note: This method is the most easily, quick and dirty, but is the most limited
|
|
|
|
if you want to use your target medium for other purposes.
|
|
|
|
If using this does not work, use PC-EFI (GPT) method instead.
|
|
|
|
|
|
|
|
1) Dump ISO file to target medium.
|
|
|
|
# dd if=<ISO-SOURCE> of=<DEV-TARGET>
|