LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Create a GPT partition scheme on USB stick? (https://www.linuxquestions.org/questions/linux-general-1/create-a-gpt-partition-scheme-on-usb-stick-4175534063/)

yozh 02-14-2015 06:18 PM

Create a GPT partition scheme on USB stick?
 
Hi guys,

I need to create a GPT partition schenme to a USB stick in order to create an UEFI compatible windows 8 install media under slackware-current.

I been surfing thru the web but i really didnt found anything useful to me.
So im here asking help to the linux gurus.

Hope you can help me pointing me to the right direction.

PS. Making mbr bootable installation media its easy, parted, ms-sys etc, but im lost in this whole uefi-gpt scheme stuff..

Thanks in advance.

Yozh

Hungry ghost 02-14-2015 06:27 PM

If you have Gparted installed you can select the device you want to create the GPT partition scheme on (top-right corner), then select "Device" > "Create partition table" on the menu bar above and select "gpt" as your partition table on the next dialog box.

Be aware that this will destroy everything you have in the device you select, so you must make sure you're using the right device and not your HDD.

jefro 02-17-2015 07:18 PM

Almost every major distro has a way to create a bootable usb for uefi systems.

I do think that one I read did say something like make a gpt partition but that should be trivial and not really related to your issue.

colorpurple21859 02-17-2015 07:43 PM

I made a bootable uefi slackware install usb stick by doing this:

Make usb in gpt format with two partitions, the first one a boot partition about 500mb fat32 and boot flag set, the second partition rest of usb ext4. (note: next step will create directory)Create an EFI/BOOT directory at the top of the usb boot partition.

Install refind to usb boot partition using binary zip file according to this: http://www.rodsbooks.com/refind/getting.html

Download SlackEfiUsbBoot file from here: http://www.playwithtransistors.com/i...UsbBoot.tar.gz untar files and place SlackEfiUsbBoot directory in the EFI directory.
or
Make /EFI/Slackware directory and copy bzImage and initrd.img from slackware64 iso.

Create a refind_linux.conf file in the EFI directory that contains bzImage and initrd.img with the following:
Code:

menuentry "Slackware" {
loader /EFI/SlackEfiUsbBoot/bzImage
initrd /EFI/SlackEfiUsbBoot/initrd.img
options "load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s"
}

copy or dd slackware-install-iso to second usb partition

reboot and select usb from efi boot manager.
With a few modifications this should work for other distos also.

jefro 02-17-2015 09:05 PM

Not sure if this helps at all. http://xathrya.web.id/blog/2013/01/0...based-machine/


All times are GMT -5. The time now is 05:38 AM.