Visualizing linux GPT partition (EFI) from Windows Host

Discussions related to using VirtualBox on Windows hosts.
Post Reply
amireal
Posts: 3
Joined: 13. Mar 2015, 18:53

Visualizing linux GPT partition (EFI) from Windows Host

Post by amireal »

I created a rescue grub.iso using the following script. This code worked for me when I using Windows 7, Ubuntu 12, MBR:

Code: Select all

    #!/bin/sh
    set -e
    
    wk_dir=$(mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX")
    mkdir -p ${wk_dir}/boot/grub
    
    grub-mkconfig -o /boot/grub/grub.cfg
    
    # copy your /boot/grub/grub.cfg file to the work dir
    cp -v /boot/grub/grub.cfg ${wk_dir}/boot/grub/grub.cfg
    
    # run grub-mkrescue should create new image grub.iso in the current dir
    grub-mkrescue --modules="ext2 lvm" -o /home/john/Dropbox/grub.iso ${wk_dir}
    
    rm -rf ${wk_dir}
Now that I am using Windows 8, Ubuntu 14, GPT, using the `grub.iso` created from the above script and made sure to check `Enabled EFI` on Settings -> System. I would fall back to grub prompt, so I typed:

Code: Select all

    set root=(hd0,gpt5) 
    set prefix=(hd0,gpt5)/boot/grub 
    insmod normal 
    normal
and I was able to get to grub, only to encounter the following error:
2015-03-13 16_23_18-hanbang [Paused] - Oracle VM VirtualBox.png
2015-03-13 16_23_18-hanbang [Paused] - Oracle VM VirtualBox.png (14.61 KiB) Viewed 1949 times
I searched through and through the web to find someone visualizing a partition from Windows 8, but I couldn't find any. I think there is a limitation on 64-bit system for UEFI from virtualbox, but I wasn't sure. If anybody know how to do this, please set me to the right direction.
amireal
Posts: 3
Joined: 13. Mar 2015, 18:53

Re: Visualizing linux GPT partition (EFI) from Windows Host

Post by amireal »

Disabling Fastboot(?), reinstalling virtualbox, and setting the number of CPU to 1 fixed the problem for me, but the booting is still not very reliable. I still get stuck in the booting stage quite frequently
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Visualizing linux GPT partition (EFI) from Windows Host

Post by mpack »

VM log file please: Right click the VM in the GUI. Select "Show Log". Save "VBox.log" to a file. Compress that file and attach it to a message here. Make sure the VM is fully shut down before taking a log.
Post Reply