博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Start an installation from GRUB
阅读量:4991 次
发布时间:2019-06-12

本文共 1796 字,大约阅读时间需要 5 分钟。

Start an installation from GRUB

 

Description

This tip will show you how to start an installation for network or hard disk from an existing GRUB bootloader from CentOS or another distro. This is useful if the system has no CD or DVD bootable device and it is not possible or convenient to boot from other removable media. The example uses CentOS 5 i386 but should work for other versions and architectures.

 

Fetch boot kernel and initrd

The required installer vmlinux and initrd.img files can be gotten from loopback mount of an ISO image, from a close by mirror, or from an installation tree on hard disk. The example shows fetching them from centos.org:

cd /bootwget http://mirror.centos.org/centos/5/os/i386/isolinux/vmlinuzmv vmlinuz vmlinuz-c5wget http://mirror.centos.org/centos/5/os/i386/isolinux/initrd.imgmv initrd.img initrd-c5.img

 

Create GRUB boot stanza

The following assumes that /dev/sda1 (or /dev/hda1 - first partition on first disk) is the boot partition. For /dev/sdb3 substitute (hd1,2) for (hd0,0), etc.

title CentOS 5 Install    root (hd0,0)    kernel /vmlinuz-c5 ro    initrd /initrd-c5.img

If there is no /boot partition and the root filesystem is on the first partition use

title CentOS 5 Install    root (hd0,0)    kernel /boot/vmlinuz-c5 ro    initrd /boot/initrd-c5.img

Optional parameters can be added to the kernel. For example

title CentOS 5 Install    root (hd0,0)    kernel /vmlinuz-c5 ro keymap=no lang=en_US.UTF-8 method=http://10.0.0.10/repos/CentOS/5.5/os/i386    initrd /initrd-c5.img

Or

title CentOS 5 Install    root (hd0,0)    kernel /vmlinuz-c5 ro vnc vncconnect=192.168.15.2 ip=dhcp upgradeany lang=en_US keymap=us method=http://192.168.15.40/mrepo/centos5-x86_64/disc1/ ksdevice=link    initrd /initrd-c5.img

转载于:https://www.cnblogs.com/lkzf/p/3898196.html

你可能感兴趣的文章
Android开发 - Retrofit 2 使用自签名的HTTPS证书进行API请求
查看>>
对测试人员或开发人员来说相互沟通有多重要?
查看>>
解释器、编译器以及他们之间的差别。
查看>>
MongoDB的快速手动安装
查看>>
JS制作简单的日历控件【JS Date对象操作实例演示】
查看>>
模板—树上倍增LCA
查看>>
高二小假期集训—D5
查看>>
EasyUI easyui-combobox 重复发送请求
查看>>
memcached-repcached
查看>>
[转]CentOS 5.3通过yum升级php到最新版本的方法
查看>>
UVA 11235 - Frequent values RMQ的应用
查看>>
大数据日志采集系统
查看>>
java 堆调优
查看>>
linux 安装JDK
查看>>
JAVA调用CMD命令
查看>>
weblogic的安装
查看>>
SSM框架中,controller的action返回参数给vue.js
查看>>
Mysql 基础3
查看>>
smartctl工具应用(转载整理)
查看>>
控件数据绑定总结
查看>>