Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-26-2013, 07:52 AM   #1
LQ Newbie
Registered: Sep 2013
Posts: 25

Rep: Reputation: Disabled
QEMU and Coreboot support

Dear All,

I'm trying to create an image using qemu-img creator but the problem i'm having is when i try to split the disk into three partitions and mounting them.


# qemu-img create debian.qcow 10G
# fdisk debian.qcow2

created three partitions so when i run the command fdisk - lu debian.qcow i get the following

Device Boot Start End Blocks Id System
debian.qcow1 2048 4194304 2096128+ 83 Linux
debian.qcow2 4194305 8388608 2097152 83 Linux
debian.qcow3 8388609 20971519 6291455+ 83 Linux

No i would like to mount by offset but i keep getting error messages such as

mount -o loop, offset=2048 emd.qcow /mnt/boot/
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .

Any help please? as what i would like to do is

in partition one i would like to copy /boot direcotry from a working debian machine and then on the second directory /root and third directory would like to keep it for /home

and then coreboot.rom will be what i will use for grub2

Any help would be much appreciated.

Old 11-26-2013, 05:31 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You can't have spaces in the mount options, try:
mount -o loop,offset=2048 emd.qcow /mnt/boot/
Old 11-26-2013, 07:38 PM   #3
Registered: Mar 2008
Posts: 19,217

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
Just a note.
I've never tried to run fdisk on a virtual filesystem outside of a running virtual OS.

Guess it does work.

Last edited by jefro; 11-26-2013 at 07:40 PM.


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
Does qemu/kvm support ovf? screwzm Linux - Virtualization and Cloud 3 04-10-2013 03:44 PM
Does CoreBoot support CLEVO/KAPOK boards? Geremia Linux - Laptop and Netbook 5 10-02-2012 02:26 PM
[SOLVED] Changes that are required to support a processor in Coreboot cruiser Programming 1 09-26-2011 06:05 AM
[SOLVED] Coreboot support for ASUS P2B98-XV crosstalk Linux - Hardware 3 03-08-2011 03:02 PM
Qemu with kqemu support problem luke-indul Ubuntu 2 05-31-2006 02:35 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration