From 9643a80b02ccc575817688db29f8b7357c7fb091 Mon Sep 17 00:00:00 2001 From: Captain Throwback Date: Fri, 27 May 2016 11:44:51 -0400 Subject: Add typecode to sgdisk for proper detection in Android - Fixes the "Unsupported SD Card" error when partitioning w/TWRP PS2: Use hex code instead of GUID to make code more succinct Update typecode for Linux swap to be consistent PS3: Revert PS2 changes Change-Id: I5aec780aa4dfb7bd9025ae8cbceda13bfaaa0b03 --- partitionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'partitionmanager.cpp') diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 96e30025e..eabc5d9e2 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1779,7 +1779,7 @@ int TWPartitionManager::Partition_SDCard(void) { return false; } gui_msg(Msg("create_part=Creating {1} partition...")("FAT32")); - Command = "sgdisk --new=0:0:" + fat_str + " --change-name=0:\"Microsoft basic data\" " + Device; + Command = "sgdisk --new=0:0:" + fat_str + " --change-name=0:\"Microsoft basic data\" --typecode=0:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 " + Device; LOGINFO("Command is: '%s'\n", Command.c_str()); if (TWFunc::Exec_Cmd(Command) != 0) { gui_msg(Msg(msg::kError, "unable_to_create_part=Unable to create {1} partition.")("FAT32")); -- cgit v1.2.3