You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Is there a method to move (not copy) files from one volume to another volume in the same container and device?

I have two volumes, say VolumeA and VolumeB in the same Container on the same Device. VolumeB has a number of large files which I like to move from VolumeB to VolumeA WITHOUT physically copying the content. Command line is no problem. Copying is very tedious since that process straddles the capacity of the device.


Thank you for any hints.


Manfred

MacBook Pro 16″, macOS 12.7

Posted on Oct 7, 2024 12:07 PM

Reply
11 replies

Oct 12, 2024 11:07 AM in response to manfred_k

You can just hold down the Option key and drag the selected files from Volume A to Volume B and that will "move" the files to B. However it's not recommended as if there's a hiccup, more likely with moving large numbers of files, durning the move the files can be deleted from A and not get to B. You will lose the files and have to restore them from your most recent Time Machine backup.


It's like the old carpenter's adage: measure twice - cut once. The computer version is: copy, verify and then delete.


Oct 7, 2024 12:21 PM in response to manfred_k

No. The data must be copied to the new volume, and deleted from the old volume.


In the Finder hold the Command key while dragging the file(s) to the new volume.


In the Terminal you can use the mv command.


But both methods copy and delete under the covers.


I’ve been a file system developer since 1998, and no file system I’ve worked on, even the ones with multiple volumes and shared free space, have what you want.

Oct 7, 2024 4:40 PM in response to BobHarris

Thank you Bob Harris. I had been working on file systems way back in Digital Equipment Corporation, and there our volume manager mapped each file to its unique entry in the index file of the underlying (full) disk structure. Therefore, mapping from one volume to another was possible (if you knew how to do it). I had hoped APFS might have a similar possibility.


But I agree with your second reply to use an auxiliary intermediate volume if necessary. That is probably the safer way to do the (copy-delete) move, even though it is technically far less interesting :-)


Thank you,


Manfred

Oct 10, 2024 1:42 PM in response to manfred_k

RSX pre-dates me. My DIGITAL experiences were a pair of PDP-8’s in college (punched paper tape on ASR33 teletype), then nothing until a pair of VAX-780’s in 1979 as a customer. But my DIGITAL employment was not until 1988 in the PATHWORKS for Mac group. The DIGITAL UNIX stuff did not happen until 1995. And I had the same office for DIGITAL to Compaq to HP mergers, until HP laid off everyone involved in porting AdvFS and Cluster technology to Itanium HP-UX at Christmas 2004 (Merry 🎅 ).

Is there a method to move (not copy) files from one volume to another volume in the same container and device?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.