[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.