龙空技术网

Linux系统重启出现:error: invalid arch independent ELF magic

小明随身杂谈 220

前言:

此刻各位老铁们对“archlinux grub引导修复”可能比较注重,兄弟们都需要了解一些“archlinux grub引导修复”的相关文章。那么小编同时在网摘上汇集了一些有关“archlinux grub引导修复””的相关知识,希望姐妹们能喜欢,各位老铁们快快来学习一下吧!

错误error: invalid arch independent ELF magic.

grub rescue>

解决方法

Boot into Live CD and run:

1.查看分区情况

$ sudo fdisk -lu /dev/sda

Disk /dev/sda: 128.0 GB, 128035676100 bytes

32 heads, 32 sectors/track, 244208 cylinders, total 250069680 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00037bd2

Device Boot Start End Blocks Id System

/dev/sda1 * 1024 206847 102912 83 Linux

/dev/sda2 206848 16985087 8389120 82 Linux swap / Solaris

/dev/sda3 16985088 250068991 116541952 83 Linux

2.重置引导文件

sudo mount /dev/sda3 /mnt

sudo mount /dev/sda1 /mnt/boot

sudo grub-install --root-directory=/mnt /dev/sda

标签: #archlinux grub引导修复