win10 delete Ubuntu system

 

I like handmade operating system, do not like to install a variety of tools to take over the system, so the following is purely a function that comes with win10, slightly complicated, if they are not the same place during Proceed with caution, if you are unsure, self Baidu, and try to find their own system about the same tutorial can be less difference

 

System: win10, elementary os (Ubuntu)

Computer: Dell Inspiron (Home office)

Memory: 16G

Disk: 250G + 500G

Ubuntu partition: 60G

 

1. Do not format the Ubuntu partition directly to disk.

If you accidentally format, and also no big problem I encountered was black, I could not find the English prompt start, because my first startup item is ubuntu, then the command window below appears to be the same as dos, a variety of input windows command, you simply enter exit, enter to quit, the system automatically enters win10.

 

2. Go to the win10, you can delete EFI inside Ubuntu operating system boot files

Open Disk, see Ubuntu partition, I have only two partitions, generally have four, why only two, because when installed system see a Friends of Bo Bowen, / boot can not build, because we have used the win10 the system boot, swap swap can not be built, as long as your memory is large enough, then the Friends of Bo says "on the ubuntu18.04 concerned, this swap can not" Friends of Bo really confident, we believe can Do not believe, I believe, also successfully installed successfully, but I still want to delete and then reinstall Ubuntu once, may have numerous times, linux user system as the system is still very easy to use out of the pit, heavy equipment is the norm.

Digression: Why do I reload this time, because I was not installed on Sogou input method, install Ubuntu when I chose English, and then installing the system, and then install the input method, I guess there is no Chinese language library, I nor is successful, the system did not let me load the local language pack, and then be able to match, before I once installed, the selected language is Chinese, and that the input method is very simple to install, so in order to save trouble, direct reloading Chinese language before the election, such as the installation of the system, then switch to English is no problem. But if you are a great God, and know how to install the input method in English, you can tell me.

 

Open cmd, enter diskpart, will enter the disk management

我们看看我们有多少个盘,我有两个固态硬盘,win10在C盘,Ubuntu在D盘分出的60G分区,你可以根据大小判断,插一句,看到Gpt下边的小星星了吗,这个代表你的分区形式是GPT(MBR是旧的分区表形式,GPT 是新的分区表形式)

list disk

我们看看我们有几个卷,磁盘那个图可以看到一个650MB大小的EFI系统分区,其中卷5就是我们找的,因为我的Ubuntu EFI启动项在win10上,所以进入那个卷

【有用list partition查看可用区,操作partition进行修改盘符的,我试过,在我的电脑上会提示没有指定卷,所以,我就改用卷的方式操作】

list volume

 选择进入卷,给这个卷设置一个盘符,我设置的z,a~z都可以,不区分大小写,只要不和现有磁盘冲突就成

 select volume 5

 assign letter = z

 remove letter = z(删除完EFI文件后记得将盘符删掉,这样我们就不会看到这个盘)

 

 

现在你在去文件管理器去看,就能看到C盘,但是你不能操作,因为它是系统盘,需要系统用户才能操作,点击继续也可能不行,我就不行

 

我看到的网上的说法,大多是新建一个文本文件,通过打开文件进入这个盘,然后删除里边的Ubuntu,但是我操作失败了,所以我打算用管理员账号进入系统进行修改,但是管理员账号默认是关闭的

以管理员身份打开cmd

net user administrator /active:yes

操作成功,yes就是打开,no就是关闭,用完记得关闭账号

现在可以切换成管理员了,直接Ctrl+alt+delete,选择切换用户

然后进入z盘的EFI文件,把里边的Ubuntu文件夹删除

操作完记得,好了,我们把引导去掉了,现在你可以去格式化你的系统分区了

 

Guess you like

Origin www.cnblogs.com/Molamola/p/11210509.html