Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-18-2012, 11:29 AM   #1
LQ Newbie
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
Install GRUB2 to a virtualbox vdi image

I tried to install grub2 to a mounted virtual box vdi image, but when I started the virtual machine it didn't work.
I used the following commands for compile and installation:
(in decompressed folder: )
./configure --prefix=/mnt/ --exec-prefix=/mnt/
make install
(in /mnt/sbin folder: )
./grub-install --boot-directory=/mnt/boot /dev/nbd0

The error massage was: „no such device: xxx”

The grub.cfg file doesn't load.

Please someone help me what should I do.
Old 07-18-2012, 10:40 PM   #2
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
I think this thread should be in Hardware. Anyway, paste the outputs of the following command:
cat /etc/fstab
Old 07-18-2012, 10:57 PM   #3
Registered: Mar 2008
Posts: 21,825

Rep: Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610
What is this? /dev/nbd0
Old 07-19-2012, 05:17 AM   #4
LQ Newbie
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
/dev/nbd0 is the virtual disk, where I connected the vdi image with this:
sudo qemu-nbd -c /dev/nbd0 /home/mappa/proba_gep.vdi

The output of the cat fstab:

# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=0dcb9a83-9f35-4ce8-85aa-e8477bd3c84a / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=e8f53a65-6564-4b0c-b3aa-03b09d535f5a none swap sw 0 0


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to mount VirtualBox drive image (vdi) in Ubuntu 12.10/12.04 LXer Syndicated Linux News 0 07-13-2012 06:51 PM
Shrink VirtualBox Linux guest VDI? penyuan Linux - Virtualization and Cloud 4 07-04-2012 11:38 AM
Is there a way to increase the VDI size in VirtualBox on Fedora 9? Mr. Rey Linux - Software 10 05-24-2010 09:05 AM
VirtualBox virtual disk image backup? .vdi .sav brianpbarnes Linux - Software 3 07-17-2009 03:12 PM
Migrating a VirtualBox .vdi Image to CoLinux MetalSubstance Linux - Software 2 02-25-2008 08:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration