安装不会修复grub的么?
Tofloor
poster avatar
jd808
deepin
2014-05-31 08:12
Author
安装了四五遍了,grub还是没法引导进系统。
Reply Favorite View the author
All Replies
cxbii
deepin
2014-05-31 21:42
#1
Reply View the author
jd808
deepin
2014-06-01 06:31
#2
deepin@deepin:~/桌面$ sudo mount /dev/sda7 /mnt
deepin@deepin:~/桌面$ sudo mount --bind /dev /mnt/dev
deepin@deepin:~/桌面$ sudo chroot /mnt
root@deepin:/# grub-probe -t device /boot/grub
grub-probe:错误: cannot find a device for /boot/grub (is /dev mounted?).
Reply View the author
jd808
deepin
2014-06-01 06:32
#3
?你的grub是深度系统自带那个吗?
当然是
Reply View the author
ArthurDeepin
deepin
2014-06-01 06:35
#4
deepin@deepin:~/桌面$ sudo mount /dev/sda7 /mnt
deepin@deepin:~/桌面$ sudo mount --bind /dev /mnt/dev
deepin@deepin:~/桌面$ sudo chroot /mnt
root@deepin:/# grub-probe -t device /boot/grub
grub-probe:错误: cannot find a device for /boot/grub (is /dev mounted?).
现在的引导程序是grub2,试一试
install——修复/重装grub2
代码:
grub2-install /dev/sda
update-grub2
Reply View the author
ArthurDeepin
deepin
2014-06-01 06:51
#5
又觉得可能是device和后面这个对象不对?
Reply View the author
jd808
deepin
2014-06-01 07:10
#6
deepin@deepin:~/桌面$ sudo mount /dev/sda7 /mnt
deepin@deepin:~/桌面$  sudo mount --bind /dev /mnt/dev
deepin@deepin:~/桌面$ sudo chroot /mnt
root@deepin:/# grub2-install /dev/sda
未找到 'grub2-install' 命令,您要输入的是否是:
命令 'grub-install' 来自于包 'grub2-common' (main)
命令 'grub-install' 来自于包 'grub' (main)
命令 'grub-install' 来自于包 'lupin-support' (main)
grub2-install:未找到命令
root@deepin:/# grub-install /dev/sda
grub-probe:错误: cannot find a device for /boot (is /dev mounted?).
Installing for i386-pc platform.
grub-install.real:错误: cannot find a device for /boot/grub (is /dev mounted?).
root@deepin:/# update-grub2
/usr/sbin/grub-probe:错误: cannot find a device for / (is /dev mounted?).
root@deepin:/#
Reply View the author
jd808
deepin
2014-06-01 07:11
#7
还是不行,现在是win和linux都进不去,重装都不行,这deepin搞什么鬼啊
Reply View the author
ArthurDeepin
deepin
2014-06-01 07:38
#8
还是不行,现在是win和linux都进不去,重装都不行,这deepin搞什么鬼啊
啊啊啊啊啊~~~~我也受打击了,不过我又看到一点
挂载proc(重要,没有这一步将无法修复grub2)网上说的。
代码:
sudo mount --bind /proc /mnt/proc
要不再试试?~
到device看看,到底有没有这个设备,坑啊(sda?sdb?……)。
把原系统的各分区重新挂载到mnt之后,再把dev和proc也挂载到mnt~
Reply View the author
jd808
deepin
2014-06-01 08:12
#9
果然,加了proc就可以了,但又出现了
# grub-install /dev/sda
Installing for i386-pc platform.
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
grub-install.real: warning: your core.img is unusually large.  It won't fit in the embedding area.
grub-install.real:错误: filesystem `btrfs' doesn't support blocklists.

btrfs文件格式不支持?
Reply View the author
MattD
deepin
2014-06-01 08:52
#10
果然,加了proc就可以了,但又出现了
# grub-install /dev/sda
Installing for i386-pc platform.
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
grub-install.real: warning: your core.img is unusually large.  It won't fit in the embedding area.
grub-install.real:错误: filesystem `btrfs' doesn't support blocklists.

btrfs文件格式不支持?
grub2对btrfs的支持不是很好,最好/boot单独分。我不知道你的btrfs及其子卷有没有启用压缩、raid或multi device。
grub2安装时候会/proc/mount来探测文件系统。所以不挂载/proc就会出错。
Reply View the author