帮酷LOGO
0 0 评论
文章标签:AWK  column  PAR  align  分区  SED  GREP  fdisk  

检查你的分区是否对齐

fdisk -l /dev/sda | grep -E sda[0-9]+ | sed s/*// | awk '{printf ("%s %f",$1,$2/512); if($2%512){ print"BAD" }else {print"Good"} }' | column -t
示例输出
/dev/sda1 4.000000 Good
/dev/sda2 404.000000 Good
/dev/sda3 160404.000000 Good
/dev/sda4 1520004.000000 Good
/dev/sda5 1520008.000000 Good
/dev/sda6 1521988.000000 Good
/dev/sda7 1643216.000000 Good
/dev/sda8 1659220.000000 Good
/dev/sda9 1787472.000000 Good


文章标签:PAR  COL  column  align  分区  GREP  SED  AWK  

Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语