diskpart删除分区_如何使用Diskpart实用程序分配和删除驱动器号

diskpart删除分区

diskpart删除分区

The Disk Management tool in Windows gives you an easy-to-use graphical interface to dealing with partitions and drive letters, but what if you want to just quickly change a drive letter on the command prompt? The diskpart utility makes it easy.

Windows中的磁盘管理工具为您提供了一个易于使用的图形界面来处理分区和驱动器号 ,但是,如果您只想在命令提示符下快速更改驱动器号怎么办? diskpart实用程序使操作变得简单。

You’ll need to start by opening an administrator mode command prompt — type cmd into the search box, and then right-click and choose Run as administrator, or use the CTRL + SHIFT + ENTER keyboard shortcut.

首先,需要打开管理员模式命令提示符—在搜索框中键入cmd ,然后右键单击并选择“以管理员身份运行”,或使用CTRL + SHIFT + ENTER键盘快捷键。

Once there, run the diskpart command, and then type in the following to list out the volumes on your system.

在那里,运行diskpart命令,然后键入以下内容以列出系统上的卷。

list volume

清单数量

You’ll want to note the volume number next to the drive that you want to change the letter of. In our case, that number is 3.

您需要记下要更改其字母的驱动器旁边的卷号。 在我们的情况下,该数字为3。

Now we’ll use the select volume command to tell diskpart to make changes to that volume. If your drive number is different, you’ll want to replace the 3 with the number in your configuration.

现在,我们将使用select volume命令来告诉diskpart对该卷进行更改。 如果驱动器号不同,则需要用配置中的数字替换3。

select volume 3

选择卷3

You should see a message that the volume is now selected.

您应该看到一条消息,表明已选择了该卷。

At this point you can easily assign a new drive letter. Just type in this command, substituting R for the drive letter you’d like to use:

此时,您可以轻松分配新的驱动器号。 只需键入以下命令,用R替换您要使用的驱动器号:

assign letter=R

分配字母= R

Make sure to hit enter once you’re done, of course.

当然,请确保在完成后按Enter键。

Once you’ve made that change, your drive should show up again as a new device, and be available for browsing immediately.

进行更改后,驱动器应再次显示为新设备,并可以立即进行浏览。

If you want to unassign a drive letter in order to hide the drive, you can also use the remove letter command in the same way. We wouldn’t necessarily advise doing this, of course.

如果要取消分配驱动器号以隐藏驱动器,则也可以以相同方式使用remove letter命令。 当然,我们不一定建议这样做。

Don’t bother trying to change your C: drive, because that’s not going to work.

不要费心尝试更改C:驱动器,因为那将行不通。

翻译自: https://www.howtogeek.com/197296/how-to-use-the-diskpart-utility-to-assign-and-remove-drive-letters/

diskpart删除分区

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值