dangyuluo
V2EX  ›  问与答

如何正确全盘备份 UEFI Ubuntu?

  •  
  •   dangyuluo · Apr 26, 2019 via iPad · 2433 views
    This topic created in 2596 days ago, the information mentioned may be changed or developed.

    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 replies    2019-04-27 01:50:47 +08:00
    hexingb
        1
    hexingb  
       Apr 26, 2019
    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  
       Apr 26, 2019 via Android
    clonezilla
    flynaj
        3
    flynaj  
       Apr 26, 2019 via Android
    clonezilla or dd
    dragon11
        4
    dragon11  
       Apr 26, 2019
    英语不好就直接中文给你说吧。
    Linux dd 命令可以整个硬盘备份,实际测试过 Linux 电脑的直接全部备份到新的硬盘,备份后新硬盘可以直接使用。
    dd if=/dev/olddisk of=/dev/newdisk
    dangyuluo
        5
    dangyuluo  
    OP
       Apr 26, 2019 via iPad
    @hexingb 回复里居然可以打中文。dd 应该不行吧,系统运行中热备份估计会有坑。


    @flynaj
    @chinesestudio 我去研究下这个,谢谢
    dangyuluo
        6
    dangyuluo  
    OP
       Apr 26, 2019 via iPad
    @dragon11 是么?颠覆我的印象了。有机会虚拟机实验一下
    flynaj
        7
    flynaj  
       Apr 26, 2019
    帮你 google 了一下,应该是这个 heartbeat+drbd https://unixboy.iteye.com/blog/515739
    kuichieh
        8
    kuichieh  
       Apr 27, 2019 via Android
    U 盘启动 + dd
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5816 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 02:21 · PVG 10:21 · LAX 19:21 · JFK 22:21
    ♥ Do have faith in what you're doing.