3 votos

¿Por qué hdiutil falla en los enlaces simbólicos al crear una imagen de una copia de seguridad de Time Machine?

Estoy intentando crear una imagen de disco comprimida de una copia de seguridad de Time Machine (que está almacenada en un disco duro externo) en Yosemite.

hdiutil falla en el primer enlace simbólico que encuentra. Antes del fallo, también se produce un error de autenticación seguido de una solicitud de contraseña en la interfaz gráfica. Si deniego la autenticación, ocurre lo siguiente:

hdiutil create -srcfolder `tmutil latestbackup` -ov -verbose -o backup.dmg
2015-01-11 15:32:19.751 diskimages-helper[36885:258775] *useEffectiveIDs**** euid/egid changed to 501,20 (uid/gid is 501,20)
2015-01-11 15:32:19.751 diskimages-helper[36885:258775] *useRealIDs******** euid/egid changed to 501,20 (uid/gid is 501,20)
Initializing…
2015-01-11 15:32:19.754 diskimages-helper[36885:258775] *useEffectiveIDs**** euid/egid changed to 501,20 (uid/gid is 501,20)
2015-01-11 15:32:19.768 copy-helper[36886:258780] estimating /Volumes/Backup/Backups.backupdb/Name/2015-01-11-150344
2015-01-11 15:32:19.770 copy-helper[36886:258780]   uid 501 does not have ownership of /Volumes/Backup/Backups.backupdb/Name/2015-01-11-150344 - setting needAuth to YES
Scanning…
Error 80 (Authentication error).
/Volumes/Backup/Backups.backupdb/Name/2015-01-11-150344: Authentication error
Initializing…
2015-01-11 15:32:20.805 diskimages-helper[36885:258775] *useRealIDs******** euid/egid changed to 501,20 (uid/gid is 501,20)
Finishing…
2015-01-11 15:32:20.806 diskimages-helper[36885:258775] *useEffectiveIDs**** euid/egid changed to 501,20 (uid/gid is 501,20)
2015-01-11 15:32:25.924 hdiutil[36883:258790] couldn't authenticate for helper
2015-01-11 15:32:25.925 hdiutil[36883:258790] helper died
2015-01-11 15:32:25.943 hdiutil[36883:258790] framework server setup failed (-60006 - Operation canceled).
DIHLDiskImageCreate() returned -60006
(null)
hdiutil: create: returning -60006
hdiutil: create failed - Operation canceled

Si introduzco la contraseña, ocurre esto:

hdiutil create -srcfolder `tmutil latestbackup` -ov -verbose -o backup.dmg
2015-01-11 15:16:58.330 diskimages-helper[36754:253622] *useEffectiveIDs**** euid/egid changed to 501,20 (uid/gid is 501,20)
2015-01-11 15:16:58.331 diskimages-helper[36754:253622] *useRealIDs******** euid/egid changed to 501,20 (uid/gid is 501,20)
Initializing…
2015-01-11 15:16:58.334 diskimages-helper[36754:253622] *useEffectiveIDs**** euid/egid changed to 501,20 (uid/gid is 501,20)
2015-01-11 15:16:58.366 copy-helper[36757:253626] estimating /Volumes/Backup/Backups.backupdb/Name/2015-01-11-150344
2015-01-11 15:16:58.368 copy-helper[36757:253626]   uid 501 does not have ownership of /Volumes/Backup/Backups.backupdb/Name/2015-01-11-150344 - setting needAuth to YES
Scanning…
Error 80 (Authentication error).
/Volumes/Backup/Backups.backupdb/Name/2015-01-11-150344: Authentication error
Initializing…
2015-01-11 15:16:59.495 diskimages-helper[36754:253622] *useRealIDs******** euid/egid changed to 501,20 (uid/gid is 501,20)
Finishing…
2015-01-11 15:16:59.496 diskimages-helper[36754:253622] *useEffectiveIDs**** euid/egid changed to 501,20 (uid/gid is 501,20)
2015-01-11 15:17:05.121 diskimages-helper[36762:253777] *useEffectiveIDs**** euid/egid changed to 0,20 (uid/gid is 501,20)
2015-01-11 15:17:05.121 diskimages-helper[36762:253777] *useRealIDs******** euid/egid changed to 501,20 (uid/gid is 501,20)
Initializing…
2015-01-11 15:17:05.122 diskimages-helper[36762:253777] *useEffectiveIDs**** euid/egid changed to 0,20 (uid/gid is 501,20)
2015-01-11 15:17:05.179 copy-helper[36763:253781] estimating /Volumes/Backup/Backups.backupdb/Name/2015-01-11-150344
2015-01-11 15:19:47.733 diskimages-helper[36762:253777] *useRealIDs******** euid/egid changed to 501,20 (uid/gid is 501,20)
Creating…
DIDiskImageCreatorProbe: interface  1, score    -1000, CSparseBundleDiskImage
DIDiskImageCreatorProbe: interface  2, score    -1000, CSparseDiskImage
DIDiskImageCreatorProbe: interface  3, score    -1000, CRawDiskImage
DIDiskImageCreatorProbe: interface  7, score     1000, CWOUDIFDiskImage
DIDiskImageCreatorProbe: interface  9, score    -1000, CCFPlugInDiskImage
DIDiskImageCreateWithCFURL: CWOUDIFDiskImage
DIFileEncodingCreatorProbe: interface  2, score    -1000, CEncryptedEncoding
DIBackingStoreCreatorProbe: interface  0, score      100, CBSDBackingStore
DIBackingStoreCreatorProbe: interface  1, score    -1000, CBundleBackingStore
DIBackingStoreCreatorProbe: interface  2, score        0, CRAMBackingStore
DIBackingStoreCreatorProbe: interface  3, score      300, CCarbonBackingStore
DIBackingStoreCreatorProbe: interface  5, score     -100, CCURLBackingStore
DIBackingStoreCreateWithCFURL: CCarbonBackingStore
DIBackingStoreCreateWithCFURL: creator returned 0
CUDIFFileAccess::createWithCFURL: kUDIFFileWithFooter
warning: no checksum present
DIDiskImageCreateWithCFURL: creator returned 0
DI_kextWaitQuiet: about to call IOServiceWaitQuiet...
DI_kextWaitQuiet: IOServiceWaitQuiet took 0.000005 seconds
DI_kextWaitQuiet: about to call IOServiceWaitQuiet...
DI_kextWaitQuiet: IOServiceWaitQuiet took 0.000024 seconds
2015-01-11 15:19:56.094 diskimages-helper[36762:254942] DIHelperHDID serveImage: attaching drive
{
    autodiskmount = 1;
    "hdiagent-drive-identifier" = "9AA3AC77-0E29-47CB-BE38-92C128E33893";
    "skip-auto-fsck-for-system-images" = 1;
    "system-image" = 1;
    "unmount-timeout" = 0;
}
2015-01-11 15:19:56.096 diskimages-helper[36762:254942] DIHelperHDID serveImage: connecting to myDrive 0x540F
2015-01-11 15:19:56.096 diskimages-helper[36762:254942] DIHelperHDID serveImage: register _readBuffer 0x104109000
2015-01-11 15:19:56.096 diskimages-helper[36762:254942] DIHelperHDID serveImage: activating drive port 21011
2015-01-11 15:19:56.097 diskimages-helper[36762:254942] DIHelperHDID serveImage: set cache enabled=TRUE returned FAILURE.
2015-01-11 15:19:56.424 diskimages-helper[36762:254942] DIHelperHDID serveImage: set on IO thread=TRUE returned SUCCESS.
2015-01-11 15:19:56.424 diskimages-helper[36762:254942] -processKernelRequest: will sleep received
2015-01-11 15:19:57.062 diskimages-helper[36762:253777] _mountDevEntries: disk3s2 aborting mountpoint postflight because disk image has no band size specified.
2015-01-11 15:19:57.066 diskimages-helper[36762:253777] *useEffectiveIDs**** euid/egid changed to 0,20 (uid/gid is 501,20)
2015-01-11 15:19:57.084 diskimages-helper[36762:253777] *useRealIDs******** euid/egid changed to 501,20 (uid/gid is 501,20)
2015-01-11 15:19:58.922 diskimages-helper[36762:254942] -processKernelRequest: flush received
2015-01-11 15:19:59.124 diskimages-helper[36762:254942] -processKernelRequest: flush received
2015-01-11 15:19:59.125 diskimages-helper[36762:254942] -processKernelRequest: flush received
2015-01-11 15:19:59.125 diskimages-helper[36762:254942] -processKernelRequest: flush received
Copying…
2015-01-11 15:19:59.174 diskimages-helper[36762:253777] *useEffectiveIDs**** euid/egid changed to 0,20 (uid/gid is 501,20)
2015-01-11 15:19:59.346 copy-helper[36791:255052] copying /Volumes/Backup/Backups.backupdb/Name/2015-01-11-150344 to /Volumes/2015-01-11-150344
2015-01-11 15:19:59.347 copy-helper[36791:255052] About to copy "/Volumes/Backup/Backups.backupdb/Name/2015-01-11-150344".
2015-01-11 15:19:59.597 copy-helper[36791:255052] copy error (canceling): /Volumes/2015-01-11-150344/Macintosh HD/Applications/Adium.app/Contents/CodeResources: Operation not supported
2015-01-11 15:19:59.597 copy-helper[36791:255052] Copy finished with error 45 (Operation not supported).
Error 45 (Operation not supported).
could not access /Volumes/2015-01-11-150344/Macintosh HD/Applications/Adium.app/Contents/CodeResources - Operation not supported
Finishing…
2015-01-11 15:20:01.105 diskimages-helper[36762:254942] -processKernelRequest: flush received
2015-01-11 15:20:01.169 diskimages-helper[36762:253777] *useEffectiveIDs**** euid/egid changed to 0,20 (uid/gid is 501,20)
DIHLDiskImageCreate() returned 45
hdiutil: create: returning 45
hdiutil: create failed - Operation not supported

CodeResources es el primer enlace simbólico que encuentra el proceso.

ls -lre /Volumes/Backup/Backups.backupdb/Name/Latest/Macintosh\ HD/Applications/Adium.app/Contents/CodeResources 
lrwxr-xr-x+ 1 adam  staff  28 20 Nov  2010 /Volumes/Backup/Backups.backupdb/Name/Latest/Macintosh HD/Applications/Adium.app/Contents/CodeResources -> _CodeSignature/CodeResources
0: group:everyone deny write,delete,append,writeattr,writeextattr,chown

Encontré el mismo problema discutido aquí pero parece que nunca llegan al fondo de cuál es el problema con el enlace simbólico que hace que el copy-helper falle.

¿Por qué hdiutil para los permisos de propiedad, y por qué falla en este enlace simbólico?

2voto

arcsump Puntos 161

Me encontré con este mismo problema intentando lo mismo en Mojave. Parece que las ACL en los enlaces simbólicos no son compatibles cuando se trabaja dentro de los confines de las imágenes de disco. Me encontré con esta solución sin embargo:

  1. Cree una imagen dispersa en blanco que sea lo suficientemente grande como para contener la copia de seguridad.

  2. ditto el directorio de la copia de seguridad en la imagen dispersa montada. Hará la misma queja sobre la operación no soportada en esos enlaces simbólicos, pero todavía lo copiará y tratará ese error como una simple advertencia y continuará.

  3. Cuando haya terminado, desmonte la imagen dispersa y utilice la Utilidad de Discos para convertirla en una imagen comprimida.

AppleAyuda.com

AppleAyuda es una comunidad de usuarios de los productos de Apple en la que puedes resolver tus problemas y dudas.
Puedes consultar las preguntas de otros usuarios, hacer tus propias preguntas o resolver las de los demás.

Powered by:

X