Solved Grub error

I'm trying create a multiboot device and find a way of presenting the available options via a Grub menu. Installing Grub on a GPT disk requires a bios-boot partition which I created before installing Grub.
Code:
grub-install --recheck --no-floppy --root-directory=/  /dev/da0
Installation finished. No error reported.

On booting I get the Welcome to GRUB! msg followed by
error: no such device: 58b8c52ed537b954

Where do I find grub.cfg?
Here's my disk layout

Code:
root@tester:/mnt# gpart show da0
=>      40  15280112  da0  GPT  (7.3G)
        40      1024    1  freebsd-boot  (512K)
      1064   4194304    2  freebsd-ufs  (2.0G)
   4195368  11084784    3  bios-boot  (5.3G)
 
I'm trying create a multiboot device and find a way of presenting the available options via a Grub menu. Installing Grub on a GPT disk requires a bios-boot partition which I created before installing Grub.
Code:
grub-install --recheck --no-floppy --root-directory=/  /dev/da0
Installation finished. No error reported.

On booting I get the Welcome to GRUB! msg followed by


Where do I find grub.cfg?
Here's my disk layout

Code:
root@tester:/mnt# gpart show da0
=>      40  15280112  da0  GPT  (7.3G)
        40      1024    1  freebsd-boot  (512K)
      1064   4194304    2  freebsd-ufs  (2.0G)
   4195368  11084784    3  bios-boot  (5.3G)
I think you should add the --removable option.
 
It's not in [da0p2]/boot/grub.

Maybe it has been installed in the bios-boot partition, but I don't how to look at that...
I think your root directory is wrong. The root directory this case is definitely not your / but on your usb stick, the directory that contains /boot/grub. Check here.
 
Actually, I think the fog is begining to clear now. If I want to install Grub on my USB stick, mounted on /mnt/usb, I need to run
grub-install –-root-directory=/mnt/usb /dev/da0.

Then I can create my own grub.cfg to correspond with the partitions created.
 
Actually, I think the fog is begining to clear now. If I want to Grub on my USB stick, mounted on /mnt/usb, I need to run
grub-install –-root-directory=/mnt/usb /dev/da0.

Then I can create my own grub.cfg to correspond with the partitions created.
Please mark your thread as Solved :)
 
Back
Top