您的位置:首页 > 其它

ubuntu livecd修复superblock和修复grub

2018-01-10 08:31 441 查看

1.superblock修复

①打开livecd的ubuntu,输入命令

fdisk -l②显示磁盘分区信息,ubuntu分区信息不显示挂载点,要找到自己的/分区,本人是挂载在/dev/sda7下。使用命令
fsck /dev/sda7
修复superblock,但要一直按y,使用-a或-y参数来自动修复,-y是因为某些文件系统仅支持此参数。本人使用-a参数时报错,-y没有使用。能修复superblock的原因是在其他分区中有superblock的备份。

2.grub修复(双系统引导修复)

①先连接网络。

②添加boot-repair所在的源,注意没有联网会失败。输入命令

sudo add-apt-repository ppa:yannubuntu/boot-repair③更新可用原件包。输入命令
sudo apt update    或
sudo apt-get update
④安装boot-repair。输入命令
sudo apt-get install -y boot-repair    -y参数指当安装时自动回答yes,对于-y参数的解释如下
Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively. If an undesirable situation, such as changing a held package, trying to install a unauthenticated package or removing an essential package occurs then apt-get will abort. Configuration Item: APT::Get::Assume-Yes.⑤开启boot-repair
boot-repair出现界面,点击recommended repair(推荐修复),等一会修复完成。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: