Home > Database > Mysql Tutorial > body text

Ubuntu及其衍生发行版硬盘安装方法(grub2)

WBOY
Release: 2016-06-07 15:25:19
Original
1299 people have browsed it

闲着没事,就想整点事。 前提:笔记本里原来就有个发行版,预装的grub2做引导。所以,大致就是:开机-grub命令-引导镜像开机-开始正常安装 准备条件:Ubuntu及其衍生发行版的镜像文件、grub2 1.开机进入grub引导界面,按键盘c进入命令模式, 列举设备,找到镜

闲着没事,就想整点事。

前提:笔记本里原来就有个发行版,预装的grub2做引导。所以,大致就是:开机-grub命令-引导镜像开机-开始正常安装

准备条件:Ubuntu及其衍生发行版的镜像文件、grub2

1.开机进入grub引导界面,按键盘c进入命令模式,列举设备,找到镜像文件所在分区

ls
(hd0,msdos1) (hd0,msdos2)......
Copy after login

比如说我的在第三个逻辑分区上/OS/Mirrors/文件夹内

ls (hd0,msdos7)/OS/Mirrors/
Copy after login
ubuntu-*.iso......
Copy after login

2.加载镜像文件

loopback loop (hd0,msdos7)/OS/Mirrors/ubuntu-*.iso
Copy after login

3.加载内核

linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=/OS/Mirrors/ubuntu-*.iso ro quiet splash locale=zh_CN.UTF-8
Copy after login

initrd (loop)/casper/initrd.lz
Copy after login

5.启动

boot
Copy after login

6.进入安装环境后,在终端里卸载镜像

sudo umount -l /isodevice
Copy after login

7.开始安装


以上部分可能在不同发行版中有所不同,如vmlinuz、initrd文件,这时候按下Tab键自动补全就行。


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!