Message info
 
To:arch-releng@archlinux.org From:Thomas B├Ąchler Subject:Re: [arch-releng] [RFC] [PATCH] [archiso] README: add: Transfer ISO file to target medium Date:Wed, 18 Apr 2012 16:38:18 +0200
 

Am 16.04.2012 19:41, schrieb Gerardo Exequiel Pozzi:
> +* PC-BIOS (MBR):

My favorite method:

> +
> +1) Create one partition entry in MBR (of type "b" for FAT32 or "83" for EXTFS)
> + and mark it as "active" (booteable).

"bootable"

> +# fdisk <DEV-TARGET>
> +
> +2) Create a FAT32 or EXTFS filesystem on such partition and setup a label.
> +# mkfs.vfat -F 32 -n <FS-LABEL> <DEV-TARGET-N>
> +# mkfs.ext2 -L <FS-LABEL> <DEV-TARGET-N>

I would recommend ext4 here (you can build it without journal if
preferred), as ext2 is very much out of date. Or, recommend all of them
(2,3,4).

> +3) Mount target filesystem.
> +# mount <DEV-TARGET-N> <MNT-TARGET-N>
> +
> +4) Extract ISO image on target filesystem.
> +# bsdtar -x --exclude=isolinux/ --exclude=EFI/ -f <ISO-SOURCE> -C <MNT-TARGET-N>
> +
> +5) Install syslinux bootloader on target filesystem.
> +# 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>


Attachment:

"signature.asc"