差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
disk_utils [2016/09/28 22:49] 127.0.0.1 |
disk_utils [2018/12/29 00:28] (目前版本) jz |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== Change UUID ====== | + | ====== Utils ====== |
+ | |||
+ | ===== Safely unplug ===== | ||
+ | <code bash> | ||
+ | unmount mount-point | ||
+ | echo 1 | sudo tee /sys/block/sdX/device/delete | ||
+ | </code> | ||
+ | |||
+ | ===== Change UUID ===== | ||
<code bash> | <code bash> | ||
tune2fs /dev/sdX -u {uuid} | tune2fs /dev/sdX -u {uuid} | ||
行 12: | 行 20: | ||
# linux | # linux | ||
lsblk | lsblk | ||
+ | </code> | ||
+ | |||
+ | ===== Find device type ===== | ||
+ | <code> | ||
+ | file -sL /dev/sd* | ||
</code> | </code> |