Board logo

標題: 請問有無基本指令可以clone到HDD? [打印本頁]

作者: 3ldk    時間: 2022-7-28 21:28     標題: 請問有無基本指令可以clone到HDD?

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

有隻linux想加大隻碟

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

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

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

諗過dd, 但應該做唔到


補充:
如果有方法改大隻碟而唔會影響原有file, 咁我用改碟既方式都OK
作者: litter7sky    時間: 2022-7-29 13:18

clonezilla
作者: tunster    時間: 2022-7-29 13:36

有隻linux想加大隻碟

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

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


GParted
作者: chancho    時間: 2022-7-29 13:55

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.
作者: javacomhk    時間: 2022-7-29 15:53

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
作者: chancho    時間: 2022-7-29 18:26

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





歡迎光臨 電腦領域 HKEPC Hardware (https://h2.hkepc.com/forum/) Powered by Discuz! 7.2