V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
dangyuluo
V2EX  ›  问与答

如何正确全盘备份 UEFI Ubuntu?

  •  
  •   dangyuluo · 2019-04-26 13:28:01 +08:00 via iPad · 1884 次点击
    这是一个创建于 1819 天前的主题,其中的信息可能已经有所发展或是发生改变。

    It is so weird that I'm not able to enter Chinese with iPad. That ’ s why I ’ m using English. I hope you wouldn ’ t mind or think I ’ m showing off.

    We set up a demo laptop in the company. But sometimes developers also use that laptop to test their new stuffs which is, though not prohibited, IMHO a bad practice.

    Recently, someone tried to upgrade the NVIDIA driver and messed up the whole system. It costed 2 hours of my personal time to restore the system to where it used to be. I hate to clean up shit like this.

    In Windows7 I can use GHOST to backup the whole disk and deploy in minutes. What is the proper way to badkup Ubuntu? THANK

    8 条回复    2019-04-27 01:50:47 +08:00
    hexingb
        1
    hexingb  
       2019-04-26 13:35:29 +08:00
    attach a new disk and dd if=/dev/original/disk of=/a/path/in/new/disk bs=256M ? i'm just kidding if it fails. :)
    chinesestudio
        2
    chinesestudio  
       2019-04-26 13:39:43 +08:00 via Android
    clonezilla
    flynaj
        3
    flynaj  
       2019-04-26 13:43:33 +08:00 via Android
    clonezilla or dd
    dragon11
        4
    dragon11  
       2019-04-26 13:45:06 +08:00
    英语不好就直接中文给你说吧。
    Linux dd 命令可以整个硬盘备份,实际测试过 Linux 电脑的直接全部备份到新的硬盘,备份后新硬盘可以直接使用。
    dd if=/dev/olddisk of=/dev/newdisk
    dangyuluo
        5
    dangyuluo  
    OP
       2019-04-26 13:46:08 +08:00 via iPad
    @hexingb 回复里居然可以打中文。dd 应该不行吧,系统运行中热备份估计会有坑。


    @flynaj
    @chinesestudio 我去研究下这个,谢谢
    dangyuluo
        6
    dangyuluo  
    OP
       2019-04-26 13:46:38 +08:00 via iPad
    @dragon11 是么?颠覆我的印象了。有机会虚拟机实验一下
    flynaj
        7
    flynaj  
       2019-04-26 15:00:04 +08:00
    帮你 google 了一下,应该是这个 heartbeat+drbd https://unixboy.iteye.com/blog/515739
    kuichieh
        8
    kuichieh  
       2019-04-27 01:50:47 +08:00 via Android
    U 盘启动 + dd
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1015 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 19:36 · PVG 03:36 · LAX 12:36 · JFK 15:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.