-
重装GRUB2 UBUNTU9.10
2009-11-26 10:44:00ubnutu9.10用的GRUB2来引导系统,不幸我弄坏了两次假如你的ubuntu的 / 分区是 sda7 又假如 /boot分区是 sda6,用livecd启动,在终端下输入sudo -imount /dev/sda7 /mntmount /dev/sda6 /mnt/boot (如果没 /boot ...ubnutu9.10用的GRUB2来引导系统,不幸我弄坏了两次
假如你的ubuntu的 / 分区是 sda7 又假如 /boot分区是 sda6,用livecd启动,在终端下输入
sudo -i
mount /dev/sda7 /mnt
mount /dev/sda6 /mnt/boot (如果没 /boot 单独分区这步跳过)
grub-install --root-directory=/mnt/ /dev/sda
exit
重启 -
用grub取代grub2启动ubuntu 10
2011-09-28 00:03:35不要更新太快的菜鸟们,怀念boot.ini的老人,可以用grub取代grub2启动ubuntu 10,介绍具体方法 -
虚拟机ubuntu进入grub_Ubuntu开机直接进入grub终极解决方法
2021-01-16 22:38:30查找grub所在的分区,ubuntu没有另外建分区是在/boot/grub文件夹> ls (hd0),(hd0,gt1),(hd1,gt2),(hd1,gt3) and so on > ls (hdN,msdosX)/boot/grub #顺序查找,直到找到 以(hd0,gt1) >set root=(hd0,gt1)...查找grub所在的分区,ubuntu没有另外建分区是在
/boot/grub
文件夹> ls (hd0),(hd0,gt1),(hd1,gt2),(hd1,gt3) and so on > ls (hdN,msdosX)/boot/grub #顺序查找,直到找到 以(hd0,gt1) >set root=(hd0,gt1) >set prefix=(hd0,gt1)/boot/grub >insmod normal >normal
这样就可以进入图形化界面了,但是每次重启都又重新出现grub界面; 所以进入界面后,需要操作:
>sudo update-grub >sudo grub-install /dev/sda
按照晚上大部分教程,到这一步就可以重启万事大吉了,但是你也可能会出现sudo grub-install /dev/sda 这步骤报错了。。。
Installing for i386-pc platform. grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible. grub-install: error: embedding is not possible, but this is required for cross-disk install.
这个时候输入:
>sudo parted /dev/sda set 1 bios_grub on >sudo parted /dev/sda print >sudo grub-install /dev/sda
这样既可成功。如果还是有问题,例如多块硬盘的时候,需要在BIOS里改变启动顺序既可。
-
grub修改ubuntu启动项
2013-11-18 23:00:07在 早期的Ubuntu中,使用Grub作为系统的启动引导程序,想修改系统启动项非常简单,只要用gedit打开系统菜单设定文件( sudo gedit /boot/grub/menu.lst ),修改该文件中到内容即可,但是到了Grub 2中,不能采用这种... -
U盘Grub安装Ubuntu
2017-06-09 14:45:41<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ... 一、首先为U盘安装Grub --- ...有一款软件叫Gurb-install,下载下来装到U盘即可 2. 现在grub4Dos,仅仅使用一、首先为U盘安装Grub
---
1. 有一款软件叫Gurb-install,下载下来装到U盘即可
2. 现在grub4Dos,仅仅使用其中grldr文件
二、从ubuntu*.iso的casper文件夹中拷贝出vmlinuz、和initrd.gz。将这3个文件(包含原iso文件)放到某个盘的根目录下,比如E盘(hd1,5);
三、使用其中的命令行,进入Grub命令环境
---
root (hd1,5)
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-10.10-desktop-i386.iso
initrd /initrd.lz四、正常启动后最好先执行如下代码:
sudo umount -l /isodevice
来卸载iso分区以便可以正确对磁盘重新分区安装
-
ubuntu 10.04 grub2
2010-05-06 10:30:00ubuntu 10.04 grub2Ubuntu 10.04 LTS终于发布了,原来打算过一阵子再把9.10升一下的,但今天在update manager里,看到已经有提示说可以直接升到10.04,一时冲动没忍住,于是就升了,接着就碰到魔鬼了:重启后在grub...ubuntu 10.04 grub2
Ubuntu 10.04 LTS终于发布了,原来打算过一阵子再把9.10升一下的,但今天在update manager里,看到已经有提示说可以直接升到10.04,一时冲动没忍住,于是就升了,接着就碰到魔鬼了:重启后在grub那步出错,过不去了,提示 “GRUB loading error: the symbol ‘grub_puts_’ not found”,光标就停在grub rescue>后面,google找了一些文章,发现国内的几个都大同小异,后面有一些步骤根本没有交代清除,做到一半就进行不下去了,后来找到一 个老外的帖子, 一步一步都很清楚,照着做下来,成功地把grub2修复了。
- Boot to the LiveCD Desktop (Ubuntu 9.10 or Ubuntu 10.04).
- Open a terminal – Applications, Accessories, Terminal .
- Determine your normal system partition – (the switch is a lowercase
“L”) sudo fdisk -l
- If you aren’t sure, rundf -Th . Look for the correct disk size and ext3 or ext4 format.
- Mount your normal system partition:
- Substitute the correct partition: sda1, sdb5, etc.
sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt
- Only if you have a separate boot partition
:
- sdYY is the /boot partition designation (examply sdb3)
- sudo mount /dev/sdYY /mnt/boot
- Mount devices:sudo mount --bind /dev/ /mnt/dev
- To ensure that only the grub utilities from the LiveCD get executed, mount /usrsudo mount --bind /usr/ /mnt/usr
- mount proc filesystemsudo mount --bind /proc/ /mnt/proc
- Chroot into your normal system device:sudo chroot /mnt
- If there is no /boot/grub/grub.cfg or it’s not correct, create one usingupdate-grub
- Reinstall GRUB 2:
- Substitute the correct device – sda, sdb, etc. Do not specify a partition number.
grub-install /dev/sdX
- Verify the install (use the correct device, for example sda . Do not specify a partition): sudo grub-install --recheck /dev/sdX
- Exit chroot : CTRL-D on keyboard
- Unmount devices:sudo umount /mnt/dev
- If you mounted a separate /boot partition:sudo umount /mnt/boot
- Unmount last device:sudo umount /mnt
- Reboot.reboot
Post-Restoration Commands
Once the user can boot to a working system, try to determine why the system failed to boot. The following commands may prove useful in locating and/or fixing the problem.
To refresh the available devices and settings in /boot/grub/grub.cfg
- sudo update-grub
To look for the bootloader location.
- grub-probe -t device /boot/grub
To install GRUB 2 to the sdX partition’s MBR (sda, sdb, etc.)
- sudo grub-install /dev/sdX
To recheck the installation. (sda, sdb, etc.) sudo grub-install --recheck /dev/sdX
Please check the following link for further details.
https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB%202
-
重装Grub 引导 Ubuntu
2012-09-14 16:03:10用Grub4DOS find –set-root /boot/grub/core.img kernel /boot/grub/core.img boot 有/boot分区的改为 find –set-root /grub/core...重启后选择Grub4Dos会自动转入grub2,从grub2菜单项选择ubuntu启... -
利用U盘安装grub 引导ubuntu安装
2013-11-23 17:33:19这几天给学弟安装ubuntu,学习了利用U盘安装grub 引导ubuntu,感谢这篇...打造自己的多功能USB启动盘——grub2引导WinPE、Archlinux安装镜像和Ubuntu liveCD 利用U盘制作启动盘,引导WinPE、Linux安装的文章多如牛毛, -
grub2引导ubuntu的iso文件进行安装ubuntu
2014-11-27 22:06:35grub2引导ubuntu的iso文件进行安装ubuntu 我想大家都知道。 利用grub2引导iso文件进行ubuntu安装,主要是类似于下面的命令。 loopback loop (hd0,3)/ubuntu.iso linux (loop)/... -
Ubuntu grub2介绍
2016-12-12 07:05:50Ubuntu grub2简介 从Ubuntu 9.10起,grub2就已经是默认的BootLoader了。这里简要说要Ubuntu的grub2和其他发行版不一样的地方。 对于所有的OS启动项,CentOS全都显示在一个grub选择界面,显得非常拥挤,而Ubuntu... -
重装系统后grub引导ubuntu
2010-04-26 21:01:00重装系统后grub引导ubuntu 1.从光盘启动电脑,出现菜单后先按F2选择中文语言,再进入第一项。 2.打开终端 3.输入sudo -i,以root用户操作。 4.输入grub,进入gru配置界面。 5.输入root (hdx,y) 注意!这里的(hdx,y)中... -
Repair Grub /ubuntu修复启动项
2015-05-28 11:56:42Repair Grub (亲测是可以解决问题的!) Assumptions Your Ubuntu is installed in /dev/sda1 (If you are not sure, type:) gparted # OR # ...1. Boot with Ubuntu LiveCD or LiveUSB2. O... -
windows7使用grub安装ubuntu12.04
2013-06-01 21:52:581. 下载ubuntu 12.04 下载地址:http://releases.ubuntu.com/ 本文中下载的是:Ubuntu 12.04 LTS (Precise Pangolin) 文件名为:ubuntu-12.04.1-...2. 下载grub4dos 下载地址:http://www.linuxidc.com/L -
ubuntu修改grub2
2014-08-18 17:21:05转自修改系统启动项 grub2配置的方法 ubuntu 在早期的Ubuntu中,使用Grub作为系统的启动引导程序,想修改系统启动项非常简单,只要用gedit打开系统菜单设定文件( sudo gedit /boot/grub/menu.lst ),... -
Ubuntu 修复grub2
2010-07-17 16:12:00Ubuntu 修复grub2 -
ubuntu grub2引导修复
2018-02-27 22:29:23ls(我的分区) 找到ubuntu所安装的分区,提示ext2为ubuntu安装的分区 ls(我的分区)/boot/grub 找到grub.cfg set root=(my hd)set prefix=(my hd)/boot/grubinsmod normalnormal 重启可以看到grub2选项 ... -
Xen not showing up as boot entry in grub in Ubuntu Server 18.04 LTS
2020-12-29 19:26:46<p>When installing the drakvuf bundle on Ubuntu Server 18.04 LTS, xen is not showing up in the grub bootloader, and it does not boot into xen by default. <p><strong>How to reproduce</strong></p> <p>... -
How to Repair GRUB2 When Ubuntu Won’t Boot
2019-09-26 00:59:32Ubuntu and many other Linux distributions use the GRUB2 boot loader. If GRUB2 breaks—for example, if you install Windows after installing Ubuntu, or overwrite your MBR—you won’t be able to boot i..... -
grub2手动引导ubuntu
2019-10-01 07:06:58測试机OS为ubuntu 14.04.1 LTS x86_64 磁盘分区情况为: Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 19736236 3676896 15033756 20% / none 4 0... -
Ubuntu10.04之grub2详解
2020-08-20 10:04:51在早期的Ubuntu中,使用Grub作为系统的启动引导程序,想修改系统启动项非常简单,只要用gedit打开系统菜单设定文件( sudo gedit /boot/grub/menu.lst ),修改该文件中到内容即可,但是到了Grub 2中,不能采用这种... -
win7重装后恢复grub和ubuntu14
2014-11-27 09:55:00没有光盘和优盘启动盘,可以在win7下安装easybcd,添加一个启动选项为linux grub2,启动后进入ubutnu,执行如下: sudo -i //取得root权限 fdisk -l //查看分区信息,找出你的linux的分区,比如我的是sda9 mount ... -
重装Windows7后装Grub进入Ubuntu
2013-06-15 01:09:37重新装了Windows7,由于硬盘的MBR引导区被覆盖,而无法进入Ubuntu,所以只能...2.打开系统终端窗口,输入sudo fdisk -l之后会显示出你的硬盘分区情况,记下分区名为Linux的分区号,我的是/dev/sda4 3.sudo -i取得管理 -
GRUB2硬盘引导Ubuntu14.04LTS镜像
2016-04-22 12:31:17GRUB2硬盘引导Ubuntu14.04LTS镜像GRUB2硬盘引导Ubuntu1404LTS镜像 准备工作 通过GRUB2启动到LIVE CD 设置grub的root 创建loopback来加载镜像 配置启动选项 启动到live cd 结尾 由于自己手贱,通过ubuntu自带的update... -
用GRUB安装uBuntu10.04的光盘镜像,不用解压ISO
2011-11-14 14:26:071. 下载grub4dos 和 uBuntu的镜像,我下的版本是'...2. 解压grub4dos到C盘根目录下.打开其中的'menu.lst',添加如下启动项: title Install Ubuntu root (hd0,0) kernel (hd0,0)/vmlinuz boot=casper iso-scan/fil