請問有無基本指令可以clone到HDD?

本帖最後由 3ldk 於 2022-7-28 21:31 編輯

有隻linux想加大隻碟

隻碟無用lvm, 只係最基本的ext4 partition(單一分割), 所以直接改大隻碟應該唔work

所以我打算加多隻碟然後clone過去

但由於部機好難裝software, 所以會唔會有手工方法可以用常見的default command clone到碟呢?

諗過dd, 但應該做唔到


補充:
如果有方法改大隻碟而唔會影響原有file, 咁我用改碟既方式都OK

clonezilla

TOP

有隻linux想加大隻碟

隻碟無用lvm, 只係最基本的ext4 partition(單一分割), 所以直接改大隻碟應該唔work

...
3ldk 發表於 2022-7-28 21:28


GParted

TOP

you can try rsync, it is able to clone a whole system and if i were you, i may use other file system e.g. btrfs. also after cloned your system, you may need to adjust fstab to reflect the new devices.

TOP

rsync isn't for cloning drives, it's for copying files. The two things appear to be the same but have very important differences. Cloning a drive is a low-level operation that just creates a bit-for-bit image of one drive on another especially
for bootable disk.

可以參考下呢篇, 可以考慮用  dd 。

https://superuser.com/questions/ ... arddisk-using-rsync

TOP

How to clone whole Linux partition with Rsync
https://www.basvanbeek.nl/linux/ ... rtition-with-rsync/

TOP