Board logo

標題: [操作疑難] rsync clone a drive,唔識寫options [打印本頁]

作者: A4Paper    時間: 2022-2-15 22:03     標題: rsync clone a drive,唔識寫options

提示: 作者被禁止或刪除 內容自動屏蔽
作者: javacomhk    時間: 2022-2-16 05:20

本帖最後由 javacomhk 於 2022-2-16 08:22 編輯

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-2-16 08:16

if your p2 is just data files, i suggest you
1) add "--dry-run" the first time see if you think any file is missing in copying
2) do actual rsync twice to make sure all files are copied.
and also suggested by #2, a dd command is good enough
you can also use gparted to copy p2 to p1 and then resize p1
作者: sonichkhk    時間: 2022-2-16 09:30

回覆 1# A4Paper

clone drive, should use dd
作者: A4Paper    時間: 2022-2-16 13:45

提示: 作者被禁止或刪除 內容自動屏蔽
作者: A4Paper    時間: 2022-2-16 13:53

提示: 作者被禁止或刪除 內容自動屏蔽
作者: javacomhk    時間: 2022-2-16 17:38

有時只要 Google 下就可以搵到答案啦
https://www.simplified.guide/linux/disk-uuid-set





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