分类: LINUX
2010-07-09 19:59:56
Symbol "grub_puts_' not found |
You can fix it by booting a livecd, getting to a terminal, and doing the following:
> sudo mount /dev/sda1 /mnt # sda1 being the partition /boot
resides on
> sudo grub-install --root-directory=/mnt --recheck /dev/sda
Reboot and it should be fixed.
我的实际操作,第一次写错了,但提示后,第二遍蓝色的命令是正确的ubuntu@ubuntu:~$ sudo fdisk -l Disk /dev/sda: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0004f229 Device Boot Start End Blocks Id System /dev/sda1 * 1 91201 732572001 83 Linux Disk /dev/sdb: 300.0 GB, 300000000000 bytes 255 heads, 63 sectors/track, 36472 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xd9c0d9c0 Device Boot Start End Blocks Id System /dev/sdb1 1 12158 97654784 83 Linux /dev/sdb2 12158 36472 195304509 5 Extended /dev/sdb5 34991 36472 11904133+ 82 Linux swap / Solaris /dev/sdb6 12158 34990 183399424 83 Linux Partition table entries are not in disk order ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt --recheck /dev/sdb1 /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.. /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.. /usr/sbin/grub-setup: error: if you really want blocklists, use --force. ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt --recheck /dev/sdb Installation finished. No error reported. |
echo "export
_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on' ">> ~/.profile
|
sudo add-apt-repository ppa:ibus-dev/ibus-1.3-lucid |