|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-users
Re: [Xen-users] Guest O/S Questions 
| 
Marcus Brown wrote:
 Ok, let's back track a little.  The dd command I suggested is only 
useful for extracting the first partition from a partitioned disk image 
assuming that the first partition occupies all of the remaining disk 
space and starts on the 63rd sector.
You're right.  fdisk (and AFAIK, modern partitioning tools) prefer to
start partitions on the first cylinder boundary.  The assumption here is
that each cylinder contains 63 sectors.
 
OK, but why skip this cylinder?
If you are creating an image with multiple partitions won't you need to
keep the partition table intact?
 
It just so happens that if you partition a disk with only a single 
partition, with most partitioning tools, they'll always put the first 
partition on the 63rd sector. 
I think the reason it chooses that sector is that it is the first sector 
on the second cylinder and it reserves the rest of the first cylinder 
for other uses (such as extra space for a boot loader). 
If you're just exporting the whole disk, you don't need to do this 
command.  You would only use this command if you were trying to export a 
file system image as a partition (as hda1, hda3, etc.). 
Regards,
Anthony Liguori
 
Marcus.
 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
RE: [Xen-users] Guest O/S Questions, Mike Tierney
Re: [Xen-users] Guest O/S Questions, Brian Kosick
RE: [Xen-users] Guest O/S Questions, Ian PrattRe: [Xen-users] Guest O/S Questions, (continued)
Re: [Xen-users] Guest O/S Questions, Anthony Liguori
Re: [Xen-users] Guest O/S Questions, Mark Williamson
Re: [Xen-users] Guest O/S Questions, Karsten M. Self
Re: [Xen-users] Guest O/S Questions, Karsten M. Self
Re: [Xen-users] Guest O/S Questions, Anthony Liguori
Re: [Xen-users] Guest O/S Questions, Karsten M. Self
Re: [Xen-users] Guest O/S Questions, Anthony Liguori
Re: [Xen-users] Guest O/S Questions, Marcus Brown
Re: [Xen-users] Guest O/S Questions, Anthony Liguori
Re: [Xen-users] Guest O/S Questions, Marcus Brown
Re: [Xen-users] Guest O/S Questions,
Anthony Liguori <=
Re: [Xen-users] Guest O/S Questions, Karsten M. Self
 |  |  | 
  
    |  |  |