Jason H. Davis

Icon

This is me.

Network Drive backup with Time Machine (Backup to NTFS / Windows XP and Vista)

EDIT 11/9/2010: Please see this excellent comment that clarifies issues that occur in more recent versions of OS X. For the record, I no longer use this setup, but am happy this article is still finding relevance through the contributions of others.

I wrestled with this all day long. Hopefully this post will help people in my position.

Setup: I have a Windows Desktop and a Mac Laptop. There is plenty of space on the desktop so I do not own an external hard drive. I want to backup my laptop wirelessly using Time machine to a remote drive on my XP machine.

What I thought: I would need to have a separate partition formated HFS+ to use Time Machine. Most of the day was spent finding out that HFS+ and NTFS (Window’s File System) can not exist on the same drive. Don’t ask me why.

Why I thought this: Previously, when attempting to backup to a network drive, Time Machine gave me “The Backup Disk Image could not be mounted.” I automatically assumed Time Machine could not write to Windows.

Why I was wrong: Time Machine creates a “.Sparcebundle” and saves files there. Apparently this can be saved on NTFS. The problem I had was creating this Sparce bundle in the first place.

My Solution: Thanks to this site I was able to solve the issue. Here’s what I did.

  1. Select the location for the remote backup. I chose the partition I created TimeMachine (T:).
  2. If you have not enabled “Unsupported Network Volumes,” follow this tutorial.
  3. Mount your network drive and select it in Time Machine.
  4. Start Time Machine (Menu button > Backup Now) and watch your remote location.
  5. A file is created with the structure ComputerName_MACAddress.tmp.sparcebundle. Copy this file name.
  6. On your Mac, open Disk Utility. Click “New Image.” Use the following settings:
  7. Save As ComputerName_MACAddress
  8. Volume name can be whatever you want.
    ***EDIT: Custom volume size must be the last value set***
  9. Change partition to “No Partition Map”
  10. Change Image Format to “Sparce Bundle Disk Image”
  11. Custom Volume size. Set the maximum you want to use on your remote location. Don’t worry if you don’t have the room on your Mac.
  12. Save. Move this file to your remote location.
  13. Tell Time Machine to backup again and it should be working.

Good luck! If you found this article helpful, visit my sponsors.

Hopefully the rest of my computer upgrade won’t warrant a blog post!

Long overdue edit (1/30/2010): Thanks to everyone who has commented! It’s so great this article is being found and is helpful. If you’re trying to get this to work, there are some very helpful comments. In particular, Chris points out these three points:

  1. The MAC address has to be the ETHERNET adapter’s MAC Address and “not” the Airport’s MAC address.
  2. The final file you copy will be in this format: ComputerName_MACAddress.sparcebundle
  3. .sparcebundle is added to the file name by the Disk Utility, not you and does not need to be removed.”

Also, my desktop computer has been busted for over a year now. I’ve been running for luck not backing up my macbook and using it as my one and only computer. Sorry I didn’t do my job in keeping up with this post.

Thanks for reading and good luck!

Jason

ps: If you found this helpful, please visit a sponsor.

Category: Tutorials

Tagged: , , , ,

71 Responses

  1. carl says:

    I tried your method above and ran into a snag.

    My Macbook pro has a 100GB drive in it. I created a 150GB NTFS partition on my external drive and sharing it through Windows XP.

    The part I have snag with is step 9. You mention that you don’t need the space to create the 150 GB partition. I found when I was creating the disk image, that it was actually trying to create that huge file, which caused a problem because I don’t have that much space on my MBP (let alone FREE space). I thought I would help it, by creating the disk image on the shared drive, but I got an error there also.

    Perhaps the one thing that is different in my setup is that I am using an external drive, shared through Windows. Perhaps I can’t write to the drive (easy enough to confirm).

    Any other thoughts? All the other steps went fine (as far as I can tell).

    thank you

  2. Jason H. says:

    Hi Carl,

    It looks like the steps are out of order. Change the image format to “Sparce Bundle Disk Image” and the “No Partition Map” setting before you change the custom volume size.

    I appreciate the comment!

  3. Russell says:

    Jason,

    This tutorial was great, thanks a bunch. Can’t tell you how close I was to giving up on this.

    Thanks again

  4. paul says:

    it totally worked. thanks for everything

  5. db says:

    It worked for me….tricky part is to follow the instructions to the letter and to catch the file name (you must create it locally first, 200GB is fine, and it does not need the ._ prefix as that will be added by OSX for you). I am still trying to understand what the temporary drive icons are on the desktop of my mac that get created during the backup – I think only one of these is actually needed). But it seems to be working….

  6. Mark says:

    It worked for me!
    This has been plaguing me for ages, I nealrly bought attached storage to sort it out rather than using my NAS.

    Well impressed, thanks very very much

  7. Bill_Boonie says:

    Hi Jason,
    I’m having a problem with step 4 “Start Time Machine (Menu button > Backup Now) and watch your remote location.” Not sure where to watch the location to find the “ComputerName_MACAddress.tmp.sparcebundle.” file name.

    Please could you assist?

  8. Steve says:

    Thank You soooo much for this. I found the sparse bundle article quite interesting. This also explain why when you delete files from a windows vm on a mac, the VM gets no smaller, DUH.

    Thank Again

    -Steve

  9. Jeff says:

    Thanks for the info. I had to struggle with these steps a bit before it worked for me. I have a Mac Mini on my intranet, and I wanted its Time Machine to back up onto a WIndows NTFS drive I have on my fileserver: Z:\Backup.

    * For step 5), the “ComputerName_MACAddress.sparsebundle” file only appears on the network drive for a short time while Time Machine is attempting to perform a backup (which will fail as expected), perhaps 5-10 seconds. If you are not looking, you will miss this! If you miss it, have Time Machine try again to make a backup and it will re-attempt (and re-fail 5-10 seconds later,once again deleting the file). Copy the filename quickly during this interval!

    * Like Carl, I was not able to create an image file size of 100GB initially. When I attempted this custom size, Disk Utility wouldn’t let me, and downsized to 83.5GB which was how much free space I had left on my Mac Mini HD. I tried saving the file to my network drive, but there was an error doing this. I was able to work around both of these issues and successfully create a 100GB image by playing with the order in which I entered the fields in Disk Utility. It’s very important to follow the exact order of steps here, paying attention to the trick I used to fool Disk Utility in steps B) and J):

    A) Click “New Image” button
    B) “Where” dropdown: select the actual computer, rather than its hard drive. So in my case, I selected “Mac Mini” rather than “Macintosh HD”.
    C) “Save As” field, paste in your special filename (minus the .tmp.sparsebundle part). For example, my Save As: field reads: Mac Mini_0016cbfd1258
    D) “Volume Name”: Enter any arbitrary name — I used “MacBackupImage” here.
    E) “Volume Size”: Do Custom. Enter your desired value here. This can be as large as you’d like — larger than your Mac’s local HD (but obviously must fit on the network drive you’re going to be using for backups!)
    F) “Volume Format”, I left this to default Mac OS Extended (JOurnaled) setting
    G) “Encryption”, I left this to default None
    H) “Partitions”: Changed to “No Partition Map” per step 9)
    I) “Image FOrmat”: Changed to “sparse bundle disk image” per step 10)
    J) Change “Where” to your hard disk; here, I use “Macintosh HD”

    Now hit ‘Create’, and close Disk Utility when it’s done. Go to your hard drive, and you should see two new files. You want to copy the one that DOES NOT end in “.tmp.sparsebundle” to your network share drive per Step 12).

    Then, Step 13) works, and Time Machine is duped into working as well. Joy!

    -Jeff

  10. Myggan says:

    Excellent man… I confirm the thoughts of Russell…

    Simply excelent!

    Thanx man!

  11. chaime says:

    It worked. I think it worked. Oh my god it’s working! It $%& worked! Thank you!!!

  12. chaime says:

    oh no I spoke too soon! it stopped after several hundred megabytes and now it can’t mount the image again! any ideas?

  13. Sean says:

    Great info! Time Machine is backing up to my Windows Media Center PC right now via wireless N connection! =)

  14. Follow these instructions but don’t bother with trying to grab the file name. Just get your computer name from the Sharing Preferences Pane and your MAC address from Network and put these together.

  15. Nate says:

    Jeff:
    I am still having trouble finding where on my network drive I look to see that file name? I have the dlink DNS-323 NAS. Its already mounted as a shared drive on my Mac and has been for some time. I transfer files back and forth all the time. However time machine still won’t work. I followed your instructions except for the “watch for and copy the file name”. Can’t find it. I tried to back door this by manually retrieving my computers name and MAC address and forcing them into the file name you have in the instructions. I then follow the disk utility and input everything including this file name I had to manually create. It appears to work, even creating a larger size image than my HD truly has, I then copied the new file to my NAS and I select the NAS (which does show up) in time machine, but I still get an error message “Time Machine Error — The backup disk image could not be created”, I appreciate any help you can provide. I know I must be missing something.

    Thanks,
    Nate

  16. BenLucid says:

    Thank you so much, I’ve been fighting with this for a few hours now, and your steps really made it simple…. that said it hasn’t finished backing up yet, so fingers crossed XX

  17. Chris says:

    After I create Disk Image I only have 4 options under Image Format read only, compressed, read/write, and DVD/CD Master? There s no Sparse Bundle Disk Image?

  18. ahem says:

    IT WORKED!!!!! THANKS SO MUCH!

    Yes, it worked after I removed the .tmp.sparsebundle part, that’s all it take!

  19. davegod75 says:

    It works!!!!

  20. Calvin says:

    It worked great! Thank you!

  21. Cam says:

    Champ – good work big fella!

    Works a treat.

  22. Awesome instructions. I’m not scouring over every detail of the comments, but for those who might not be clear, when I created my 300 GB sparsebundle in Disk Utility, it took up 145 MB (megabytes) on my desktop. If you are having an available disk space issue, then you might have chosen the wrong format and/or settings for your disk image.

  23. [...] paso a paso lo he sacado de aquí mismo, el post en si y uno de los comentarios que le [...]

  24. ahem says:

    Hi guys,

    Just had it working for snow leopard.

    Apple stripped out the macaddress off the time machine container when they try to create the mac.tmp.sparsebundle file.

    You have to manually find the mac address of your ETHERNET adapter.

    so mine became:

    ahem’s macbook pro_002332de60e0

    Strip the .tmp.sparsebundle extension out from the image and it will work ok.

    cheers

  25. Dan LaSota says:

    Any other successful OS X 10.6 users out there?

  26. Rashid says:

    Going to try this tonight. Anybody actually try restoring from a time machine backup created on a network drive using this method? It’s great to be able to backup but want to make sure you can use time machine to restore from that backup.

  27. Svet says:

    Make sure you dicsonnect the image from Disk Image before you copy it to the remote location.

  28. Andy says:

    Work perfectly on snow leopard!!! thanks guyz!!!

  29. Chris Derbidge says:

    Excellent! I am on Snow Leopard and it took me a little while longer to figure it out because of a few items that require better explanation:

    1. The MAC address has to be the ETHERNET adapter’s MAC Address and “not” the Airport’s MAC address.
    2. The final file you copy will be in this format: ComputerName_MACAddress.sparcebundle NOTE: .sparcebundle is added to the file name by the Disk Utility, not you and does not need to be removed.

    I am backing up with my Airport 802.11n connection and not my ETHERNET adapters connection. But it still requires the ETHERNET’s MAC Address.

    P.S. Thanks Jason, you are the MAN!

  30. Tom says:

    Hi,

    I have followed the tutorial to the letter and everything seemed to be working fine – but when I try to do the backup I still get the ‘unable to mount’ problem. I have a 500GB HDD with 2 partitions, 1 of which is the one I want to use for a timemachine backup. Might the fact that I have multiple partitions on the same HDD be my problem? I am using XP 64bit on the computer.

    Any help with this problem would be very appreciated.

    Thanks v much!

  31. Rowan says:

    How are you guys going with speed backing up over wireless links. G or N whatever? Just a general question.

    Thanks

  32. Rowan says:

    got it going on N network cards and it works great.

  33. Matt says:

    You bloody ripper!

    Works a treat… backing up now to my Windows PC!

    As Chris above says:

    “1. The MAC address has to be the ETHERNET adapter’s MAC Address and “not” the Airport’s MAC address.

    2. The final file you copy will be in this format: ComputerName_MACAddress.sparcebundle

    NOTE: .sparcebundle is added to the file name by the Disk Utility, not you and does not need to be removed.”

    These two steps are very important to note, although I removed the “.sparsebundle” and it seemed to work fine.

  34. Todd says:

    This was working perfectly for me, but now I have a problem. Every time that Time Machine starts a backup, it completely locks up the Windows machine, and I have to hold the power button to shut it off. Anyone else experiencing this?

  35. DJ Doe says:

    Thanks a million!! Without this information i would have given up today… you are my hero!

  36. Darren says:

    I can not get the sparsbundle file to show up on my network share when I kick off the back up in TM. Any advice?

  37. Darren says:

    Ok … I have the sparsebundle file thanks to reading ALL the posts here. I think that I am at an wall though as my network drive is on Server 2008 using NTFS. Does anyone out there have this setup working?

  38. Divan says:

    Thanks…..works like a treat!

  39. TJ says:

    Brilliant! My Snow Leopard to Windows 7 b/u is running now. This was very easy — and I look forward to testing a file restore tomorrow!

    –I suggest using the machine name and ethernet MAC address directly from the system info.
    –Also, don’t use the toolbar button on disk utility to create the image, select File–>New–>Blank Disk Image from the menu bar on the top of the screen.

    Thanks all.

  40. Elad says:

    Chris Derbidge – YOU ARE THE MAN!
    I was about to give up because I didn’t find any snow leopard ref…
    And then you came with that ethernet mac address. genius.
    Thanks!!

  41. haymoose says:

    Dude, 10.6.4 just deleted my entire sparsebundle during a “backup.” Thanks Steve.

  42. Z says:

    Anyone tried on the latest 10.6.4? It seem not working for me.

  43. Z says:

    on my testing, it simply did not recognize it at all. really strange.

  44. Z says:

    Seem like once you update to 10.6.4 this method will not work any more.

  45. [...] guide that finally pointed me in the right direction is located here.  It’s a surprisingly easy process and should be supported by Apple.  Why should you have [...]

  46. Hey guys, I’m on 10.6.4 and it works like a charm. Perhaps you need to just wipe your backups and redo it?

  47. Bruce says:

    I keep getting an error saying permission denied when it is trying to create the image. Using 10.6.4, what am I doing wrong, have made sure to follow this step by step. Any help would be appreciated, thanks

  48. Brant says:

    You’re the man! I didn’t realize that the MAC address in the sparsebundle file name had to be the ethernet MAC, not the airport MAC, even though I am backing up wirelessly. That fixed it for me!

  49. Gary says:

    Hi, where is the sparse file stored at? I tried searching for it and it cannot be found.

  50. Marie says:

    Hello

    Great idea but it isnt working for me…. First of all, my macbook wont mount a NTFS network drive.
    And I keep getting an error on FAT
    ;-(

  51. Marie says:

    Finally it works. I just had to remove the “-” in the MAC address.

    Now, can we recover from that kind of backup?

  52. Adj says:

    Hey Everyone,
    These are some friendly tips and edits to clarify any further questions you may have that I experienced when I was doing this. Feel free to contact me if you have any other questions.

    1. Select the location for the remote backup. I chose the partition I created TimeMachine (T:).

    2. If you have not enabled “Unsupported Network Volumes,” follow this tutorial.

    3. Mount your network drive and select it in Time Machine.

    4. Start Time Machine (Menu button > Backup Now) and watch your remote location.

    5. A file is created with the structure ComputerName_MACAddress.tmp.sparcebundle. Copy this file name. (***EDIT: My file looked like this: “John’s Mac Pro.tmp.sparcebundle”. This means it didn’t put in my MAC Address from my Ethernet which you must have. To get the MAC Address of your Ethernet card, go to: [Apple Icon from Menu Bar] >System Preferences >Network >[Highlight ‘Ethernet’ on the left hand column] >Click “Advanced…” >Ethernet Tab. Where it says “Ethernet ID” that is your Ethernet MAC address. It should look something like “00:15:f5:d4:97:45” When you paste that set of numbers, remove all colon’s, “:” or dashes, “-“.)

    6. On your Mac, open Disk Utility. Click “New Image.” Use the following settings:

    7. Save As ComputerName_MACAddress (***EDIT: Remove all punctuation, apostrophe and spaces. My Save As correctly reads: JohnsMacPro_0015f5d49745)

    8. Volume Name can be whatever you want.
***EDIT: Custom volume size must be the last value set*** (***EDIT: not sure what “the last value set means but regarding Volume Name, I just named it “John2”.)
    ***EDIT: Format should be “Mac OS Extended (Journaled)”
    Encryption: “none”

    9. Change partition to “No Partition Map”

    10. Change Image Format to “Sparce Bundle Disk Image”

    11. Custom Volume size. Set the maximum you want to use on your remote location. Don’t worry if you don’t have the room on your Mac.

    12. Save. Move this file to your remote location. (***EDIT: Save to your desktop to find it easier. You will see the new disc is automatically mounted so it shows 2 files; One is the file that we want (JohnsMacPro_0015f5d49745.sparcebundle) the other is the Volume disc, aka “John2”. You can immediately “Eject” John2 as it has no value to you. Move that large file to your remote location).

    Tell Time Machine to backup again and it should be working.

  53. M says:

    Worked like a champ! MBP 10.6.4 backing up to XP Pro.

  54. Paul van der Linden says:

    As I have been looking for a solution for this for a long time I’m happy to inform you that all 3 of my iMacs work. The latest, 10.6.6 works like Adj contributed. Tanx both!

  55. James says:

    Hey guys. So this was working great for me for a while.

    I have an XP desktop machine with a 2TB external drive attached. I did everything and created the sparsebundle and was able to back my mac up to it.

    BUT

    After a while, the backups seem to be deleted right off the external drive and I have to do this whole process over again (I get error 45 sparsebundle could not be created). Is anyone experiencing the same thing? It seems to happen when my desktop reboots or the drive gets disconnected (i.e. moving out of the dorm and rearranging the room and stuff).

    • Jason says:

      Sounds like you want to make sure it continues to connect the network drive. This could be solved with a bash script, perhaps? Maybe even an automator script.

      • James says:

        Jason,

        Thanks for the reply. When this happens, the sparsebundle is no where to be seen on the external drive and time machine doesn’t see anything (almost like no backups have ever been made).

        Is there any reason as to what causes this?

        I have my external drive plugged into a desktop windows computer that I frequently boot up in Ubuntu. Could this be part of the reason?

        Don’t know much about scripting or anything (just a college student – biology major :p) and was hoping for an easy fix

        • Jason says:

          Not sure why the bundle would disappear like that. Is the backup on the same partition as your operating system?

  56. Jonathan says:

    Snow Leopard. Trying this on a router that reads/writes to external ntfs formatted hard drive via USB 2.0 with 300GB partitioned on a 2TB drive. I end up with the shared name partition listed in locations, which has JonathansMacbookPro_macaddress.sparsebundle listed as a file. I assumed the computer name doesn’t matter too much as I took all the spaces out of mine…Then another disk image opens called ‘disk image’ which is what I named the image to begin with I guess… Its crawling along at about 8 mins per GB but it is going….don’t know if I’m really doing it right or not…

  57. Pablo says:

    Hi everybody

    I have this setup running from within 1 year, and besides one or two failures, because of a accidental shutdown of the windows computer while the time machine backup was running, everything is going quite well.

    Any one have tried this with OSX lion?

    thanks

    • Jason says:

      Pablo, that is great to hear! Thank you for checking back in. Hopefully we’ll hear about an experience in Lion in the next couple of weeks.

      • Magnus says:

        The setup doesnt work on my upgraded SL -> LION. Complains about AFP functions not supported.

        • Chris says:

          Just been following this instructions to the letter, trying all the comments methords and i have just read the comment about and i am also getting the AFP issue on Lion upgrade form SL.

          This is getting a little frustrating now.

          Anyone got it working / still working on Lion?

          • Lucas says:

            AFP problem with Lion.

            Does someone know how to fix it?

          • Mike says:

            You can’t. Apple change the requirements for supported protocols for network drives, time machine requires an AFP drive that supports Netatalk 2.2. There are lots of helpful posts out there for how to get it working if you can access the drive via AFP to hack the mac into not caring about this new rule. If you can mount it via AFP then this (link below) will work for you, I haven’t found a work around otherwise.

            http://support.apple.com/kb/HT4700

  58. New says:

    Stick at step 4

    watch your remote location. <— i don't know what should i do, totally confused :(

    Can someone post it on Youtube? It would be very helpful.

Leave a Reply