LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 05-25-2011, 01:03 PM   #1
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Rep: Reputation: 31
Question Disk read error for Windows 7 partition


I've converted a physical Windows 7 partition to an image file using `dd`, and can't get the partition itself or the image to boot virtually, via either virt-manager or kvm. Both fail on boot with the error: "A disk read error occurred."

Perhaps I've used a bad `dd` command, but I simply did: `sudo dd if=/dev/sdb7 of=my-w7-image.img conv=noerror`

Also tried converting the image to qcow2 format with `qemu-img` and that seemed to work (and the new image checks out without errors, though I suppose that means nothing if the original image is bad). I get the same error what booting this qcow2 image virtually.

I've tried to fix the boot loader with a W7 boot disc, and it wants an admin password that I don't have. I've also tried booting with other recovery discs, but they either don't find the disk or partition, or they don't think it's a bootable W7 partition.
 
Old 05-25-2011, 03:53 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
I might be inclined to use a P2V app.

I have dd's many a distro over to a file. It is a raw file then and you can just use it like that to see where you stand before you go converting it.

Otherwise you could create a drive and boot to a live cd (image or usb or such) and then dd over ftp to the new file.
 
1 members found this post helpful.
Old 05-26-2011, 03:45 PM   #3
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jefro View Post
I might be inclined to use a P2V app.

I have dd's many a distro over to a file. It is a raw file then and you can just use it like that to see where you stand before you go converting it.

Otherwise you could create a drive and boot to a live cd (image or usb or such) and then dd over ftp to the new file.
Well, I tried VMware's P2V converter app before I went this route, and I got the same errors when trying to boot the resulting image file, so I assumed I'd be better off with a pure dd.

I don't necessarily want to convert the image to another format, just boot the image (or the original partition) from within my current OS. So far I've not been able to boot either one.
 
Old 05-26-2011, 07:31 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
Oh darn, I should have seen this.

dd if=/dev/sdb7


You didn't get a drive you got a partition. You need a mbr.
 
1 members found this post helpful.
Old 05-27-2011, 08:01 AM   #5
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jefro View Post
Oh darn, I should have seen this.

dd if=/dev/sdb7


You didn't get a drive you got a partition. You need a mbr.
Ack. Right. Thanks. So I can use `dd` to copy the MBR, but is it possible to add the MBR to the existing image of the partition I'd created, or to re-image and somehow include the MBR? Or do I need to image the entire disk in order to get one W7 partition to boot?
 
Old 05-27-2011, 03:03 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
Well, possible but not practical. You have to create a virtual hard drive (you lack a lot) so you could maybe do a binary copy of mbr + part.img to get a copy of the drive. One issue also exists is the sda7 deal. You'd at least have to fix either boot or partition structure.
 
1 members found this post helpful.
  


Reply

Tags
image, kvm, partition, virt-manager, windows 7


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read/mount a volume-managed disk partition? tthtlc Linux - Software 11 03-25-2008 07:06 AM
Read-Only disk Apon Partition disown3d Slackware 3 08-21-2006 10:04 PM
Partition problem windows not booting "Invalid disk error" julian_s Linux - Newbie 1 04-02-2004 09:26 PM
Windows Disk Read Error??? InSane103 Linux - Software 3 02-06-2004 10:51 PM
Help ! : impossible to read the table partition of my Zip Disk ordx Linux - General 1 11-30-2003 12:23 PM


All times are GMT -5. The time now is 08:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration