Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu17.04一次重装+环境恢复 #1

Open
firmianavan opened this issue Sep 25, 2017 · 0 comments
Open

ubuntu17.04一次重装+环境恢复 #1

firmianavan opened this issue Sep 25, 2017 · 0 comments

Comments

@firmianavan
Copy link
Owner

原因

Ubuntu17已发布, 而且当前系统打显卡驱动一直有些问题,手动从Nvdia下载驱动安装打时候无法登录,而这个驱动居然没有卸载打选项, 索性重装了。

步骤

  1. 下载, 依照官网制作安装盘。
  2. 没有截图,安装时有三选一,支持MBR的UEFI,和GPT,MBR, 为了兼容性选的第一个。分区方面只擦除了之前打根目录,用来挂载/home的分区(以下称为用户分区)不能动,这是环境恢复的关键。安装程序有一个小bug,有时候开始安装会变成灰色不可选状态,可以在网上搜到答案, 我通过重新进入从联网改为禁止联网解决。
  3. 简单起见,创建用户使用和上次相同的用户名。
  4. 安装成功后进入系统,将用户分区打原主文件改个名字,将当前主文件夹拷贝到用户分区,然后修改/etc/fstab挂载用户分区(添加/dev/sda4 /home ext4 defaults 0 0,详情搜索磁盘永久挂载的文章),重新启动
  5. dash搜索附加驱动安装Nvdia驱动
  6. 将原用户下的各种IDE,工具以及对应打配置文件夹(主用户目录下.开头打隐藏文件/文件夹)移动到当前用户下,以及.config/chromium文件夹,.config/fcitx/下的google拼音的用户词库,.local/bin下打自定义脚本, .bashrc中的自定义部分,Documents、Downloads等目录。暂时不要删除备份文件夹, 如有遗漏可后续在进行恢复。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant