macOS Mojave 使用SMB局域网共享作为TimeMachine时间机器的备份盘报错Disk does not support Time Machine backups. (error 45)

2023-05-16

参考网上的教程,使用“磁盘工具”创建一个“稀疏磁盘映像”在共享的文件夹中,然后使用命令设置为TimeMachine的目标盘。

sudo tmutil setdestination -a /Volumes/SMBTimeMachine

但是报错:

/Volumes/SMBTimeMachine: Disk does not support Time Machine backups. (error 45)
The backup destination could not be added.

Google很久,没有找到解决办法,最终在Apple帮助中的找到一个解决方案分享的方法,终于顺利解决:

1、使用命令行工具创建一个“稀疏捆绑磁盘映像”,不能是“磁盘工具”,我试过用“磁盘工具”依然不行,用命令行就没有问题。

sudo hdiutil create -size 260g -type SPARSEBUNDLE -nospotlight -volname "SMBTimeMachine" -fs "Case-sensitive Journaled HFS+" -verbose /Volumes/yanghl/HaiLong_Mac_TimeMachine.sparsebundle

“SMBTimeMachine”是新建的磁盘映像的标签,最后面跟的是磁盘映像文件保存的路径,“-size 260g”是磁盘映像的大小,这些参数可以修改。
命令运行输出参考:

正在初始化…
正在创建…
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: CSparseBundleDiskImage
CBSDBackingStore::createProbe directory, not a valid image file.
DIBackingStoreCreatorProbe: interface  0, score    -1000, CBSDBackingStore
DIBackingStoreCreatorProbe: interface  1, score     1000, CBundleBackingStore
DIBackingStoreCreatorProbe: interface  2, score        0, CRAMBackingStore
DIBackingStoreCreatorProbe: interface  3, score      100, CCarbonBackingStore
DIBackingStoreCreatorProbe: interface  5, score     -100, CCURLBackingStore
DIBackingStoreCreateWithCFURL: CBundleBackingStore
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      100, CCarbonBackingStore
DIBackingStoreCreatorProbe: interface  5, score     -100, CCURLBackingStore
DIBackingStoreCreateWithCFURL: CBSDBackingStore
DIBackingStoreCreateWithCFURL: creator returned 0
DIBackingStoreCreateWithCFURL: creator returned 0
DIDiskImageCreateWithCFURL: creator returned 0
DI_kextWaitQuiet: about to call IOServiceWaitQuiet...
DI_kextWaitQuiet: IOServiceWaitQuiet took 0.000007 seconds
正在格式化…
即将完成…
created: /Volumes/yanghl/HaiLong_Mac_TimeMachine.sparsebundle
hdiutil: create: returning 0

2、完成后,在Finder中找到磁盘映像文件,双击加载。然后再使用命令:

sudo tmutil setdestination -a /Volumes/SMBTimeMachine/

3、命令成功执行,没有任何输出。进入“系统设置”->“时间机器”,可以看到“ SMBTimeMachine”已被设置为目标磁盘。

这下就可以正常进行TimeMachine的后续操作了。

注意:目前发现这种方法必须一次备份完,如果备份中途中断,sparsebundle磁盘映像一旦卸载,就不能再加载了,因为没有备份完成,该文件就不完整,就无法再次加载

该文章同时发布在我的简书:https://www.jianshu.com/p/9f56587af82c

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

macOS Mojave 使用SMB局域网共享作为TimeMachine时间机器的备份盘报错Disk does not support Time Machine backups. (error 45) 的相关文章

  • Python并发学习

    Python并发 1 多进程 和多线程的方式类似 2 多线程 2种编写方式 2 1 submit方式2 2 map方式 3 异步 xff08 协程 xff09 3 1 调用方式3 1 1 在协程函数里去调用协程3 1 2 在非协程函数里去调
  • 动态规划思想《从入门到放弃》

    动态规划的定义 将原问题拆解成若干子问题 xff0c 同时保存子问题的答案 xff0c 使得每个子问题只求解一次 xff0c 最终获得原问题的答案 动态规划的一般流程 例子1 xff1a 一维空间的动态规划 题目 xff1a 求斐波那契数列
  • ubuntu如何输入中文

    右上角设置 gt 区域与语言 gt 输入源 gt 点击 43 号添加 中文 xff08 智能拼音 xff09
  • c++随机数

    计算机的运行是通过代码来进行的 xff0c 而代码的执行需要确定的数字 xff0c 即计算机的运行过程是一个确定的过程 xff0c 计算机的运行过程是一个确定的过程 xff0c 所以不可能产生一个真正有意义的数字 xff0c 即计算机只能产
  • Unicode的简单使用

    Unicode编码中包含了很多字符和形状 xff0c 如果想在再编码中使用 xff0c 可以参见文档 xff1a https www unicode org Public 14 0 0 charts CodeCharts pdf 使用方法
  • python爬虫---批量分享链接保存/百度api

    参考文章 xff1a 百度网盘开放平台 xff1a https pan baidu com union document entrance 第三方百度百度网盘库 xff08 baidupcsapi xff09 xff1a https git
  • N 皇后问题

    span class token macro property span class token directive keyword include span span class token string lt iostream gt s
  • fashion_mnist识别

    fashion mnist识别 使用relu6代替relu可以的到更好的识别率 xff08 循环数据集10次 xff0c 正确率 xff1a 75 85 xff09 categorical crossentropy xff08 交叉熵 xf
  • 动态规划之n人过桥问题

    题目 xff1a 在一个夜黑风高的晚上 xff0c 有n xff08 n lt 61 50 xff09 个小朋友在桥的这边 xff0c 现在他们需要过桥 xff0c 但是由于桥很窄 xff0c 每次只允许不大于两人通过 xff0c 他们只有
  • Linux挂载samba

    安装插件 span class token function apt span span class token function install span span class token parameter variable y spa
  • device lo not available because device is strictly unmanaged 修复

    执行以下命令修复 nmcli n off nmcli n on nmcli
  • Python操作Excel文件

    1 xlwt span class token keyword import span xlwt workbook span class token operator 61 span xlwt span class token punctu
  • Linux 扩容 / 根分区(LVM+非LVM)

    一 CentOS7 xff0c LVM根分区扩容步骤 xff1a 1 查看现有分区大小 span class token function df span TH 2 关机增加大小为30G 测试环境使用的Vmware Workstation
  • vscode 找不到 python 解析器

    环境 xff1a win10 xff0c vscode1 44 2 xff0c python3 6 8 问题描述 xff1a 由于先前安装过 python3 7 5 后面卸载了 xff0c 导致 vscode 一直显示前面版本的 pytho
  • win10 更新后指纹不能使用

    背景 xff1a 2021年7月12日更新windows后 xff0c 指纹使用后报错 抱歉 xff0c 出现问题 xff0c 关闭windows hello xff0c 然后尝试再次运行安装程序 解决方法 xff1a 使用官方推荐方法 h
  • 使用 node-exporter textfile 收集文件中的 metrics

    背景 xff1a 本来打算使用 process exporter 来监控 airflow celery worker 进程的 xff0c 但是当 airflow worker 并发数量达到 2000 时 xff0c process expo
  • 记一次 proxy 导致的端口访问失败

    背景 xff1a infra 交付了一批服务器 xff0c 部署好服务后 xff0c 发现所有服务器端口 curl 不可 环境 xff1a 服务器 IP 192 168 1 1 xff0c 内部网络 问题详情 xff1a 1 服务器部署了
  • Ubuntu16 永久修改 DNS

    环境 xff1a ubuntu16 04 操作步骤 xff1a 1 修改 etc resolv conf nameserver span class token number 114 114 span 114 114 nameserver
  • docker 学习(1)——docker安装

    1 安装一些必要的系统工具 xff1a sudo yum install y yum utils device mapper persistent data lvm2 2 添加软件源信息 xff1a sudo yum config mana
  • docker学习(2)——镜像加速2

    上篇文章介绍的加速使用中出现下载一半卡死的情况 xff0c 因此重新配置了daocloud加速 xff0c 当然也可以配置aliyun加速 https www daocloud io mirror 注册后 xff0c 点击火箭图标 xff0

随机推荐