LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi!
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
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, 09:40 PM   #2
ilesterg
Member
 
Registered: Jul 2012
Distribution: Arch, Debian, and CentOS/RHEL
Posts: 539

Rep: Reputation: 56
I think this thread should be in Hardware. Anyway, paste the outputs of the following command:
Code:
cat /etc/fstab
 
Old 07-18-2012, 09:57 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,544

Rep: Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428
What is this? /dev/nbd0
 
Old 07-19-2012, 04:17 AM   #4
kara85
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
 
  


Reply


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 05:51 PM
Shrink VirtualBox Linux guest VDI? penyuan Linux - Virtualization and Cloud 4 07-04-2012 10:38 AM
Is there a way to increase the VDI size in VirtualBox on Fedora 9? Mr. Rey Linux - Software 10 05-24-2010 08:05 AM
VirtualBox virtual disk image backup? .vdi .sav brianpbarnes Linux - Software 3 07-17-2009 02:12 PM
Migrating a VirtualBox .vdi Image to CoLinux MetalSubstance Linux - Software 2 02-25-2008 07:03 AM


All times are GMT -5. The time now is 01:31 PM.

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