![如何将我的 Firefox 配置文件从 Windows 7 转移到 Ubuntu?](https://linux22.com/image/1290872/%E5%A6%82%E4%BD%95%E5%B0%86%E6%88%91%E7%9A%84%20Firefox%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E4%BB%8E%20Windows%207%20%E8%BD%AC%E7%A7%BB%E5%88%B0%20Ubuntu%EF%BC%9F.png)
我的 Windows 7 坏了,现在我用的是 Ubuntu。我无法加载 Windows 本身,只有命令行、系统还原和其他功能不起作用。
但是我可以从 Ubuntu 访问我的 Windows 7 文件。
是否可以将所有 Firefox 书签、密码等从 Windows 7 复制到 Ubuntu 的 Firefox?
答案1
假设您的 Windows 分区已挂载为/mnt
且您的 Windows 用户名是hey
,首先将(随机命名的)旧配置文件目录复制到您的 Ubuntu 帐户:
cp -r /mnt/Users/hey/AppData/Roaming/Mozilla/Firefox/*.default ~/.mozilla/firefox/win7profile
然后退出 Firefox 并编辑该~/.mozilla/firefox/profiles.ini
文件,将以下内容更改StartWithLastProfile=1
为StartWithLastProfile=0
并在末尾添加:
[Profile1]
Name=win7profile
IsRelative=1
Path=win7profile
重新启动 Firefox。然后它将允许您选择要使用的配置文件。