如何让 TimeMachine 在 Netgear ReadyShare 移动硬盘上工作?

后来购买了Netgear WNDR 4300,突然发现这个路由器本身就支持 Time Machine 时光机备份。但是,无论是在3700上还是在4300上面,根本的问题在于:HFS+这种文件系统不能突然断电,如果突然断电了以前的备份基本就没有用了,严重的硬盘打不开,轻的原来所有备份失效。因此,如果想让 Time Machine 一直有效,一个基本的前提条件就是移动硬盘的持续供电!所以,这个方案基本上就不要折腾了。

看到 iued 同学的文章《网件WNDR4300 设置Time Machine》提到的小米路由器,基本上就更不靠谱了:原生不支持 HFS+。


 

在 TimeMachine 中,默认情况下不会出现网络存储,需要解决的就是如何能够让 Time machine 中出现,从而实现 TimeMachine 的自动备份。

第一个阶段,找到一篇非常详细的文章,《HOW TO GET NETGEAR READYSHARE TO WORK WITH TIME MACHINE AND MOUNTAIN LION (MAVERICKS TOO!)》,作者写的非常详细,有详细的步骤与配图。可惜由于在其中一个关键步骤,制作 sparse bundle disk image,由于操作失误,一直不能实现,放弃了。

readyshare_finalresult

第二个阶段,还是没有放弃啊,一个偶然的机会发现,用 NAS 备份 Time Machine 的文章,《用普通NAS代替苹果Time Machine 功能实现MAC的时间机器功能》、《在Mac上使用网络驱动器做TimeMachine备份》,找到了原始介绍非常详细的一篇文章《Time Machine on a network drive》。根据文章,实验了一圈,最后还是失败了,但是,我明白 sparse bundle disk image 的制作可以通过其他的方式实现,给了我启发。

第三个阶段,我又打开第一阶段的那篇文章,看过之后,我大概明白了,根本的原理是TimeMachine是建立在苹果独有的协议之上的,那么就需要利用苹果的 Sparse bundle disk image 构建一个虚拟的存储,Time Machine 就可以顺利地在上面工作。几个关键步骤如下:

  1. 格式化移动硬盘,我理解这个格式没有太多要求,只要支持 Netgear 的格式就行。我用的是苹果的 HFS+J 格式,我测试了一下,通过 Win7也可以访问。
  2. 关键的步骤:创建支持 TimeMachine 的映像,也就是 Sparse bundle disk image,把它存在本地,或者直接存储在你存储设备Readyshare 上,具体要求如下:
    Name: Whatever you prefer. I call mine “TimeCapsule” for consistency.
    Size: Whatever fits best on your system. I use the “Custom” option and make it close to my full drive space.
    Format: Mac OSX Extended (Journaled)
    Encryption: Whatever you prefer
    Partitions: Single Partition – Apple Partition Map
    Image Format: sparse bundle disk image
  3. 拷贝到 Readyshare 上,然后双击这个 image 文件,大概几分钟,奇迹出现了,你会发现在你的Devices 中出现了“TimeCapsule”。到 /Volume 中查看一下是不是出现了,如果是,你这一步就成功了。

  4. 执行一个 TimeMachine 目标位置,sudo tmutil setdestination /Volumes/TimeCapsule ,输入Mac 的管理员密码,接下来打开 TimeMachine 就可以正常用了。

 

衷心感谢作者的奉献精深,敬佩、感恩!

作者原文如下:

HOW TO GET NETGEAR READYSHARE TO WORK WITH TIME MACHINE AND MOUNTAIN LION (MAVERICKS TOO!)

ReadyShare Final Result

Note: I just upgraded to OSX Mavericks (10.9) and the ReadyShare drive is still readable and functional in Time Machine. You shouldn’t run into any trouble if you decide to upgrade.

Over the weekend I purchased a Netgear DGND3700v2 DSL Modem / Router (N600) and discovered that there was a great feature called ReadyShare. This allowed you to plug a USB drive into it and have it shared across all your computers in the network (music, photos, backup, etc.) However, their documentation to get it to work with OSX’s Time Machine backup tool wasn’t working. After some digging and tweaking, I managed to make it work.

TL;DR (For those of you that want the quick fix);

Use Fat32 partitions for all your partitions since the router will be able to read them. From there, create a sparse bundled disc image on the partition for your Time Machine backup. Mount it, and then set that to be your Time Machine backup source.

The Setup

I’m running a MacBookPro with Mountain Lion (OSX 10.8.3). I have a Netgear DGND3700v2 DSL Modem / Router (N600) with firmware version 1.1.00.12_1.00.12NA and a Western Digital Elements 1.5 TB Drive. Getting things to work for you may vary slightly based on drive/hardware, but I this approach should work.

Formatting the Drive

The first step is to format the drive. According to the documentation, the router is supposed to be able to support OSX Extented (Journaled) partitions, but I could never get them to show up. According to some various discussion threads, the AFP protocol changed somewhere in Lion and there’s still no support since Netgear does some custom interaction with the shares. However, ReadyShare DOES support Fat32 and we can make this work on OSX.

The first step is to plug in your USB drive and backup any data you may want to keep on your USB drive. We have to repartition the drive, and you’ll lose everything. Next launch the Disk Utility tool, select the USB drive, and click the “Partition” tab.

Change the drop down from “Current” to whatever partition scheme you want (I’m using two). Change the drive formats to be “MS-DOS (Fat32)” and verify that they are being created using the “Master Boot Record” scheme (under options).

One other important note, and this comes from Fernando who commented below:

One very important thing I did not see in the instructions is to make sure the backup image has the option to “Ignore ownership on this volume” set to OFF or unchecked. Apple warns that using Time Machine on a disk with the option turned on can result in the backups missing some user settings. My guess is that the average person is likely to go on without noticing this until it is too late. (!!)

ReadyShare Drive Partition Setup

ReadyShare Drive Partition Options

Once your options are set. Click the “Apply” button to repartition the drive. This make take a little time based on the size of the drive.

Creating the Time Machine Image

Time Machine requires an OSX Extended (Journaled) partition in order to function properly. While we don’t have a drive in this format, I discovered (immense HT to Frank over in the Netgear forums) that we can create a disk image in this format and have Time Machine backup on to that.

Close the Disk Utility program and open it back up again. Click the “New Image” icon. In the window that opens up to specify where to save the image to, make sure you specify the proper partition again. You can name the image whatever you want. In addition, we want our disk image to have the following settings:

  • Name: Whatever you prefer. I call mine “TimeMachine” for consistency.
  • Size: Whatever fits best on your system. I use the “Custom” option and make it close to my full drive space.
  • Format: Mac OSX Extended (Journaled)
  • Encryption: Whatever you prefer
  • Partitions: Single Partition – Apple Partition Map
  • Image Format: sparse bundle disk image

Ready Share Disk Image Settings

Once all the settings are in place, click the “Create” button and wait for the process to finish.

Now you can eject your drive and plug it into the router to finish off the process.

Verify ReadyShare Drives

After plugging in the drive to your router. Launch the router admin tool (http://routerlogin.net), select the “Advanced” tab, expand the “USB Storage” section, and click the “Advanced Settings” link.

Ready Share USB Settings

From here we want to verify that we can see both of our drives listed. If not, you can use the “Create Network Folder” option and add the necessary folders.

Ready Share Settings

Our final step is to map up Time Machine.

Mapping Time Machine Backup Location

Now that we have our drives available in ReadyShare, we need to connect them to the server and setup our mappings. From Finder, select Go -> Connect to Server and enter the address smb://readyshare and click “Connect”.  After connecting, select the drive your Time Machine image is on (or both in my case since I’m sharing music on my WinBackup drive) and click connect.

Ready Share Connect

By default, your Time Machine image will not have been mounted. We need to do this. Open up the drive that your Time Machine partition is on and double click on the .sparsebundle file that is there. After a minute you will see that your image has been mounted

Ready Share Mount Image

Finally, we need to select this image for our Time Machine backups. We do this through the Terminal window. Open up a new terminal, and enter the following commands:

1
2
cd /Volumes
ls

If all is still working smoothly, you’ll see your Time Machine image listed

Ready Share Terminal List

Now enter the command (we need to do this as room) to do our mapping

1
sudo tmutil setdestination /Volumes/[Your Image Name]

Note: If you’re using OSX 10.7 (Lion) the command appears to be:

1
sudo tmutil setdestination -p /Volumes/[Your Image Name]

Note: If you’re using OSX 10.6 (Snow Leopard) and below the process seems to be a lot trickier. The best documentation I’ve been able to find to date is this one. Please let me know if you find better.

If there’s no errors, you have success! You can even verify things in Time Machine itself.

ReadyShare Terminal Mapping

ReadyShare Time Machine Settings

And you’re all set! Now you can run your Time Machine backups and leave your drive on the network. I find this particularly helpful since sometimes I’m working upstairs or down in my office, and don’t want to drag the USB drive with me. Plus I can share the MP3 collection across my virtual machines and other Windows machines in the house.

ReadyShare Final Result

Final Notes

You’ll want to do make sure that your drives/images are remounted upon login to make sure Time Machine continues to function. To do this, read this followup post, since it was a little more involved than I initially thought.

I’ve been told that you can use EXT 2 formatted drives and they play really nice with the router, but you’re going to need something like MacFUSE installed to properly handle the drive.

You could potentially use your Windows partitions in NTFS by reformatting them again on a Windows machine, but I’m not going to risk it for the time being. 8^D

Hope this helps!

微信技术架构概况

微信之父张小龙

 

微信的技术设计上有很多微创新,看起来都很小,但是对于系统的稳定性、用户体验及开发敏捷都具有重要作用。前轻后重由于客户端升级不便,从技术设计上尽量利用后端的设计来减少依赖客户端升级的方法。如某个版本新增了群聊功能,按常规思路,需要所有客户端升级才能全部打通。微信采用服务器兼容的方法,在老客户端不升级情况下让其增加群聊的功能,通过在服务端将群聊协议转换成之前旧版兼容的协议返回给老的客户端。

via Tim[后端技术].

三星Galaxy Tab 7 P1000欧版刷机 ICS 4.0 实战记录

2012年7月19日

摘要:刷机断断续续持续了接近两天时间,第二天下午终于刷机成功。
参考了几个文档:
遇到的困惑与解决:
  1. 根据p1000_shuaji文档,看这个机器是欧版,确定欧版能刷;
  2. 接着根据文档下载了odin3与驱动以及kies软件,kies装不上;
  3. 目的是4.0系统,分别找了几个国内论坛上的cm9包,下载;
  4. 结果,系统包中的文件根本不是第三个文档中所提到的odin3刷机需要的,非常迷惑。思考:难道,这是一个卡刷包,从文档中只言片语中看到卡刷一词。
  5. 寻找了很长时间,无意中发现了“http://bbs.dospy.com/thread-14674947-1-407-1.html”这个文档,这个文档中有卡刷有线刷,OK,按照这个文档来操作一遍。
  6. 文档中提到进入Recovery,进行了N个操作,我发现我的手机上根本没有这些选项,先不管,先向下走再说。
  7. 刷入了2.3.3底包成功,再往下走要刷入Overcome 7 series v4.1.0,失败了。原因signature verifation failed,网上找不到相关解释。
  8. 这时候猜测,唯一出问题的地方是recovery地方不对,反复找recovery软件的升级,未果。
  9. 猜测,下载了3个文件,只用了2个,另外一个Overcome内核是干什么的?干脆线刷一下试试,看看有什么效果。
  10. odin3线刷了一把Overcome核心,启动后,一个女人讲英语,基本上听不懂,很慌乱,关掉电源,重启!神奇的事情出现了,Recovery版本出现了文档中的那些功能,牛逼!(第二天,看到一篇文章, http://bbs.mumayi.com/thread-90853-1-1.html,才搞明白,原来Overcome内核就是这个Recovery版本,女人说话是正常程序)。
  11. 此时,再刷Overcome 7 series v4.1.0,倒是成功了,启动非常慢,重启,但是Recovery版本又回去了。又没办法向下进行了。
  12. 此时,还不知道什么是Overcome,什么是cm9,等等。
  13. 再刷Overcome内核,再刷Overcome 7 V4.1.0,启动等了半个小时起不来。下班。。。
  14. 第一天,走的时候,搞明白了cm是一个发行android版本的组织,Overcome也是这样的,Overcome 7 V4.1.0就是一个ROM。
  15. 这时候想,难道Overcome 7 V4.1.0就是4.0系统?刷了试试吧。
  16. 再刷Overcome核心,刷出Recovery版本。再刷,Overcome 7 V4.1.0,还是很长时间起不来。根据文章提示,重新下载了Overcome 7 V4.1.0的另外一个包:DaBao_Overcome…zip。
  17. 成功刷入了Dabao,可以启动了,启动后发现是2.3.6版本固件。
  18. 此时,根据要求把下载的三个包都刷了了,没有一个对的,中间还有一个是反复重启,有的一直报错。
  19. 此时判断,4.0包不对,于是到处找4.0的包,此时我都快放弃了。找到一篇老外写的文档,看起来比较靠谱,但是包下载不下来。重新搜索这个包aokp_p1_build-40.zip,在国内找到了,下载一下试试吧。
  20. 试了一下,OK,刷机成功!
小结:
我使用的刷机方法:
1、下载安装三星USB驱动程序
http://115.com/file/dpfu3lxk
——————————————————————————————————————
2、进入官方网站下载ROM文件
http://www.teamovercome.n et/p1000/?page_id=21
点击“Download”下载以下3个文件
GB-Stock-Safe-v5.zip
Overcome_7_Series_v4.1.0_Wipe.zip或Overcome_7_Series_v4.1.0_NoWipe.zip(之前是Overcome的,可用这个)(官方的这个启动时间特别长,我没有实验成功,我用的作者自己做的包DaBao_Overcome_v4.1.0HH_Wipe.zip (http://115.com/file/e7bfsbzm)(http://115.com/file/anmw7h0g#DaBao_OCMH_v4.1.0HH_NoWipe.zip))
Overcome_Kernel_v4.0.0.tar
——————————————————————————————————————
3、格式化机器
①关机状态下按住音量增大键+电源开机(出现开机LOGO后松开电源键即可,音量增大键不松手直到成功进入Recovery恢复模式)
②此模式下按音量大小为选择选项,按触屏的搜索键(放大镜)确认
③wipe menu               清除菜单
*wipe data/factory reset:清除用户数据并恢复出厂设置(刷机前必须执行的选项)
*wipe cache:             清除系统缓存(刷机前执行)(系统出问题也可尝试此选项,一般能够解决)
*wipe dalvik cache:      清空虚拟机缓存(可以解决一些程序FC的问题)
*wipe voltage settings:  清空电压控制设置数据
*wipe battery stats:     清空电池调试记录数据(刷机前做下这个,会比较好,感觉自己电量有问题的机油也可以试试)
④storage menu: 储存菜单
*format /cache: 格式化cache(刷机前最好执行一下)
*format /data:  格式化data(刷机前最好执行一下)
*format /dbdata:格式化dbdata(刷机前最好执行一下)
*format /sdcard:格式化外置存储卡(执行此项你会后悔的)
*format /emmc:  格式化内置存储卡(刷机前最好执行一下)
*format /system:格式化system(刷机前最好执行一下)
——————————————————————————————————————
4、用WinRAR解压GB-Stock-Safe-v5.zip(2.3.3底包)
——————————————————————————————————————
5、关机状态下按住音量减小键+电源开机键进入“挖煤模式”,通过USB数据线连接P1000到PC
——————————————————————————————————————
6、刷入2.3.3底包
①打开刷机工具“Odin3_v1.85.exe”
选中Re-Partition(即重新分区),PIT选刚刚解压得到的gt-p1000_mr.pit,点击“Start”开始对手机重新分区,成功后手机自动重启,当手机画面再次进入到SAMSUNG的LOGO界面时用手按住电源键10秒使手机强制关机
②再次进入到“挖煤模式”,打开刷机工具“Odin3_v1.85.exe”,去掉Re-Partition(即重新分区)的勾选。
PDA选GB_Stock_Safe_v5.tar,PHONE选JMF Modem文件夹里的modem.bin(适于欧版、港版、中东非洲版大洋洲版),CSC不管。点START(开始)。
刷机完成后进入到选择语言界面时,按电源键关机。
7、刷入DaBao_Overcome_v4.1.0HH_Wipe.zip(原版是Overcome_7_Series_v4.1.0)
①取出SD卡,把DaBao_Overcome_v4.1.0HH_Wipe.zip拷进去,完毕后插入卡到手机
②按住音量减小键+电源开机键进入“Recovery模式”
  选择-wipe menu 确定
  选择-wipe data/factory reset 确定
  选择-wipe cache 确定
  选择-install menu 确定
  选择-choose zip from external sdcard 确定
  选择-Overcome_7_Series_v4.1.0_Wipe.zip 确定
  选择-Yes-Install Overcome_7_Series_v4.1.0_Wipe.zip 确定
  选择-power off 关机
  卡刷简要说明:
1)将rom文件考入sd卡根目录,有外置卡的最好也考一份到其根目录去。
2)进入recovery ,如果以前用的是overcome版本,请选择nowipe版卡刷,如果是其他版本,请选择wipe版,双wipe后卡刷。运行稳定,gps秒定,内含switchpro付费版等。很不错的一套系统。
8、最为关键的一部其实很简单,下载正确的4.0包,重复7步骤。aokp_p1_build-40.zip,http://115.com/file/benta9cv