sfdisk: make unhiding as complete as possible
It is unlikely anyone will ever need this, but I like idea commands being complete. The partition id's that can be unhide after this change are; Hidden HPFS/NTFS Hidden W95 FAT32 Hidden W95 FAT32 (LBA) Hidden W95 FAT16 (LBA) Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
84948ff939
commit
cdd834c37d
|
@ -2992,7 +2992,8 @@ set_unhidden(struct disk_desc *z, char *pnam) {
|
|||
|
||||
pno = asc_to_index(pnam, z);
|
||||
id = z->partitions[pno].p.sys_type;
|
||||
if (id == 0x11 || id == 0x14 || id == 0x16 || id == 0x17)
|
||||
if (id == 0x11 || id == 0x14 || id == 0x16 || id == 0x17 ||
|
||||
id == 0x17 || id == 0x1b || id == 0x1c || id == 0x1e)
|
||||
id -= 0x10;
|
||||
else
|
||||
errx(EXIT_FAILURE, _("partition %s has id %x and is not hidden"), pnam, id);
|
||||
|
|
Loading…
Reference in New Issue