Mostrando postagens com marcador MAC. Mostrar todas as postagens
Mostrando postagens com marcador MAC. Mostrar todas as postagens

domingo, 12 de abril de 2015

How to access Yosemite MAC partition from Linux

As an addict and old user of the i3 tiling wm. I couldn't use MAC OS more that 6 months, than I decided install Linux in my MAC bookair :D

However this computer offers only 128GB of SSD and I was with many work files, than I needed access this files on my MAC partition, for this I installed the hfsplus-tools avaliable in my Linux distribution, but I can't mount my MAC partition :(

Some research found that Yosemite change its partition from HFS+ to "Core Storage", but is possible do you convert Yosemite’s Core Storage partition back to HFS+. Let's go.

On MAC terminal use the command shown below to get the lvUUID for the partition.

diskutil cs list

This will give you a list of partitions similar to this:

CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group B6308EC8-132D-44BD-9212-6BD867F6331B
    =========================================================
    Name:         OS X Test
    Status:       Online
    Size:         29349998592 B (29.3 GB)
    Free Space:   204955648 B (205.0 MB)
    |
    +-< Physical Volume 3325F333-C8E3-3EEE-9357-5E0C21A600D1
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk0s4
    |   Status:   Online
    |   Size:     29349998592 B (29.3 GB)
    |
    +-> Logical Volume Family E8CB0EB7-AA33-48AA-AA13-5DE30867901B
        ----------------------------------------------------------
        Encryption Status:       Unlocked
        Encryption Type:         None
        Conversion Status:       NoConversion
        Conversion Direction:    -none-
        Has Encrypted Extents:   No
        Fully Secure:            No
        Passphrase Required:     No
        |
        +-> Logical Volume 2F7B1893-07E8-4298-840B-F2552042E055
            ---------------------------------------------------
            Disk:                  disk1  
            Status:                Online 
            Size (Total):          28809494528 B (28.8 GB)
            Conversion Progress:   -none-
            Revertible:            Yes (no decryption required)
            LV Name:               OS X Test
            Volume Name:           OS X Test
            Content Hint:          Apple_HFS


If the partition says “Revertible: Yes”? That means we can convert it back.
Use the command shown below to revert this partition to HFS+

diskutil coreStorage revert 2F7B1893-07E8-4298-840B-F2552042E055

Now, come back to Linux and mount your MAC partition normally.

mount -t hfsplus -o force,rw /dev/sda2 /mnt/apple

Good luck

References: http://awesometoast.com/yosemite-core-storage-and-partition-woes/

Drunk Penguins

Drunk Penguins
Drunk Penguins