基本环境
- 使用软件:VMware
- 操作系统:
[root@LeeMumu ~]# uname -r 2.6.32-754.el6.x86_64 [root@LeeMumu ~]# cat /etc/redhat-release CentOS release 6.10 (Final)
自建系统
根据 Linux 系统的启动流程,可以自建一个简版的 Liunx ,会加深自己对 CentOS 启动流程的理解。
可以运用 VMware 对指定硬盘进行系统创建,并在新创建的 Liunx 虚机中指定此硬盘,验证简版 Linux 。
硬盘添加
在 VMware 现有的 Linux 系统中,添加新的硬盘,作为新的虚拟机启动硬盘。
在虚拟机设置界面,按照如下步骤,进行硬盘添加(容量20G)。
硬盘分区
对新增硬盘进行分区,可分为三个分区:
- 1、boot 分区,大小100M
- 2、swap 分区,大小 2G
- 3、根系统 分区, 大小 5G
登陆系统,使用命令,查看新增硬盘为:/dev/sdb
[root@LeeMumu ~]# fdisk -l
Disk /dev/sdb: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c0f69
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 2484 19741696 83 Linux
/dev/sda3 2484 2611