parted/disable_FAT_check.diff

21 lines
694 B
Diff

--- libparted/labels/dos.c
+++ libparted/labels/dos.c 2005/01/11 14:39:51
@@ -170,6 +170,9 @@
if (PED_BE32_TO_CPU (*(unsigned int*)(part_table->boot_code)) == AIXIPLRECID)
return 0;
+/* disable this check since it makes parted fail on some IDE disks with
+TurboLinux installed */
+#if 0
/* if this is a FAT fs, fail here. Note that the Smart Boot Manager
* Loader (SBML) signature indicates a partition table, not a file
* system.
@@ -178,6 +181,7 @@
&& strncmp (part_table->boot_code + 0x40, "SBML", 4) != 0)
|| !strncmp (part_table->boot_code + 0x52, "FAT", 3))
goto probe_fail;
+#endif
/* If this is a GPT disk, fail here */
for (i = 0; i < 4; i++) {