[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how-to-password-protect-ubuntus-boot-loader



i delete the compiled grub,and install grub-pc 1.99
when i update-grub,

Found initrd image: /boot/initrd.img-2.6.32-5-486
  Parse error at byte 1 (line 1): unexpected token

how can i do?
root@debian:/home/tiger# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found linux image: /boot/vmlinuz-2.6.32-5-486
Found initrd image: /boot/initrd.img-2.6.32-5-486
  Parse error at byte 1 (line 1): unexpected token
Found Microsoft Windows XP Professional on /dev/sda1
done


2012/10/7 Daniel Landau <daniel.landau@iki.fi>


On 7 Oct 2012 11:35, "contro opinion" <contropinion@gmail.com> wrote:
> i compiled the grub1.99 ,download tar package ,make and install it,
> must i  delete it and reinstall it ?

Update-grub is a script, that you might not have, especially if you compiled from source. The actual work is done by the command grub-mkconfig e.g.

$ grub-mkconfig -o /boot/grub/grub.cfg

There might be some 2's there after any of the grubs (grub2-mkconfig, /boot/grub2). Check which of the commands and directories do you have in your computer.

Daniel Landau



Reply to: