On 4/20/2017 2:17 AM, Wang Dong wrote: > You mean that parted will set the partition type code according to the > file system type? I didn't find the code in parted. Would you please > show me?
See msdos_partition_set_system() in labels/dos.c. DOS/Windows won't recognize their filesystems unless the partition type code is correct.

