samuelthomas2774 / airport

https://github.com/samuelthomas2774/airport/wiki
96 stars 14 forks source link

where are HDs mounted? #9

Open UKenGB opened 1 year ago

UKenGB commented 1 year ago

Successfully used node-acp to allow ssh access into my Time Capsule, but how can I access the actual drive containing the Time Machine sparse bundles?

I realise I can mount the drive on a Mac, but I want to set file ownership and permissions which I cannot do over the network. So now, logged in via SSH, I was expecting to find them mounted on /Volumes, or /mnt possibly, but nope, not there.

No 'find' command to help search, but is the disk never actually mounted and the 'sever' simply uses the raw device? Seems unlikely though. Is it even possible?

Anyone help? How can I now access the hard drive contents?

UKenGB commented 1 year ago

Needless to say, within seconds of posting the question, I discover the answer. Which is:-

They are NOT mounted within the Airport itself until remotely connected and then they appear in /Volumes on the Airport. Hence why I couldn't previously find them as nothing was remotely connecting to share the volume(s).

krackers commented 11 months ago

If it's not currently mounted, you need to mount it yourself. You can use mount -t hfs for hfs specific (probably /dev/dk2). See https://github.com/ipatch/theairportwiki/wiki/build-a-cross-compile-NetBSD-toolchain-armv6-Notes for general info.

You can try sysctl hw.disknames to get the partitions and raw disk drive. (latter can be used with atactl)