开机grub rescue怎么办,玩炸了
Tofloor
poster avatar
132******02
deepin
2017-09-09 17:40
Author
本帖最后由 q13140676165 于 2017-9-9 14:23 编辑

刚开始安装了testdisk瞎点,发现多了一个lba什么的分区,就重启电脑,就变成这样了,求告知如何开机

Reply Favorite View the author
All Replies
2 / 3
To page
avatar
billy123456
deepin
2017-09-09 22:04
#21
https://bbs.deepin.org/post/145272
不知道,我用的安装优盘分的区

这就尴尬了
Reply View the author
avatar
132******02
deepin
2017-09-09 22:09
#22
billy123456 发表于 2017-9-9 14:04
这就尴尬了

你是不是要挂载/分区呀,我用其他方法也挂载不上
Reply View the author
avatar
billy123456
deepin
2017-09-09 22:09
#23
https://bbs.deepin.org/post/145272
deepin安装优盘分的区,从前是win10mbr的,我用安装盘全部格式化一个硬盘都是deepin ...

sudo apt install gnome-disks&&gnome-disks /dev/sda
截个图
Reply View the author
avatar
132******02
deepin
2017-09-09 22:12
#24
https://bbs.deepin.org/post/145272
sudo apt install gnome-disks&&gnome-disks /dev/sda
截个图

E: Unable to locate package gnome-disks
Reply View the author
avatar
132******02
deepin
2017-09-09 22:18
#25
https://bbs.deepin.org/post/145272
sudo apt install gnome-disks&&gnome-disks /dev/sda
截个图


Reply View the author
avatar
132******02
deepin
2017-09-09 22:44
#26
billy123456 发表于 2017-9-9 14:09
sudo apt install gnome-disks&&gnome-disks /dev/sda
截个图

挂载报错是因为我没装grub吗?
Reply View the author
avatar
billy123456
deepin
2017-09-09 22:49
#27

sudo umount /dev/sda2
sudo mount 你的root分区 /mnt
sudo mount 你的boot分区 /mnt/boot
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
然后输入
mount none -t tmpfs /tmp
mount none -t tmpfs /home
mount none -t devpts /dev/pts
grub2-install /dev/sda
Reply View the author
avatar
billy123456
deepin
2017-09-09 22:50
#28
https://bbs.deepin.org/post/145272
挂载报错是因为我没装grub吗?

不知道什么情况
Reply View the author
avatar
132******02
deepin
2017-09-09 22:54
#29
billy123456 发表于 2017-9-9 14:49
sudo umount /dev/sda2
sudo mount 你的root分区 /mnt
sudo mount 你的boot分区 /mnt/boot

对呀,我看wiki也是这样的,但是/分区始终挂载不了,提示:mount: /dev/sdb1:can't read superblock
Reply View the author
avatar
billy123456
deepin
2017-09-09 22:57
#30
https://bbs.deepin.org/post/145272
对呀,我看wiki也是这样的,但是/分区始终挂载不了,提示:mount: /dev/sdb1:can't read superblock ...

sudo fcsk /dev/sdb1 -y
Reply View the author
avatar
132******02
deepin
2017-09-09 23:04
#31
https://bbs.deepin.org/post/145272
sudo fcsk /dev/sdb1 -y

fsck from util-linux 2.29.2
/sbin/fsck.xfs: XFS file system.
Reply View the author
avatar
billy123456
deepin
2017-09-09 23:06
#32
https://bbs.deepin.org/post/145272
fsck from util-linux 2.29.2
/sbin/fsck.xfs: XFS file system.

然后再挂载试试
Reply View the author
avatar
132******02
deepin
2017-09-09 23:09
#33
billy123456 发表于 2017-9-9 15:06
然后再挂载试试

和刚才一样
Reply View the author
avatar
132******02
deepin
2017-09-09 23:20
#34
billy123456 发表于 2017-9-9 15:06
然后再挂载试试

可能是xfs格式的问题,我看网上好多这方面的,但是都是外文,看不懂
Reply View the author
avatar
billy123456
deepin
2017-09-09 23:52
#35
https://bbs.deepin.org/post/145272
可能是xfs格式的问题,我看网上好多这方面的,但是都是外文,看不懂

说实话我不建议你用xfs,btrfs是我见过最稳定的文件系统
Reply View the author
avatar
132******02
deepin
2017-09-10 00:04
#36
billy123456 发表于 2017-9-9 15:52
说实话我不建议你用xfs,btrfs是我见过最稳定的文件系统

你不要骗我,我现在还沉浸在登不上系统郁闷中,虽然东西都git到云端了,但是还要重新配置环境,想想都可怕
Reply View the author
avatar
billy123456
deepin
2017-09-10 00:16
#37
https://bbs.deepin.org/post/145272
你不要骗我,我现在还沉浸在登不上系统郁闷中,虽然东西都git到云端了,但是还要重新配置环境,想想都可 ...

你的资料能读出来吗?
Reply View the author
avatar
132******02
deepin
2017-09-10 00:23
#38
billy123456 发表于 2017-9-9 16:16
你的资料能读出来吗?

git到云端的能读呀,但是本地的我就不要了,反正都在百度云盘上,我其实想用testdisk恢复从前的爱情动作片,不会玩可能是重写了boot开不了机了
Reply View the author
avatar
woodelf
deepin
2017-09-10 00:33
#39
https://bbs.deepin.org/post/145272
说实话我不建议你用xfs,btrfs是我见过最稳定的文件系统

老铁,你经历过btrfs CSUM tree整个损坏时的绝望么?
Reply View the author
avatar
billy123456
deepin
2017-09-10 00:37
#40
https://bbs.deepin.org/post/145272
老铁,你经历过btrfs CSUM tree整个损坏时的绝望么?

没有,我没见过。我现在根分区和home分区都是btrfs,状态很好
Reply View the author
2 / 3
To page