Home > Database > Mysql Tutorial > body text

卸载grub2重新装回grub legacy

WBOY
Release: 2016-06-07 15:38:40
Original
1596 people have browsed it

还是习惯用grub,grub2虽然好用,但是最近安装xen时却频频出现问题。于是果断卸载,重新装回了grub。 步骤很简单: 首先执行: apt-get --purge remove grub-pc 这时会有让你确认是否删除的提示信息,当然是选择yes 然后删掉原来grub2的所有配置文件,并重建g

还是习惯用grub,grub2虽然好用,但是最近安装xen时却频频出现问题。于是果断卸载,重新装回了grub。

步骤很简单:

首先执行:

 apt-get --purge remove grub-pc 
Copy after login

这时会有让你确认是否删除的提示信息,当然是选择yes

然后删掉原来grub2的所有配置文件,并重建grub目录:

rm -r /boot/grub/
mkdir /boot/grub
Copy after login

重新安装grub, 安装完需要 update-grub 提示 if you want create a menu.lst ? 输入y同意。

apt-get install grub
update-grub
Copy after login

最后可以选择将将grub loader写入物理MBR。(这里注意你是否是单硬盘,是否是多系统,请依据具体情况填写)

grub-install /dev/sda 
Copy after login

现在终于可以方便的修改menu.lst了!

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!