V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
AntonChen
V2EX  ›  Linux

如何迁移 Linux,想换系统盘又不想装系统

  •  
  •   AntonChen ·
    antonchen · Oct 11, 2016 · 5680 views
    This topic created in 3486 days ago, the information mentioned may be changed or developed.

    网上看了一堆方法

    1. tar (麻烦)
    2. rsync (和用 tar 一样,少一部打包动作)
    3. dd

    倾向于用 dd 但不知道硬盘不一样大会如何 (新硬盘比旧硬盘小)。
    或者还有其它办法么?

    Supplement 1  ·  Oct 12, 2016
    最终还是用了 rsync ( Arch Linux 安装镜像,挂载新旧两块硬盘),处理完之后才看见 @jsfaint 说的 GParted
    dd 方式是不敢用,主要是两块磁盘不一样大 新的比旧的小
    至于 tar 等等 反正都要传过去 何必多一个步骤 tar 呢
    当然网上那个网络迁移的其实不错 但我不需要
    16 replies    2016-10-12 12:51:47 +08:00
    chih
        1
    chih  
       Oct 11, 2016 via Android
    https://wiki.archlinux.org/index.php/full_system_backup_with_rsync 备份,在 live 系统中对拷,改 fstab , 重装 bootloader 也就 4 步。
    ve2ex
        2
    ve2ex  
       Oct 11, 2016
    同求,现在安装了 Ubuntu 系统的 500G 机械硬盘,想升级一块 1TB 的, ps :双系统,还有个 win8.1 装在 SSD 上,机械硬盘上还有 win 的数据分区+Ubuntu 的引导
    hzqim
        4
    hzqim  
       Oct 11, 2016
    Linux 类 ghost 软件: Clonezilla ,又名再生龙。
    http://clonezilla.nchc.org.tw/clonezilla-live/
    Tink
        5
    Tink  
    PRO
       Oct 11, 2016 via iPhone
    再生龙

    ghost for linux
    msg7086
        6
    msg7086  
       Oct 11, 2016 via Android
    rsync 装 grub ,结束。
    maowu
        7
    maowu  
       Oct 11, 2016 via Android
    在 live 系统中用 cp 拷贝也可以啊
    ak47iej
        8
    ak47iej  
       Oct 11, 2016
    acronis ture image - WD 版,希捷 /三星版(Discwizard)

    用 rescue media 开机,整个硬盘直接 clone ,我记得可以直接调大小

    不行的话就整盘备份成 tib ,然后还原到新硬盘..
    Owenjia
        9
    Owenjia  
       Oct 11, 2016 via Android
    用 rsync 吧,如果有装 docker 一类的记得加 sparse 参数。
    dant
        10
    dant  
       Oct 11, 2016
    先 shrink filesystem 再 dd
    ToughGuy
        11
    ToughGuy  
       Oct 11, 2016
    tar 还现麻烦? 你是想多复杂?
    idcputcom
        12
    idcputcom  
       Oct 11, 2016
    用云服务器作系统盘,挂载本地硬盘做数据盘
    virtualworld
        13
    virtualworld  
       Oct 11, 2016
    tar 最简单。你先用新盘最小安装个系统,然后直接 tar 回来
    reus
        14
    reus  
       Oct 12, 2016
    一开始就用 lvm ,就没这些麻烦了,物理位置随便移
    jsfaint
        15
    jsfaint  
       Oct 12, 2016
    用 gparted 备份分区,再恢复回去
    我之前这么搞过,可行
    ryd994
        16
    ryd994  
       Oct 12, 2016 via Android
    你知道 tar 可以输出到 pipe 然后 ssh 直传么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3230 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 82ms · UTC 14:23 · PVG 22:23 · LAX 07:23 · JFK 10:23
    ♥ Do have faith in what you're doing.