相当于windows中的mmcblk0

时间:2016-12-10 21:34:28

标签: python windows

我知道linux中的/dev/mmcblk0p1/dev/mmcblk0p2,它在Windows中的等价物是驱动器C:\D:\等驱动器,但我无法获得的是相当于Windows中的/dev/mmcblk0

提前致谢

1 个答案:

答案 0 :(得分:0)

mountvol

Creates, deletes, or lists a volume mount point.

MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L
MOUNTVOL [drive:]path /P
MOUNTVOL /R
MOUNTVOL /N
MOUNTVOL /E

    path        Specifies the existing NTFS directory where the mount
                point will reside.
    VolumeName  Specifies the volume name that is the target of the mount
                point.
    /D          Removes the volume mount point from the specified directory.
    /L          Lists the mounted volume name for the specified directory.
    /P          Removes the volume mount point from the specified directory,
                dismounts the volume, and makes the volume not mountable.
                You can make the volume mountable again by creating a volume
                mount point.
    /R          Removes volume mount point directories and registry settings
                for volumes that are no longer in the system.
    /N          Disables automatic mounting of new volumes.
    /E          Re-enables automatic mounting of new volumes.

Possible values for VolumeName along with current mount points are:

    \\?\Volume{ac453eb9-4148-11e3-9bf2-806e6f6e6963}\
        H:\

    \\?\Volume{ac453ebd-4148-11e3-9bf2-806e6f6e6963}\
        C:\

    \\?\Volume{f4fca246-4148-11e3-9bf3-001bfcce59b4}\
        I:\

    \\?\Volume{ac453eba-4148-11e3-9bf2-806e6f6e6963}\
        E:\

    \\?\Volume{ac453ebb-4148-11e3-9bf2-806e6f6e6963}\
        F:\

    \\?\Volume{ac453ebc-4148-11e3-9bf2-806e6f6e6963}\
        G:\

    \\?\Volume{ac453ec2-4148-11e3-9bf2-806e6f6e6963}\
        A:\

    \\?\Volume{3d9f2651-e688-11e3-9c3c-001bfcce608a}\
        D:\

请注意,Windows使用的是ID卷,而不是名称......如ac453eb9-4148-11e3-9bf2-806e6f6e6963

评论后编辑:

对于更人性化但完全无用的表单使用:

wmic diskdrive list brief /format:list

它将返回如下内容:

Caption=Intel Raid 0 Volume
DeviceID=\\.\PHYSICALDRIVE1
Model=Intel Raid 0 Volume
Partitions=1
Size=119932807680


Caption=Seagate Backup+ Desk SCSI Disk Device
DeviceID=\\.\PHYSICALDRIVE2
Model=Seagate Backup+ Desk SCSI Disk Device
Partitions=1
Size=4000776192000


Caption=Intel Raid 0 Volume
DeviceID=\\.\PHYSICALDRIVE0
Model=Intel Raid 0 Volume
Partitions=4
Size=1000226949120

请注意,Windows对Raid中的驱动器一无所知,只是它们在Raid中...这是因为Raid由BIOS管理。