2020年6月14日 星期日

Parted惡補

parted /dev/vdc mkpart 0% 100% --->如果全部空間都要用的話,則用100%就不會切到剩一點點
parted /dev/vdc mkpart 2048s100%

從0%的對齊大小在512 sector的最小對齊單位是17.4Kb
2048s是什麼意思呢?

意思是假設硬碟最小的physical block size 是512 sector,在一個20G的硬碟
2048s就是 1MB對齊的意思   1MB = 1024KB =  1048576 byte/每個扇區sector是512得出2048s
假設   是 4MB對齊   4MB = 4094KB =  4194304 byte /512 得到8192s
假設   是 8k 對齊   8KB = 8192 byte /512  16s --->可以強制過關,但最少parted"對齊"的大小是17.4kb在@sector是512大小時,所以parted希望是2048s的倍數

2020年6月11日 星期四

CentOS8 新增注音輸入法

yum install ibus-libpinyin.x86_64
dnf install ibus-libpinyin.x86_64
2種寫法都可以
然後去設定>地區跟語言>點+增加輸入法>搜尋chi>點進other
>Chinese(New Zhuyin)
就有注音輸入法能使用

參考網址
https://www.azureunali.com/linux-how-to-type-chineses-words-on-centos-8-steam/