首页 技术 正文
技术 2022年11月23日
0 收藏 398 点赞 2,953 浏览 1482 个字

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 /boot
wget http://mirror.centos.org/centos/5/os/i386/isolinux/vmlinuz
mv vmlinuz vmlinuz-c5
wget http://mirror.centos.org/centos/5/os/i386/isolinux/initrd.img
mv 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
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,000
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,512
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,358
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,141
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,771
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,849