apfs-fuse icon indicating copy to clipboard operation
apfs-fuse copied to clipboard

"Unable to get volume!" error when trying to mount APFS partition

Open eXotech-code opened this issue 1 year ago • 3 comments

Hello, I have made a Time Machine backup on an external SSD and currently I'm trying to access its contents from a Pop_OS! installation. While running the apfs-fuse command to mount the drive it exited with error message "Unable to get volume!". I have tried to debug it with gdb and so far I have found out that GetVolume() returns false because oid is equal to 0. I would appreciate any help with this issue. Thanks in advance!

eXotech-code avatar Aug 05 '22 14:08 eXotech-code

Sending a screenshot with Dbg_Info enabled: image

eXotech-code avatar Aug 05 '22 14:08 eXotech-code

UPDATE: I have changed the value of g_vol_id from 0 to 1 in the ApfsFuse.cpp file and for some reason it worked! I have full access to all the volumes. I don't know why it worked but it worked.

eXotech-code avatar Aug 05 '22 14:08 eXotech-code

I have a SSD with two partitions: sdc2 - APFS - TimeMachine sdc3 - APFS - Just documents

I compiled the original code (with g_vol_id = 0) and I was not able to mount the sdc2(Unable to get volume!), only sdc3. When I change the g_vol_id to 1, I can mount sdc2 but not sdc3(Unable to get volume!)

Commands used:

sudo ./apfs-fuse -o allow_other /dev/sdc2 /media/user/tm
sudo ./apfs-fuse -o allow_other /dev/sdc2 /media/user/docs

Maybe there is some argument missing to inform on the command.

brunohenriquy avatar Aug 09 '22 20:08 brunohenriquy

@brunohenriquy I faced with the same issue. I solved it without recompilation.

apfs-fuse -o vol=0 /dev/sdb3 ~/disks/data
apfs-fuse -o vol=1 /dev/sdb2 ~/disks/backup

kovstas avatar Dec 02 '22 12:12 kovstas

@brunohenriquy I faced with the same issue. I solved it without recompilation.

apfs-fuse -o vol=0 /dev/sdb3 ~/disks/data
apfs-fuse -o vol=1 /dev/sdb2 ~/disks/backup

So there it is, the missing arg, hehehe. Thanks dude!!

brunohenriquy avatar Dec 02 '22 12:12 brunohenriquy

You can use apfsutil to check what volumes are available ... and there is also a -v parameter, which is the same as -o vol.

sgan81 avatar Jan 04 '23 03:01 sgan81

Hey @eXotech-code, @sgan81 since this is not an issue, it was a missing argument on the command line, I think we could close it.

brunohenriquy avatar Jan 04 '23 12:01 brunohenriquy

Agreed. Closing this.

eXotech-code avatar Jan 04 '23 13:01 eXotech-code