Posts

Post not yet marked as solved
1 Replies
1.6k Views
I've been tryng to use asr restore with a snashot to replicate an encrypted, unlocked startup volume, but I keep getting error 49174. Note that this works if the source is not encrypted:With a basic encrypted Catalina install, and a sufficiently large destination (source is 256GB, desalination 512GB), running a simple replication gives error 49174 with no explanation:tmutil listlocalsnapshots / com.apple.TimeMachine.2019-06-09-145125.local com.apple.TimeMachine.2019-06-09-145419.local com.apple.TimeMachine.2019-06-09-145529.local com.apple.TimeMachine.2019-06-09-145638.local Davids-MacBook:~ dnanian$ sudo asr restore --source /dev/disk1s1 --target /dev/disk3 --toSnapshot com.apple.TimeMachine.2019-06-09-145638.local --erase Password: Validating target...done Validating source...done Erase contents of /dev/disk3 ()? [ny]: y Replicating ....10....20....30....40....50....60....70....80....90....100 Replicating ....10....20....30....40....50....60....70....80....90.... Volume replication failed - error 49174 Davids-MacBook:~ dnanian$ diskutil ap list APFS Containers (2 found) | +-- Container disk1 868BED22-BEA5-489B-B794-F38233211122 | ==================================================== | APFS Container Reference: disk1 | Size (Capacity Ceiling): 250035572736 B (250.0 GB) | Capacity In Use By Volumes: 127188508672 B (127.2 GB) (50.9% used) | Capacity Not Allocated: 122847064064 B (122.8 GB) (49.1% free) | | | +-< Physical Store disk0s2 ABF42564-8366-4B58-B70C-0E470AB8E78E | | ----------------------------------------------------------- | | APFS Physical Store Disk: disk0s2 | | Size: 250035572736 B (250.0 GB) | | | +-> Volume disk1s1 2197EA00-77A8-3075-8854-DA163481009D | | --------------------------------------------------- | | APFS Volume Disk (Role): disk1s1 (Data) | | Name: Macintosh HD - Data (Case-insensitive) | | Mount Point: /System/Volumes/Data | | Capacity Consumed: 115270877184 B (115.3 GB) | | FileVault: Yes (Unlocked) | | | +-> Volume disk1s2 5FECDA28-1CA3-4A69-922D-1A9CE8F70D26 | | --------------------------------------------------- | | APFS Volume Disk (Role): disk1s2 (Preboot) | | Name: Preboot (Case-insensitive) | | Mount Point: Not Mounted | | Capacity Consumed: 78176256 B (78.2 MB) | | FileVault: No | | | +-> Volume disk1s3 E7669B32-17A6-4623-8C0E-B3232DEACD75 | | --------------------------------------------------- | | APFS Volume Disk (Role): disk1s3 (Recovery) | | Name: Recovery (Case-insensitive) | | Mount Point: Not Mounted | | Capacity Consumed: 520372224 B (520.4 MB) | | FileVault: No | | | +-> Volume disk1s4 039CCEA9-D9B7-4286-843E-61EA8C15A6A7 | | --------------------------------------------------- | | APFS Volume Disk (Role): disk1s4 (VM) | | Name: VM (Case-insensitive) | | Mount Point: /private/var/vm | | Capacity Consumed: 1074810880 B (1.1 GB) | | FileVault: No | | | +-> Volume disk1s5 0E46AC46-E686-45CE-A1BF-E270DFAE2489 | --------------------------------------------------- | APFS Volume Disk (Role): disk1s5 (System) | Name: Macintosh HD (Case-insensitive) | Mount Point: / | Capacity Consumed: 10105892864 B (10.1 GB) | FileVault: Yes (Unlocked) | +-- Container disk3 3E4B3776-082D-42DE-A84B-ABF5D1074B83 ==================================================== APFS Container Reference: disk3 Size (Capacity Ceiling): 511900434432 B (511.9 GB) Capacity In Use By Volumes: 764370944 B (764.4 MB) (0.1% used) Capacity Not Allocated: 511136063488 B (511.1 GB) (99.9% free) | +-< Physical Store disk2s2 CEC2F7B2-A2D2-4F88-B498-06D9F4C847FA | ----------------------------------------------------------- | APFS Physical Store Disk: disk2s2 | Size: 511900434432 B (511.9 GB) | +-> Volume disk3s3 34EDF72E-8395-4648-9106-7EFAF17CF582 | --------------------------------------------------- | APFS Volume Disk (Role): disk3s3 (Preboot) | Name: Preboot (Case-insensitive) | Mount Point: Not Mounted | Capacity Consumed: 78151680 B (78.2 MB) | FileVault: No | +-> Volume disk3s4 E9AF90F0-F71D-4211-A87C-78E81B561355 --------------------------------------------------- APFS Volume Disk (Role): disk3s4 (Recovery) Name: Recovery (Case-insensitive) Mount Point: Not Mounted Capacity Consumed: 523632640 B (523.6 MB) FileVault: No I’ve also seen this: diskutil ap createvolume disk3 APFS "new" Will export new APFS Volume "new" from APFS Container Reference disk3 Started APFS operation on disk3 Preparing to add APFS Volume to APFS Container disk3 Creating APFS Volume Created new APFS Volume disk3s1 Mounting APFS Volume Setting volume permissions Disk from APFS operation: disk3s1 Finished APFS operation on disk3 Davids-MacBook:~ dnanian$ ls /Volumes/new/ Davids-MacBook:~ dnanian$ sudo asr restore --source /dev/disk1s1 --target /Volumes/new --toSnapshot com.apple.TimeMachine.2019-06-09-145638.local --erase Validating target...done Validating source...done Erase contents of /dev/disk3s1 (/Volumes/new)? [ny]: y Replicating ....10....20....30....40....50....60....70....80....90....100 Replicating ....10....20....30....40....50....60....70....80....90.... Volume replication failed - error 49174 Davids-MacBook:~ dnanian$ diskutil ap list APFS Containers (2 found) | +-- Container disk1 868BED22-BEA5-489B-B794-F38233211122 | ==================================================== | APFS Container Reference: disk1 | Size (Capacity Ceiling): 250035572736 B (250.0 GB) | Capacity In Use By Volumes: 128937312256 B (128.9 GB) (51.6% used) | Capacity Not Allocated: 121098260480 B (121.1 GB) (48.4% free) | | | +-< Physical Store disk0s2 ABF42564-8366-4B58-B70C-0E470AB8E78E | | ----------------------------------------------------------- | | APFS Physical Store Disk: disk0s2 | | Size: 250035572736 B (250.0 GB) | | | +-> Volume disk1s1 2197EA00-77A8-3075-8854-DA163481009D | | --------------------------------------------------- | | APFS Volume Disk (Role): disk1s1 (Data) | | Name: Macintosh HD - Data (Case-insensitive) | | Mount Point: /System/Volumes/Data | | Capacity Consumed: 117019656192 B (117.0 GB) | | FileVault: Yes (Unlocked) | | | +-> Volume disk1s2 5FECDA28-1CA3-4A69-922D-1A9CE8F70D26 | | --------------------------------------------------- | | APFS Volume Disk (Role): disk1s2 (Preboot) | | Name: Preboot (Case-insensitive) | | Mount Point: Not Mounted | | Capacity Consumed: 78176256 B (78.2 MB) | | FileVault: No | | | +-> Volume disk1s3 E7669B32-17A6-4623-8C0E-B3232DEACD75 | | --------------------------------------------------- | | APFS Volume Disk (Role): disk1s3 (Recovery) | | Name: Recovery (Case-insensitive) | | Mount Point: Not Mounted | | Capacity Consumed: 520372224 B (520.4 MB) | | FileVault: No | | | +-> Volume disk1s4 039CCEA9-D9B7-4286-843E-61EA8C15A6A7 | | --------------------------------------------------- | | APFS Volume Disk (Role): disk1s4 (VM) | | Name: VM (Case-insensitive) | | Mount Point: /private/var/vm | | Capacity Consumed: 1074810880 B (1.1 GB) | | FileVault: No | | | +-> Volume disk1s5 0E46AC46-E686-45CE-A1BF-E270DFAE2489 | --------------------------------------------------- | APFS Volume Disk (Role): disk1s5 (System) | Name: Macintosh HD (Case-insensitive) | Mount Point: / | Capacity Consumed: 10105901056 B (10.1 GB) | FileVault: Yes (Unlocked) | +-- Container disk3 3E4B3776-082D-42DE-A84B-ABF5D1074B83 ==================================================== APFS Container Reference: disk3 Size (Capacity Ceiling): 511900434432 B (511.9 GB) Capacity In Use By Volumes: 12073312256 B (12.1 GB) (2.4% used) Capacity Not Allocated: 499827122176 B (499.8 GB) (97.6% free) | +-< Physical Store disk2s2 CEC2F7B2-A2D2-4F88-B498-06D9F4C847FA | ----------------------------------------------------------- | APFS Physical Store Disk: disk2s2 | Size: 511900434432 B (511.9 GB) | +-> Volume disk3s3 34EDF72E-8395-4648-9106-7EFAF17CF582 | --------------------------------------------------- | APFS Volume Disk (Role): disk3s3 (Preboot) | Name: Preboot (Case-insensitive) | Mount Point: Not Mounted | Capacity Consumed: 234430464 B (234.4 MB) | FileVault: No | +-> Volume disk3s4 E9AF90F0-F71D-4211-A87C-78E81B561355 | --------------------------------------------------- | APFS Volume Disk (Role): disk3s4 (Recovery) | Name: Recovery (Case-insensitive) | Mount Point: Not Mounted | Capacity Consumed: 1590390784 B (1.6 GB) | FileVault: No | +-> Volume disk3s1 81D2F867-1989-4008-B473-4A5E14424AB4 --------------------------------------------------- APFS Volume Disk (Role): disk3s1 (System) Name: Macintosh HD (Case-insensitive) Mount Point: /Volumes/Macintosh HD 1 Capacity Consumed: 10085896192 B (10.1 GB) FileVault: No Note that copied the system volume (not sure why it’s different, frankly). Looking at asr with strings, I noticed a “passphrase” option, so I tried that: sudo asr restore --source /dev/disk1s1 --target /dev/disk3s1 --toSnapshot com.apple.TimeMachine.2019-06-09-145638.local --passphrase “Please Work” --erase Validating target...done Validating source...done Erase contents of /dev/disk3s1 (/Volumes/Macintosh HD 1)? [ny]: y Replicating ....10....20....30....40....50....60....70....80....90....100 Replicating ....10....20....30....40....50....60....70....80....90.... Volume replication failed - error 49174 Davids-MacBook:~ dnanian$Has anyone managed to get this to work, or have an idea what 49174 means?
Posted
by dnanian.
Last updated
.