注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

姑射道人的博客

博客新地址:nixuchen.com

 
 
 

日志

 
 

windows和ubuntu共享dropbox目录  

2013-12-05 11:11:27|  分类: linux |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

I use a computer where I dual boot between Windows and Ubuntu. To avoid wasting disk space, I would like to use the same Dropbox directory between both Windows and Ubuntu. Here is how I was able to do this:

1. I first installed the Dropbox client on Windows. Assume it uses the directoryC:\Users\joe\Dropbox in my NTFS partition.

2. Boot into Ubuntu. Edit /etc/fstab so that the NTFS partition which contains the Dropbox directory on Windows is mounted automatically at boot. I assume it is mounted at /media/my-c-drive

3. Install the Dropbox client for Ubuntu. During installation, let it pick its default directory as /home/joe/Dropbox

4. You can see the Dropbox client running in the Panel. Quit it.

5. Delete the Dropbox directory and replace it with a symbolic link to the Dropbox directory on the NTFS Windows partition:

1
2
$ rm -rf /home/joe/Dropbox
$ ln -s /media/my-c-drive/Users/joe/Dropbox /home/joe/Dropbox

6. Start the Dropbox client again and you are done. It will use the same directory as that used by Windows for syncing.

Note: As you might have suspected, there is a small problem with this technique. Every time you switch between Windows and Ubuntu, the Dropbox client will re-index the contents of its directory. This will happen in the background, but it will consume some CPU and network bandwidth for a few minutes. This is not really a problem for me because I might switch between Windows and Ubuntu once in a few days.

Tried with: Windows 8 x64 and Ubuntu 12.04 LTS

  评论这张
 
阅读(354)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017