Displaying 2 results from an estimated 2 matches for "disk_device_name_current_o".
Did you mean:
disk_device_name_current_os
2016 Nov 07
1
How do I create a syslinux bootable GPT UEFI Linux disk?
...create one bootable UEFI disk partition that contains all the space on the disk. The steps must work in a shell script. Ideally with syslinux/extlinux but if not possible then grub.
How to do this? Surely it should be dead easy, a handful of lines? Nothing I do works.
This is what I have so far:
DISK_DEVICE_NAME_CURRENT_OS=hda
echo remove all partitions
sudo /usr/local/sbin/sgdisk -Z /dev/${DISK_DEVICE_NAME_CURRENT_OS}
echo create GPT partition
sudo /usr/local/sbin/sgdisk -n 1:: /dev/${DISK_DEVICE_NAME_CURRENT_OS}
echo format file system
sudo mkfs.ext4 -F /dev/${DISK_DEVICE_NAME_CURRENT_OS}1
sudo mkdir -p /mnt/targe...
2016 Nov 07
2
Syslinux Digest, Vol 164, Issue 2
>
> I need to create one bootable UEFI disk partition that contains all the
> space on the disk. The steps must work in a shell script. Ideally with
> syslinux/extlinux but if not possible then grub.
>
>
>
> echo format file system
> sudo mkfs.ext4 -F /dev/${DISK_DEVICE_NAME_CURRENT_OS}1
>
EFI requires a FAT filesystem. Ideally FAT32 but that might be encumbered
by Microsoft patents? Maximum size of a FAT16 partition is 2GB.
Use mkfs.vfat You can try the "-F 32" if you're not worried about being
sued by Microsoft.