图文介绍自建简版 Linux 步骤

本文详述了如何在VMware中自建一个简版Linux系统,包括硬盘添加、分区、创建文件系统、安装GRUB、创建根文件系统、复制程序及验证系统等步骤,以加深对Linux启动流程的理解。
摘要由CSDN通过智能技术生成

基本环境

  • 使用软件: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  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值