Re: [PATCH] fdisk: Add support for GPT partition type codes

2016-11-28 Thread James Bowlin
On Tue, Nov 29, 2016 at 08:38 AM, Mattias Schlenker said: > Use GPT on any UEFI system as boot media, and only use MBR on > drives with less than 2TB that should boot windows on BIOS (64 > bit windows 7 and up should be possible to boot from GPT on > BIOS - I did not yet test). Aside from size

Re: [PATCH] fdisk: Add support for GPT partition type codes

2016-11-28 Thread Mattias Schlenker
Am 28.11.2016 um 20:53 schrieb Tito: On 11/28/2016 05:42 PM, Simon Rettberg wrote: 27.11.2016, 20:24 +0200, Denys Vlasenko : However, I still don't understand how do you use them, apart from seeing them on output. That's pretty much it. Following the same line

Re: [PATCH] fdisk: Add support for GPT partition type codes

2016-11-28 Thread Tito
On 11/28/2016 05:42 PM, Simon Rettberg wrote: 27.11.2016, 20:24 +0200, Denys Vlasenko : However, I still don't understand how do you use them, apart from seeing them on output. That's pretty much it. Following the same line of argument, you could ask why we have

Re: [PATCH] fdisk: Add support for GPT partition type codes

2016-11-28 Thread Simon Rettberg
27.11.2016, 20:24 +0200, Denys Vlasenko : > However, I still don't understand how do you use them, > apart from seeing them on output. > That's pretty much it. Following the same line of argument, you could ask why we have this table in fdisk.c that maps the MBR type

Re: [PATCH] fdisk: Add support for GPT partition type codes

2016-11-27 Thread Denys Vlasenko
On Sun, Nov 27, 2016 at 1:41 PM, Jody Bruchon wrote: > On 11/27/2016 12:11 AM, Denys Vlasenko wrote: >> I looked at these "type codes of GPT partitions" and they seem to be >> a figment of imagination of "GPT fdisk" people: they are not stored on >> disk, >> fdisk authors

Re: [PATCH] fdisk: Add support for GPT partition type codes

2016-11-27 Thread Jody Bruchon
On 11/27/2016 12:11 AM, Denys Vlasenko wrote: > I looked at these "type codes of GPT partitions" and they seem to be > a figment of imagination of "GPT fdisk" people: they are not stored on disk, > fdisk authors just assigned them to some GUIDs. > > How do you find them useful? I use gptfdisk

Re: [PATCH] fdisk: Add support for GPT partition type codes

2016-11-26 Thread Denys Vlasenko
On Thu, Nov 17, 2016 at 8:28 PM, Simon Rettberg wrote: > Now that I needed to get the type codes of GPT partitions in a script I > decided to add this functionality to busybox fdisk, which had a big > FIXME in the code and just printed 0700 for every partition

[PATCH] fdisk: Add support for GPT partition type codes

2016-11-17 Thread Simon Rettberg
Now that I needed to get the type codes of GPT partitions in a script I decided to add this functionality to busybox fdisk, which had a big FIXME in the code and just printed 0700 for every partition (and gave me some headache before I realized this). Since this adds a big lookup table I made