Hi all,

Has anyone been able to repartition their drive from Linux?  I have an
MBP C2D with a journaled HFS+ partition, an ext2/3 linux partition and
a swap partition.  I want to setup a new unjournaled HFS+ partition
from which I can share my data between Linux and OS X.  Since I'm out
of space on my hard disk I have to repartition the HFS+ partition into
two HFS+ partitions (one journaled and one not).  When I try to do
this using diskutil in OS X it fails for some strange reason.  Here's
a sample transcript:

-------------------

mithril:~ admin$ diskutil list
/dev/disk0
   #:                   type name               size      identifier
   0:  GUID_partition_scheme                    *111.8 GB disk0
   1:                    EFI                    200.0 MB  disk0s1
   2:              Apple_HFS Macintosh HD       81.0 GB   disk0s2
   3:                    EFI                    27.9 GB   disk0s3
   4:             Linux Swap                    2.7 GB    disk0s4
mithril:~ admin$ diskutil resizeVolume disk0s2 limits
For device disk0s2 Macintosh HD:
        Current size:   86973087744 bytes
        Minimum size:   74596413440 bytes
        Maximum size:   86973087744 bytes
mithril:~ admin$ diskutil resizeVolume disk0s2 71G
Started resizing on disk disk0s2 Macintosh HD
Verifying
Resizing Volume

Resizing encountered error No space left on device (28) on disk
disk0s2 Macintosh HD
mithril:~ admin$ diskutil resizeVolume disk0s2 75GG
Started resizing on disk disk0s2 Macintosh HD
Verifying
Resizing Volume

Resizing encountered error No space left on device (28) on disk
disk0s2 Macintosh HD
mithril:~ admin$

----------------------------------

I've googled around and it seems the problem might be that there are
some files that OS X doesn't want to move and it would have to move
those to resize the partition but that's not very informative or
helpful.  Please note that the 745964... bytes shown above is actually
around 69 GB because a GB does not correspond to a billion but to some
larger number (presumably 2 raised to the appropriate power) so space
is not the problem.

I've also tried commands like:

resizeVolume disk0s2 75GG HFS+ Data 6G

to create a new partition while resizing the old one but they are no
more successful.

Any suggestions on how to proceed either via diskutil or by doing
something in Linux?

thanks,
Sheer

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mactel-linux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users

Reply via email to