救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
两个系统,昨天挂一个,今天安装mint时,又弄坏grub,都进不去了。
u盘系统非常的难使用。打个字都累死人。
u盘系统非常的难使用。打个字都累死人。
- lxf1992521
- 帖子: 240
- 注册时间: 2011-06-26 18:28
- 联系:
Re: 救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
进入到mint系统里面,打开终端,输入:
修复好后,进入Ubuntu执行“sudo update-grub”更新grub即可
代码: 全选
sudo mount /dev/sda1 /mnt
# sda1换成你的Ubuntu所在的分区的编号
sudo grub-install --root-directory=/mnt /dev/sda
http://www.linux-unix.asia
720P电影,无损音乐,Linux教程资料:http://hdcity.leniter.org/promotionlink ... e838745c67
720P电影,无损音乐,Linux教程资料:http://hdcity.leniter.org/promotionlink ... e838745c67
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
u盘里的mint是没办法是用sudo的。
分区挂载的时候,改成ext4就能安装了。我看见opensuse12.3都可以使用新的文件系统了,也想试一下,谁知在mint下不行。mint的内核才3.5。
分区挂载的时候,改成ext4就能安装了。我看见opensuse12.3都可以使用新的文件系统了,也想试一下,谁知在mint下不行。mint的内核才3.5。
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
u盘的系统能使用root吗?那请问密码如何得来?
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
是dd进去的u盘系统,所以无法获取root。
- lxf1992521
- 帖子: 240
- 注册时间: 2011-06-26 18:28
- 联系:
Re: 救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
咕~~(╯﹏╰)b,直接root,不需要密码啊!!
或者输入“sudo -s”就可以就如root账号。
或者输入“sudo -s”就可以就如root账号。
http://www.linux-unix.asia
720P电影,无损音乐,Linux教程资料:http://hdcity.leniter.org/promotionlink ... e838745c67
720P电影,无损音乐,Linux教程资料:http://hdcity.leniter.org/promotionlink ... e838745c67
- masonliu
- 帖子: 470
- 注册时间: 2007-04-10 14:51
Re: 救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
用livecd启动,用 live usb也行:
在终端下输入
sudo fdisk -l #这事看看你的分区,这么多年我自己的分区没有变化过。感谢ubuntu顽强的系统,没有病毒啊。这个可有可无,就看你自己分区记不记得。
sudo -i
mount /dev/sda7 /mnt
mount /dev/sda8 /mnt/boot (如果没 /boot 单独分区这步跳过)
grub-install --root-directory=/mnt/ /dev/sda
exit
reboot
重新启动
只能看到 grub>
命令
find /boot/grub/core.img
root (hd0,7) #这就是上一行输出结果参数0,7
kernel /boot/grub/core.img #这个也有输出 不用管
boot
能够调用原来的 选项菜单 选择进入 版图
进入ubuntu
然后 终端
sudo grub-install /dev/sda
sudo update-grub2
重启电脑,ok。
如果是无法启动windows,就进入ubuntu
然后 终端
sudo grub-install /dev/sda
sudo update-grub2
重启电脑!
viewtopic.php?f=139&t=279019
在终端下输入
sudo fdisk -l #这事看看你的分区,这么多年我自己的分区没有变化过。感谢ubuntu顽强的系统,没有病毒啊。这个可有可无,就看你自己分区记不记得。
sudo -i
mount /dev/sda7 /mnt
mount /dev/sda8 /mnt/boot (如果没 /boot 单独分区这步跳过)
grub-install --root-directory=/mnt/ /dev/sda
exit
reboot
重新启动
只能看到 grub>
命令
find /boot/grub/core.img
root (hd0,7) #这就是上一行输出结果参数0,7
kernel /boot/grub/core.img #这个也有输出 不用管
boot
能够调用原来的 选项菜单 选择进入 版图
进入ubuntu
然后 终端
sudo grub-install /dev/sda
sudo update-grub2
重启电脑,ok。
如果是无法启动windows,就进入ubuntu
然后 终端
sudo grub-install /dev/sda
sudo update-grub2
重启电脑!
viewtopic.php?f=139&t=279019
-
- 帖子: 333
- 注册时间: 2013-12-23 13:42
Re: 救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
ubuntu live cd 可以用root,改个密码的事
- TeliuTe
- 论坛版主
- 帖子: 7668
- 注册时间: 2007-11-25 13:29
- 系统: 16/18/20/w7
- 来自: 新疆博乐
- 联系:
Re: 救命了,grub被破坏了,手上只有mint 的u盘系统,怎么办?
Live cd 进去输 sudo 命令,提示密码直接回车就可以了
这个可以用grldr (或者grub.exe) 来引导进入系统,假设是 sda7 上,用命令:
进去以后重装一下grub
这个可以用grldr (或者grub.exe) 来引导进入系统,假设是 sda7 上,用命令:
代码: 全选
root (hd0, 6)
chainloader +1
boot
-
- 帖子: 8
- 注册时间: 2016-04-26 7:57
grub mint u
I have a dual boot WIN7 PRO and Linux Mint system. I installed Mint13 replacing Mint12 in '/' and leaving 'Home' in a separate partition and on reboot got the error: "no such device or similar, followed by numbers", and "grub rescue>".
I tried to boot into Windows from the installation disk but it loads files and starts Windows, then nothing more happens an empty Windows desktop is displayed.
What to do?
Thanks, Joseph
I tried to boot into Windows from the installation disk but it loads files and starts Windows, then nothing more happens an empty Windows desktop is displayed.
What to do?
Thanks, Joseph