Solved Error: Not an Assignment

Hi
I have dualbooted FreeBSD and Linux, using GRUB as bootloader. Both OSes are booting fine, except a tiny hiccup. After I select FreeBSD from GRUB, then a new screen appears saying:
Code:
error: not an assignment.
Press any key to continue
Although, it is harmless and disappears in few seconds. But I want to fix it and remove this error screen. Kindly guide me in this respect that where this error is coming from and how can I fix it.
Please check attached image.
Thanks
 

Attachments

  • boot.jpg
    boot.jpg
    1.1 MB · Views: 231
Probably a typo in your Grub configuration.
I have edited /etc/grub.d/40_custom, and put following:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "FreeBSD-12.0-RELEASE" {
        insmod ufs2
        set root (hd0,4)
        chainloader (hd0,4)+1
}
It seems fine to me. What do you think?
 
I have fixed the problem. SirDice was right. There was a small problem with grub configurations. Following is the correct configuration:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "FreeBSD-12.0-RELEASE" {
        insmod ufs2
        set root='hd0,msdos4'
        chainloader (hd0,4)+1
}
 
Back
Top