top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Installing grub in an img file

+1 vote
450 views

I am trying to create a bootable img file for use as a virtual box disk. How can I install grub to make the img file bootable?

posted Aug 2, 2013 by Natarajan Venkatraman

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

It might be simpler booting that image in virtualbox/kvm from a livecd and do the usual stuff from there (chroot, grub-install etc).

answer Aug 3, 2013 by anonymous
Similar Questions
+2 votes

I have upgraded a pc from fedora 18 to 19, and I am left with an ugly grub2 boot loader. So, I have removed packages grub2, grub2-tools, erased /etc/default/grub, re-installed them, and run:

grub2-install /dev/sda grub2-mkconfig -o /boot/grub2/grub.cfg

But grub still has no theme. Package grub2-starfield-theme is installed though. When I reinstalled grub2-tools, no /etc/default/grub was created. Is there a reason for that?

+3 votes

Why I get this message " You have new mail in /var/spool/mail/root " in CentOs?

My queries are the following -
1. Why this is generated ?
2. How to disable this ?
3. Is this system generated ?
4. Is this message gain any importance ?

0 votes

Of late (since later days of F18), I have been getting the following error whenever a new kernel gets installed: /boot/grub2/grub.cfg does not get updated and has to be "fixed" manually using

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Is there any way to fix this problem? The only error I get appears to be unrelated (or is it?) but consistent
(everytime I install a new kernel):

%yum update
....
Installing: kernel-3.9.9-301.fc19.x86_64
23/45 
......

Cleanup :

libipa_hbac-1.10.0-12.fc19.beta2.x86_64 45/45
dracut-install: ERROR: installing '/usr/lib/kbd/consolefonts/True.*'
E: /usr/lib/dracut/dracut-install -D /var/tmp/initramfs.xo7Lmm /usr/lib/kbd/consolefonts/True.*

I searched on the error message DDG as well as Google but got absolutely nothing. (I searched on E: /usr/lib/dracut/dracut-install -D)

0 votes

How a particular installation type affects DPDK uses within a host ?

...