Executing 'grub-install /dev/sda' failed. This is a fatal error.
fdisk: unable to seek on /dev/sda: Invalid argument
sudo fdisk /dev/sdb
给出
Device contains neither a valid DOS partiion table, nor Sun, SGI or OSF disklabel.
Building a new DOS disklabel with disk identifier 0x15228d1d.
Changes will remain in memory only until you decide to write them.
After that of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite).
Command (m for help):
答案1
我也有同样的问题。
首先点击'尝试Ubuntu'按钮,然后点击'安装Ubuntu'桌面快捷方式,解决了这个问题。
答案2
尝试重新安装GRUB。
使用Ubuntu的live CD引导。
打开终端,并运行命令
sudo fdisk -l
它列出了硬盘的完整分区表,
将Linux分区挂载到那里。也就是说,假设你发现你的Linux分区是/dev/sda5
,通过执行以下命令将它挂载到'temp'文件夹中
sudo mount /dev/sda5 /home/ubuntu/temp
如果要检查是否已挂载正确的分区,请转到主文件夹,并打开temp,你将在/
目录中,在那里,你会找到'home',你的个人文件夹在那里。确认已挂载正确的分区后,请执行步骤6.
你必须安装grub,显示系统从硬盘开始读取数据的位置。
sudo grub-install --root-directory=/home/ubuntu/temp /dev/sda
/dev/sda
对应于你的硬盘名称,用sudo fdisk -l
命令显示的命令替换它。
完成,你可以重新启动系统,