WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] resize file disk iommu xp won't boot

To: daniele@xxxxxxxxxxxx
Subject: Re: [Xen-users] resize file disk iommu xp won't boot
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Fri, 23 Jan 2009 18:21:30 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 23 Jan 2009 03:22:50 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200901231147.23587.daniele@xxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <200901231147.23587.daniele@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Jan 23, 2009 at 5:47 PM, Daniele Palumbo <daniele@xxxxxxxxxxxx> wrote:
> /home/winxp.img is 4 GB, i have to expand it to 8 GB.
>
> i have tried both dd with in append mode and dd another 4 GB file and then cat
> tempfile >> winxp.img.

I hope you have you original winxp.img handy. I have a (hopefuly
wrong) hunch that you've messed up your data.

>
> when i boot xp, i can see the correct disk size, but it stop at "Booting from
> Hard Disk...".
>
> now on, i have tried to dd to zero the first 446 byte with a live cd

446? I thought MBR is 404 bytes?

> still get the error.

Try these, and post the output.
ls -lsh /home/winxp.img
losetup -f /home/winxp.img
losetup -a
fdisk -l /dev/loop0 (or whatever loop holds winxp.img)
losetup -d /dev/loop0

My guess is :
- fdisk still says 4G disk, OR
- you get a big number of cylinders

Regards,

Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users