-
Notifications
You must be signed in to change notification settings - Fork 0
/
aa10dbf69217.html
395 lines (290 loc) · 17.5 KB
/
aa10dbf69217.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">
<link rel="apple-touch-icon" sizes="180x180" href="/images/mylogo-128x128.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/mylogo-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/mylogo-16x16.png">
<link rel="mask-icon" href="/images/mylogo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css" integrity="sha256-mUZM63G8m73Mcidfrv5E+Y61y7a12O5mW4ezU3bxqW4=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">
<script class="next-config" data-name="main" type="application/json">{"hostname":"renshengjihe.cn","root":"/","images":"/images","scheme":"Gemini","darkmode":false,"version":"8.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":"ture","bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":true,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果:${query}","hits_time":"找到 ${hits} 个搜索结果(用时 ${time} 毫秒)","hits":"找到 ${hits} 个搜索结果"}}</script><script src="/js/config.js"></script>
<meta name="description" content="记录从 deepin 系统迁移到 ubuntu 系统的过程,保留了 home 分区的内容。">
<meta property="og:type" content="article">
<meta property="og:title" content="把系统从 deepin 重装成 ubuntu">
<meta property="og:url" content="https://renshengjihe.cn/aa10dbf69217">
<meta property="og:site_name" content="人生几何">
<meta property="og:description" content="记录从 deepin 系统迁移到 ubuntu 系统的过程,保留了 home 分区的内容。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://renshengjihe-1257851699.cos.ap-guangzhou.myqcloud.com/191125-deepinTuUbuntu/fdisk.png">
<meta property="article:published_time" content="2019-11-25T12:36:53.000Z">
<meta property="article:modified_time" content="2021-10-22T16:44:27.989Z">
<meta property="article:author" content="dhd">
<meta property="article:tag" content="系统重装">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://renshengjihe-1257851699.cos.ap-guangzhou.myqcloud.com/191125-deepinTuUbuntu/fdisk.png">
<link rel="canonical" href="https://renshengjihe.cn/aa10dbf69217.html">
<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"https://renshengjihe.cn/aa10dbf69217","path":"aa10dbf69217.html","title":"把系统从 deepin 重装成 ubuntu"}</script>
<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>把系统从 deepin 重装成 ubuntu | 人生几何</title>
<noscript>
<link rel="stylesheet" href="/css/noscript.css">
</noscript>
<!-- hexo injector head_end start -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style.css">
<!-- hexo injector head_end end --></head>
<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
<div class="headband"></div>
<main class="main">
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="切换导航栏" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<i class="logo-line"></i>
<h1 class="site-title">人生几何</h1>
<i class="logo-line"></i>
</a>
<p class="site-subtitle" itemprop="description">一个普通程序员的技术博客</p>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
</div>
</div>
</div>
<nav class="site-nav">
<ul class="main-menu menu">
<li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li>
<li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li>
<li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li>
<li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a></li>
</ul>
</nav>
</div>
<div class="toggle sidebar-toggle" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
<aside class="sidebar">
<div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
<ul class="sidebar-nav">
<li class="sidebar-nav-toc">
文章目录
</li>
<li class="sidebar-nav-overview">
站点概览
</li>
</ul>
<div class="sidebar-panel-container">
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
<div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C"><span class="nav-number">1.</span> <span class="nav-text">准备工作</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%AE%B0%E4%B8%8B%E5%88%86%E5%8C%BA%E6%8C%82%E8%BD%BD%E7%82%B9"><span class="nav-number">1.1.</span> <span class="nav-text">记下分区挂载点</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%88%B6%E4%BD%9CU%E7%9B%98"><span class="nav-number">2.</span> <span class="nav-text">制作U盘</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%BC%80%E5%A7%8B%E5%AE%89%E8%A3%85"><span class="nav-number">3.</span> <span class="nav-text">开始安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%8C%E6%88%90"><span class="nav-number">4.</span> <span class="nav-text">完成</span></a></li></ol></div>
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
<div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image" alt="dhd"
src="/images/avatar.png">
<p class="site-author-name" itemprop="name">dhd</p>
<div class="site-description" itemprop="description">个人博客,分享一些C/C++ Linux 嵌入式等有趣的技术</div>
</div>
<div class="site-state-wrap site-overview-item animated">
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">23</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/">
<span class="site-state-item-count">12</span>
<span class="site-state-item-name">分类</span></a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">13</span>
<span class="site-state-item-name">标签</span></a>
</div>
</nav>
</div>
<div class="links-of-author site-overview-item animated">
<span class="links-of-author-item">
<a href="https://github.com/MissYourSmile" title="GitHub → https://github.com/MissYourSmile" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
</span>
<span class="links-of-author-item">
<a href="mailto:[email protected]" title="E-Mail → mailto:[email protected]" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
</span>
</div>
</div>
</div>
</div>
</aside>
<div class="sidebar-dimmer"></div>
</header>
<div class="back-to-top" role="button" aria-label="返回顶部">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<noscript>
<div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>
<div class="main-inner post posts-expand">
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://renshengjihe.cn/aa10dbf69217">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.png">
<meta itemprop="name" content="dhd">
<meta itemprop="description" content="个人博客,分享一些C/C++ Linux 嵌入式等有趣的技术">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="人生几何">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
把系统从 deepin 重装成 ubuntu
</h1>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2019-11-25 20:36:53" itemprop="dateCreated datePublished" datetime="2019-11-25T20:36:53+08:00">2019-11-25</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2021-10-23 00:44:27" itemprop="dateModified" datetime="2021-10-23T00:44:27+08:00">2021-10-23</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" itemprop="url" rel="index"><span itemprop="name">环境搭建</span></a>
</span>
</span>
</div>
<div class="post-description">记录从 deepin 系统迁移到 ubuntu 系统的过程,保留了 home 分区的内容。</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="准备工作"><a href="#准备工作" class="headerlink" title="准备工作"></a>准备工作</h2><h3 id="记下分区挂载点"><a href="#记下分区挂载点" class="headerlink" title="记下分区挂载点"></a>记下分区挂载点</h3><p>在安装之前,要先记下各个分区的挂载点,以便后续安装过程中进行挂载。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo fdisk -l</span><br></pre></td></tr></table></figure>
<p><img src="https://renshengjihe-1257851699.cos.ap-guangzhou.myqcloud.com/191125-deepinTuUbuntu/fdisk.png" alt="fdisk"></p>
<p>从图中命令的结果可以得到以下几条信息</p>
<ul>
<li>计算机内当前有 2 个存储设备,/dev/sda 和 /dev/sdb</li>
<li>/dev/sda 是电脑内置的固态硬盘,分了四个分区,<strong>可通过 <code>df</code> 命令查看挂载点。</strong>特别要记清根目录和 home 目录的挂载位置。</li>
</ul>
<table>
<thead>
<tr>
<th align="left">分区名称</th>
<th align="left">类型</th>
<th align="left">挂载点</th>
</tr>
</thead>
<tbody><tr>
<td align="left">/dev/sda1</td>
<td align="left">EFI System</td>
<td align="left">/boot/efi</td>
</tr>
<tr>
<td align="left">/dev/sda2</td>
<td align="left">Linux swap</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">/dev/sda3</td>
<td align="left">Linux filesystem</td>
<td align="left">/</td>
</tr>
<tr>
<td align="left">/dev/sda4</td>
<td align="left">Linux filesystem</td>
<td align="left">/home`</td>
</tr>
</tbody></table>
<ul>
<li>/dev/sdb 是插入电脑的 U 盘,用来作新系统启动盘。</li>
</ul>
<h2 id="制作U盘"><a href="#制作U盘" class="headerlink" title="制作U盘"></a>制作U盘</h2><p>使用下面的命令来制作启动盘</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo dd if=xxxx.iso of=/dev/sdb </span><br></pre></td></tr></table></figure>
<ul>
<li>xxxx.iso 处填写镜像文件的完整路径</li>
<li>of 参数一定要填 U 盘对应的路径名,<strong>注意:不带数字,不是 /dev/sdb1</strong></li>
<li>这里会等待比较长的时间,且终端不会有任何显示,不要误以为卡了。</li>
</ul>
<h2 id="开始安装"><a href="#开始安装" class="headerlink" title="开始安装"></a>开始安装</h2><p>启动盘制作完成后,关机,开机按对应的键进入 BIOS,选择 U 盘启动,开始 ubuntu 的安装,以下是需要注意的一些细节。</p>
<ul>
<li>点击安装前最好<strong>断网</strong>,因为 ubuntu 会在安装时下载更新,下载的速度较慢,可以等系统装完之后更改了镜像源用国内源进行更新。</li>
<li>在选择安装在何处时,选择最下面的自定义,在自定义界面,按照之前记下的挂载点进行挂载。根挂载点所在分区格式化,home 只挂载不做格式化操作。</li>
</ul>
<p>ps: 这一步忘了留下珍贵的图像资料,将就着看下文字吧。</p>
<p>设置完毕点击下一步,会提示将格式化两个分区,一个是 efi, 一个是 / 所在分区</p>
<h2 id="完成"><a href="#完成" class="headerlink" title="完成"></a>完成</h2><p>等待安装完成,一个崭新的 ubuntu 又出现了,哈哈哈。</p>
</div>
<footer class="post-footer">
<div class="post-tags">
<a href="/tags/%E7%B3%BB%E7%BB%9F%E9%87%8D%E8%A3%85/" rel="tag"># 系统重装</a>
</div>
<div class="post-nav">
<div class="post-nav-item">
<a href="/5e9d6e4be9e8" rel="prev" title="微信小程序-导航栏+滑动翻页">
<i class="fa fa-chevron-left"></i> 微信小程序-导航栏+滑动翻页
</a>
</div>
<div class="post-nav-item">
<a href="/10d91204edcc" rel="next" title="树莓派交叉开发环境的搭建">
树莓派交叉开发环境的搭建 <i class="fa fa-chevron-right"></i>
</a>
</div>
</div>
</footer>
</article>
</div>
<div class="comments gitalk-container"></div>
</div>
</main>
<footer class="footer">
<div class="footer-inner">
<div class="copyright">
©
<span itemprop="copyrightYear">2021</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">dhd</span>
</div>
<div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/next-boot.js"></script>
<script class="next-config" data-name="enableMath" type="application/json">false</script><script class="next-config" data-name="mathjax" type="application/json">{"enable":true,"tags":"none","js":{"url":"https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-mml-chtml.js","integrity":"sha256-r+3itOMtGGjap0x+10hu6jW/gZCzxHsoKrOd7gyRSGY="}}</script>
<script src="/js/third-party/math/mathjax.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/gitalk.css" integrity="sha256-AJnUHL7dBv6PGaeyPQJcgQPDjt/Hn/PvYZde1iqfp8U=" crossorigin="anonymous">
<script class="next-config" data-name="gitalk" type="application/json">{"enable":true,"github_id":"MissYourSmile","repo":"blog","client_id":"90df46a08046f5b73ae9","client_secret":"fa93eaa0abad10d0f79e056b45ba8a0212d37e0d","admin_user":"MissYourSmile","distraction_free_mode":true,"proxy":"https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token","language":"zh-CN","js":{"url":"https://cdn.jsdelivr.net/npm/[email protected]/dist/gitalk.min.js","integrity":"sha256-Pmj85ojLaPOWwRtlMJwmezB/Qg8BzvJp5eTzvXaYAfA="},"path_md5":"19c94317bd98118b1ef72b3c6fbf61a0"}</script>
<script src="/js/third-party/comments/gitalk.js"></script>
</body>
</html>