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: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] resize file disk iommu xp won't boot
From: Daniele Palumbo <daniele@xxxxxxxxxxxx>
Date: Fri, 23 Jan 2009 13:34:38 +0100
Cc: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Delivery-date: Fri, 23 Jan 2009 04:34:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0901230321j48024ab2t6a223885af91a2b3@xxxxxxxxxxxxxx>
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> <7207d96f0901230321j48024ab2t6a223885af91a2b3@xxxxxxxxxxxxxx>
Reply-to: daniele@xxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
Il venerdì 23 gennaio 2009 12:21:30 Fajar A. Nugraha ha scritto:
> I hope you have you original winxp.img handy. I have a (hopefuly
> wrong) hunch that you've messed up your data.

of course :D

> > 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?

http://en.wikipedia.org/wiki/Master_boot_record
512 bytes, but from 447 start the partition table...
and i don't want to delete it, of course.

> 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

new image:
pc18:/home# fdisk -l /dev/loop1

Disk /dev/loop1: 8388 MB, 8388608000 bytes
128 heads, 63 sectors/track, 2031 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes
Disk identifier: 0x92759275

      Device Boot      Start         End      Blocks   Id  System
/dev/loop1p1   *           1        1014     4088416+   7  HPFS/NTFS
pc18:/home#

backup image:
pc18:/home# fdisk -l /dev/loop1

Disk /dev/loop1: 4194 MB, 4194304000 bytes
128 heads, 63 sectors/track, 1015 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes
Disk identifier: 0x9e099e09

      Device Boot      Start         End      Blocks   Id  System
/dev/loop1p1   *           1        1014     4088416+   7  HPFS/NTFS
pc18:/home#

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

but of course, cause qemu see 8GB in virtual bios, this is not a surprise to 
me.

any other hint?

thanks
daniele

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