---
title: "Windows下磁盘只读 "
author: "21ca"
date: "2017-08-01T09:17:01Z"
tags: []
categories: ["操作系统"]
slug: "windows"
draft: false
lastmod: "2017-08-01T09:17:01Z"
id: 2387847
url: "https://21ca.iteye.com/blog/2387847"
---

### 1. 打开命令行运行"diskpart"

C:\\Users\\xxx&gt;diskpart

### 2. 在新窗口执行 list vol

DISKPART&gt; list vol

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info  
  ----------  ---  -----------  -----  ----------  -------  ---------  --------  
  Volume 0     E                       DVD-ROM         0 B  No Media  
  Volume 1         System Rese  NTFS   Partition    862 MB  Healthy    System  
  Volume 2     C   Windows      NTFS   Partition    293 GB  Healthy    Boot  
  Volume 3     D                NTFS   Partition    171 GB  Healthy

 

### 3. 由于D盘是只读，所以选择 volume 3

DISKPART&gt; select vol 3

Volume 3 is the selected volume.

 

 

### 4. 清除只读属性

DISKPART&gt; att vol clear readonly

Volume attributes cleared successfully.