Home  >  Q&A  >  body text

linux - 在CentOS 6.3中新增一个启动内核,并启动到RAM盘中

新手求助各位大牛,因为一些业务的需要,现需要在公有云环境(UCloud)中的虚拟机下面增加一个启动内核,并启动到RAM盘中。

因为在公有云环境下的虚拟不支持Lilo,所以只能选择使用Grub。
我在/boot/grub/menu.lst文件中增加了以下内容(内容是公司之前的前辈们写的,现在已经找不到可以解释这些内容的人了T_T)

问题来了,图片中红框的部分实际上是通知内核根文件系统的位置是,那按照之前的需求,那这地方是应该为RAM盘吗?这个盘是需要我预先创建吗?

跪求各位大神指导啊!!!

高洛峰高洛峰2719 days ago296

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-17 15:00:57

    The first item in kernel is the kernel. Generally, the name contains the word vmlinuz. In your case, it is /boot/bzImage-botmgr.
    The root parameter bit is the disk where the root (/) of the system to be started is located. You can fill in the device here. name, such as /dev/sdx, you can also fill in the UUID of the device. It is recommended to fill in the UUID
    As for the UUID of your RAM, you can see it through the blkid command after entering the system.
    The following parameters can remain unchanged

    reply
    0
  • Cancelreply