diff --git a/src/fs.rs b/src/fs.rs index 156f988..c5fb0e0 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -121,6 +121,12 @@ impl BiosParameterBlock { rdr.read_exact(&mut bpb.volume_label)?; rdr.read_exact(&mut bpb.fs_type_label)?; } + if bpb.ext_sig != 0x29 { + // fields after ext_sig are not used - clean them + bpb.volume_id = 0; + bpb.volume_label = [0; 11]; + bpb.fs_type_label = [0; 8]; + } Ok(bpb) } }