Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: diskutil partitionDisk problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diskutil partitionDisk problem



On 08/05/2004, at 9:39 PM, Mukesh wrote:

I am using diskutil for creating partitions on disks exposed to Mac OS
X/Darwin7.3.0 by underlying hardware RAID box.
Please take a look at the command given -

OSX3:~ root# diskutil partitionDisk disk2 3 HFS+ part1 10G HFS+ part2 3.2G
HFS+ part3 10G
Started partitioning on disk disk2
Creating Partition Map
5% ..Formatting Disk
10% ..Formatting Disk
32% ..Formatting Disk
100% ..
Finished partitioning on disk disk2
/dev/disk2
#: type name size identifier
0: *68.4 GB disk2
1: Apple_partition_map 31.5 KB disk2s1
2: Apple_HFS part1 9.9 GB disk2s3
3: Apple_HFS part2 3.1 GB disk2s5
4: Apple_HFS part3 55.0 GB disk2s7

Here please note that I had specified part1 of 10GB, part2 of 3.2GB &
remaining size to part3.
But diskutil created part 1 of size 9.9GB, part 2 of size 3.1GB & remaining
to part3.
Please also note that addition of all partition sizes is not equal to size
of disk.

9.9G ~ = 10G the difference being rounding, headers, etc

You must specify what to do with all of the disk. You had ~ 45G left over so diskutil just included that in the last partition. Your command should probably have been

OSX3:~ root# diskutil partitionDisk disk2 4 HFS+ part1 10G HFS+ part2 3.2G
HFS+ part3 10G free part4 45G


Peter Kerr Mail.app 1.3.7 (v615/613)
Snr Technician
School of Music, University of Auckland, New Zealand
_______________________________________________
darwinos-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwinos-users
Do not post admin requests to the list. They will be ignored.


References: 
 >diskutil partitionDisk problem (From: "Mukesh" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.