OK, first of all, thank you all for your guidance. I don't know if any senior has made a summary of this aspect. If there is, this post will be regarded as a supplement, which can also guide rookies like me. The summary is as follows:
(The following commands run on NT systems)
1. fsutil (must be logged in as a member of the administrator or administrator group to use): (See floor 3)
For example: for /f "skip=1" %%i in ('wmic logicaldisk where "drivetype=3" get caption') do (
for /f "tokens=1,2 delims=:" %%a in ('fsutil fsinfo volumeinfo %%i\ ^| find "File System Name"') do echo %%i %%b
)
2. wmic (needs to be registered the first time used): (See floor 9)
For example: for /f "skip=1 tokens=1,2" %%i in ('"wmic logicaldisk get Caption,FileSystem"') do echo %%i %%j
3. chkntfs: (See floors 12, 20)
For example: for /f "skip=1" %%i in ('wmic logicaldisk where "drivetype=3" get caption') do (
for /f "tokens=1,2 delims= " %%a in ('chkntfs %%i ^|find "Type of File System"') do echo %%i %%b
)
4. Tools like md or cacls: (See floor 14)
Can judge FAT or NTFS file systems, but it seems unable to confirm whether it is FAT32 or FAT16 and others.
(The following commands run on DOS systems)
1. 00000055 33 32
First get the DBR, then see if the two bytes at offset 55 are 0x33 0x32
(http://www.cn-dos.net/forum/viewthread.php?tid=21845&fpage=1&highlight=%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F —— Brother GOTOmsdos said so, this rookie has not tested)
(The following commands require third-party tools)
1. omnifs (a tool attached in the Ghost enterprise version, the current version is v11.0.01502) (See floors 11, 16)
In addition, the GDISK mentioned by moderator gmy is known to be a hard disk partitioning tool. Can it judge the file system type? Brothers who have used it please explain. I dare not write it down before confirming it, for fear of misleading others. Please forgive me.
If there are other methods, please continue to leave a post.
[ Last edited by qinbuer on 2007-7-12 at 01:07 AM ]
(The following commands run on NT systems)
1. fsutil (must be logged in as a member of the administrator or administrator group to use): (See floor 3)
For example: for /f "skip=1" %%i in ('wmic logicaldisk where "drivetype=3" get caption') do (
for /f "tokens=1,2 delims=:" %%a in ('fsutil fsinfo volumeinfo %%i\ ^| find "File System Name"') do echo %%i %%b
)
2. wmic (needs to be registered the first time used): (See floor 9)
For example: for /f "skip=1 tokens=1,2" %%i in ('"wmic logicaldisk get Caption,FileSystem"') do echo %%i %%j
3. chkntfs: (See floors 12, 20)
For example: for /f "skip=1" %%i in ('wmic logicaldisk where "drivetype=3" get caption') do (
for /f "tokens=1,2 delims= " %%a in ('chkntfs %%i ^|find "Type of File System"') do echo %%i %%b
)
4. Tools like md or cacls: (See floor 14)
Can judge FAT or NTFS file systems, but it seems unable to confirm whether it is FAT32 or FAT16 and others.
(The following commands run on DOS systems)
1. 00000055 33 32
First get the DBR, then see if the two bytes at offset 55 are 0x33 0x32
(http://www.cn-dos.net/forum/viewthread.php?tid=21845&fpage=1&highlight=%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F —— Brother GOTOmsdos said so, this rookie has not tested)
(The following commands require third-party tools)
1. omnifs (a tool attached in the Ghost enterprise version, the current version is v11.0.01502) (See floors 11, 16)
In addition, the GDISK mentioned by moderator gmy is known to be a hard disk partitioning tool. Can it judge the file system type? Brothers who have used it please explain. I dare not write it down before confirming it, for fear of misleading others. Please forgive me.
If there are other methods, please continue to leave a post.
[ Last edited by qinbuer on 2007-7-12 at 01:07 AM ]
