LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-06-2016, 02:55 PM   #1
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Rep: Reputation: Disabled
qemu from partition


Good day! I have 3 system on boot : Windows 7, Linux Mint and Linux From Scratch.

They all boot from grub.
Code:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd0504817

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   102402047    51097600    7  HPFS/NTFS/exFAT
/dev/sda3       102404094   234440703    66018305    5  Extended
/dev/sda5       102404096   234440703    66018304   83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x2870e0fb

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   620955647   310476800    7  HPFS/NTFS/exFAT
/dev/sdb2       819204094  1953523711   567159809    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sdb3       620955648   819202047    99123200   83  Linux
/dev/sdb5       819204096   834826239     7811072   82  Linux swap / Solaris
/dev/sdb6       834828288  1953523711   559347712   83  Linux
Now I want to boot Linux From Scratch from qemu. How do I do that?
I tryed
Code:
qemu-system-x86_64 -soundhw all -m 1024 -hda /dev/sdb3
but got error

Code:
no bootable devices.
 
Old 04-06-2016, 03:06 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Good start. However you most likely don't have grub on that drive. Also that drive may end up being relative.

When I multiboot on multiple drives I always put loaders on each drive. No loader is aware of other systems. I use bios to select on boot.

A possible solution would be to put grub on that or other loader then have to fix main loader to chain to that.
 
1 members found this post helpful.
Old 04-06-2016, 03:23 PM   #3
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you! I'll try to add grub to /dev/sdb3
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
QEMU - Use partition as virtual disk jesus92gz Linux - Software 3 03-17-2015 04:29 AM
[SOLVED] qemu-kvm permission for partition disk lupe Linux - Virtualization and Cloud 1 01-20-2015 05:22 AM
How to run Windows 7 partition as a VM in libvirt/Ubuntu/qemu? lifeboy Linux - Virtualization and Cloud 5 07-05-2013 03:08 PM
qemu-kvm on a real partition commx Linux - Virtualization and Cloud 2 05-29-2012 09:34 PM
After Installing a Fedora Image in QEMU, can you transfer a partition on your HD rtoney5 Fedora 2 11-19-2007 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:58 AM.

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
Open Source Consulting | Domain Registration