deepin 2014 开机启动显示error: malformed file解决办法
Tofloor
poster avatar
280197326
deepin
2014-10-28 15:09
Author
由于电脑装了很多系统, 之前清理了一下决定以后用deepin了, 界面美观没话说, 而且大部分操作和mac相同。对硬盘操作后开机进入deepin时出现如下信息
error: malformed file
please press any key to continue
这个问题时grub引导的问题, 由于之前出现过grub rescue的情况, 所以我用同样的方法, 把这问题解决了

解决方法: 重装grub引导
打开终端, 执行以下命令

sudo update-grub
sudo grub-install /dev/sda
sudo reboot

执行完会重启, 然后就会发现问题已经不存在了   
Reply Favorite View the author
All Replies
cxbii
deepin
2014-10-28 17:23
#1
sudo grub-install /dev/sda
这个很危险啊。。。。

我在launchpad查到这个是grub的bug吧,很久都没修复
Reply View the author
280197326
deepin
2014-10-28 17:26
#2
sudo grub-install /dev/sda
这个很危险啊。。。。

我在launchpad查到这个是grub的bug吧,很久都没修复

为什么会危险? 把grub引导装到硬盘而已, /dev/sda表示整个硬盘, 我修复很多次linux得grub都是直接这样做得, 暂时没有发现有什么问题
Reply View the author
Jerry1984
deepin
2014-10-28 21:13
#3
我两块硬盘,如何分辨装Deepin的是sda还是sdb呢?
Reply View the author
ArthurDeepin
deepin
2014-10-28 21:15
#4
我两块硬盘,如何分辨装Deepin的是sda还是sdb呢?
到磁盘管理工具里看一下,挂载点为/的区所在的盘就是deepin的。
Reply View the author
280197326
deepin
2014-10-28 22:00
#5
我两块硬盘,如何分辨装Deepin的是sda还是sdb呢?

用个分区工具打开看看就知道了, ext格式的是linux
Reply View the author
lgl007
deepin
2014-12-21 00:51
#6
我执行了上面的命令,还是出现上述错误,怎么办呀
Reply View the author
parsgo
deepin
2015-02-02 02:14
#7
我的也出现了这个问题,有解决的方法吗?
Reply View the author
electricface
deepin
2015-02-25 20:48
#8
找到根分区所在磁盘
readlink -f $(findmnt / -o SOURCE|tail -1)
一般结果是
/dev/sda+ 数字,比如 /dev/sda1

执行这条命令,注意这里要将数字去掉
sudo grub-install /dev/sda

然后再执行
sudo update-grub
Reply View the author
parsgo
deepin
2015-02-26 02:23
#9
按上操作,重启,依旧error: malformed file。

我的磁盘分区:

DeepinScreenshot20150226050616.png

是用deepin2014.2安装时的专家模式分区的。

为什么sda1在后面?
Reply View the author
parsgo
deepin
2015-02-26 13:12
#10
上面图示
为什么sda1在后面?

需要调整吗?
Reply View the author
sisurise
deepin
2015-03-24 19:25
#11
没有用,第一次启动可以,但是后面的启动依然有问题
Reply View the author
ethernet36
deepin
2015-08-15 01:35
#12
https://bbs.deepin.org/post/25392
找到根分区所在磁盘
readlink -f $(findmnt / -o SOURCE|tail -1)
一般结果是

感谢朋友
Reply View the author