Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Shared notebooks are a key feature of OneNote that have been described as "near magic". They allow you to share notes across machines with yourself, or with a team of people. OneNote lets multiple users write in the same notebook, even on the same page at the same time and it just takes care of syncing and merging everything in the background. It's a great way to share information, it's very seamless, and once you've set it up it just works. Except when it doesn't...
Sometimes things go wrong, or you have trouble setting it up in the first place. Mostly due to issues in the underlying file system chosen. Not all file storage systems are created equal. Some are great, some are not. Some are great for some purposes but not others. I'm going to write a series of posts as a comprehensive overview. I'll explain each, and include pointers to trouble shooting potential issues. I'll update this over time as I get questions and may add links to more details.
The key deciding factor in sharing your notebook is the location you choose to share it from and the technology used to access that. These include.
I realize this list makes things look complex. In the basic scenarios things just work. But there's a great diversity of file sharing technology options out there that at least some people somewhere are using and it's worth being comprehensive.
There are sub categories within each of these. I'll go over each in a separate post. This one will cover Windows File Shares.
Below are some potential issues, explanations and resolutions.
- This applies to things like the [Western Digitals "My Book", iomega, Maxtor, Buffalo, Linksys, DLink](https://www.newegg.com/Store/SubCategory.aspx?SubCategory=481&name=Network-Hard-Drives) networked hard drives.
- Recovery: If you look in the folder on the network share, you'll often see an extra file with a name like "foo\~RF12345678.tmp". Rename this to "foo.one" then open OneNote and sync and you'll probably have your file back.
- Details on this (and why <span class="underline">I don't recommend SAMBA shares</span>) below. I'd suggest you consider storing your OneNote notebooks somewhere else.
- Most of the network hard drives use a small Linux OS and [SAMBA](https://en.wikipedia.org/wiki/SAMBA) to provide the file share
- Many versions of SAMBA are badly behaved and don't fully and correctly implement SMB
- In particular many SAMBA implementations seem to have problems with ReplaceFile failing, which OneNote uses
- SAMBA, like much open source, has many different versions (100s) that have been picked up by the various different hardware manufacturers (running on multiple trimmed down variants of Linux), they've individually tweaked them, forked the code, and do not necessarily update them. The result is that while some of the latest versions of SAMBA do seem to implement ReplaceFile correctly, many of the networked hard drives seem to use versions that don't implement ReplaceFile well. Such is the nature of open source. \[Whereas if you have a Windows Server, XP or Vista machine and you stay fully up to date on your Windows Updates they are all the same (well each OS is) and known to work and be reliable. \]
- This tends to hit OneNote more than other apps, because most apps don't use ReplaceFile. Most apps just open a file, with an exclusive lock on it, then save it and release when they're done. Because OneNote has multiple simultaneous users on a notebook things are a little more complicated. Also we use ReplaceFile to safely do operations like optimizing the file (we optimize a copy then replace the original, ReplaceFile is supposed to be atomic and safe). Other applications that tend to behave a little more like OneNote are Money and Quicken and things that have database type continual access. So these apps will often exhibit issues working against these networked hard drives too.
- Basically the most common and therefore well tested aspects of the SMB protocol and file system semantics work fine on these devices. But if you have an app that uses a broader set then they can run into trouble.
- Because of these issues above I'm not sure how much I'd trust these SAMBA hard drives, given other things that aren't well tested (like ReplaceFile) may be buggy too. We've seen other issues on SAMBA shares, including corruption.
OneNote notebooks on SharePoint coming up in the next post...
Anonymous
December 12, 2007
David is starting a great series of posts on the OneNote storage, here is the first post: OneNote Shared
Anonymous
December 13, 2007
David Rasmussen is starting a series of posts on sharing OneNote Notebooks. Not only is this interesting
Anonymous
January 16, 2008
Back in December I pointed people to something David wrote about notebooks in Windows file servers: OneNote
Anonymous
March 29, 2008
Your blog has a lot of useful information, David. Thanks for that. I would really like to hear more about sharing OneNote notebooks over the Internet using the Web storage services you mentioned above. If OneNote can't support this use case, many will have to resort to Google or Zoho notebooks.
--
Regards,
Travis Spencer
Anonymous
May 09, 2008
It seems like Live Mesh would be a great platform for allowing users to synchronize their notes between multiple devices. The best part is that I think it allows you to do a sync at a deeper level than the section files - you could represent individual notes and such.
I know Mesh is still in its infancy, but is this something you guys might consider for the future? I've switched to Evernote recently solely because of the ability to share notes between machines seamlessly, but I prefer OneNote's flexibility and interface.
Anonymous
October 13, 2011
We are seeing duplicate sections being created with a Sharepoint server. Do you have any pointers on how to avoid this with Sharepoint? (OneNote 2007) Thanks!
Anonymous
December 18, 2011
This blog post (and part 2) are very helpful, thank you. I've learned that I have my OneNote 2010 sharing configured incorrectly, as I suspected. This info should be in the official documentation -- I couldn't find it. Also OneNote should check for incorrect usage of Windows Offline Files and warn you once.
Anonymous
December 18, 2011
Another issue that needs some explanation/clarification:
What exactly happens if you run OneNote 2010 on the same computer as is hosting the Windows SMB share? While also running OneNote 2010 on another computer that accesses the same notebook via that SMB share? For example, a home user scenario where the SMB share is running on the users desktop PC, and their laptop computer accesses the notebook via SMB -- a common scenario!
I noticed some confusing behavior in OneNote 2010 on the host computer (the desktop PC in this example). For starters, the notebook was initially not shared at all. When I tried to change it to being shared, OneNote copied the notebook to the shared folder (on the same computer), and left the original unshared copy of the notebook unchanged and disused. This creation of 2 copies of the notebook is confusing and a potential for data loss, especially since neither version is labelled "new" or "old". Also it doesn't make it clear whether the old copy is disused or not.
Another confusing issue: I elected to share the notebook using the OneNote GUI, but presumably because I "shared" it to a SMB share on the same computer, it didn't appear as a shared notebook. For example, the Sync command is disabled, same as an unshared notebook.
Will it still work correctly and reliably with multiple users when one user accesses the notebook directly (on the same computer) while other users access this same notebook via SMB?
Will it still use cache when accessing the notebook directly? Will the 30 second update interval still apply in regards to (a) changes made by the "direct" user, and (b) changes from other users via SMB ?
Anonymous
November 24, 2014
When trying to share a single note book across a standard network to a shared drive, I find that all note books are shared including my personal one. How do I stop this?
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in