标签:LTS 10.2 18.04 创建 分区 server Ubuntu 磁盘 安装
Ubuntu 18.04.2 server LTS安装
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024246-1267869115.png)
1、第一行安装Ubuntu
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024442-22602223.png)
2、语言选英语,安装过程中使用的语言,也是安装完后系统默认语言
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024633-11817745.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024597-1345532319.png)
3、跳最后一项选other;然后选Asia(亚洲);选China(中国)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024575-1183833237.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024564-1453334134.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024581-1580545757.png)
4、语言环境选en_US.UTF-8
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024594-562091907.png)
5、键盘布局检查,选择NO
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024523-1504860067.png)
6、键盘布局选择美式English(US)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024577-441070308.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024565-1031816204.png)
7、默认不配置网络先,但这一步跳不过,选一个网卡回车;会自动DHCP找IP,找不到会告诉你获取不到地址,继续回车下一步就行了
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024551-389408453.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024444-1408578907.png)
8、选第四行,此时不配置网络
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024558-40079594.png)
9、配置主机名;创建一个用户账户和普通用户;并为其设置密码
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024478-1020358836.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024545-347216682.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024534-936189815.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024532-1080303577.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024489-659664963.png)
10.1、如果是重装系统参考以下两步,新装的跳到10.2
10.1-1检测到磁盘已挂载分区,是否卸载正在使用分区
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024489-1269732161.png)
10.1-2配置LVM,将旧分区全删除重新创建
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024561-554721990.png)
10.2-1、选择磁盘;确认创建新的空分区表
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024545-1944557865.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024522-1978463472.png)
10.2-2、初始化操作,选择通过配置逻辑卷管理分区
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024568-423955107.png)
10.2-3、写入磁盘并配置LVM
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024566-323452323.png)
10.2-4、创建逻辑卷组;设置卷组名;然后选择物理磁盘添加到卷组
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024470-1065929997.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024457-310630382.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024504-2026992491.png)
10.2-5、确认物理卷添加并写入卷组
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024565-1670636816.png)
10.2-6、创建逻辑卷;选择所属卷组;逻辑卷命名;大小配额
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024535-1308143890.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024459-119828321.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024440-2138459300.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024535-1761683669.png)
10.2-7、创建swap交换分区
10.2-8、如果没有引导分区,需创建一个boot逻辑卷做引导分区,大小为1G即可
10.2-9、全部创建完,Finish(完成)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024512-739591668.png)
11、光标移到所创建的逻辑卷大小处,开始设置文件系统格式和挂载路径
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024595-625283157.png)
12、例如lv-root,Ubuntu默认文件系统为Ext4,挂载到 / 根目录
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024540-1390676966.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024558-1894769780.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024566-507555836.png)
13、Done setting up the partition(分区设置完成)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024560-38192283.png)
14、swap分区比较特殊,只需要设置文件系统为swap即可
15、Boot分区相似设置就不贴图了,挂载在/boot目录
16、Finish partitioning and write changes to disk(完成分区并将更改写入磁盘)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024590-929945912.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024530-1917190497.png)
17、等待部署;是否自动更新,选不自动更新
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024456-1944187909.png)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024572-307921093.png)
18、选择要安装的组件,这里选这OpenSSH server
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024531-1094023595.png)
19、等待部署
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024447-2126912820.png)
20、Install the … boot record(安装GRUB引导加载程序到主引导记录)
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024556-132702963.png)
21、完成安装重启服务器
![](/i/l/?n=23&i=blog/2216549/202303/2216549-20230307150024488-907634671.png)
标签:LTS,
10.2,
18.04,
创建,
分区,
server,
Ubuntu,
磁盘,
安装
From: https://www.cnblogs.com/daoguanmao/p/ubuntu18042-server-install.html