Re: [問題] SSD磁柱分配方式

看板Linux作者時間14年前 (2011/09/12 00:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《jhroemars (Lucius)》之銘言: : 這是A硬碟的分配方式 : Device Boot Start End Blocks Id System : /dev/sda1 * 2048 257039 127496 83 Linux : /dev/sda2 257040 8610839 4176900 82 Linux swap/Solaris : /dev/sda3 8610840 78140159 34764660 83 Linux : 這是B硬碟分配方式 : Device Boot Start End Blocks Id System : /dev/sda1 * 63 208844 104391 83 Linux : /dev/sda2 208845 4401809 2096482+ 82 Linux swap / Solaris : /dev/sda3 4401810 37945529 16771860 83 Linux : Q1.想要請教版上高手,哪一顆硬碟是SSD cat /proc/partitions |awk '{print $4}' |grep '^sd' |grep -v '[0-9]' |while read LIST do hdparm -I "/dev/$LIST" |grep 'Solid State Device' |while read LIST2 do if [ "$LIST2" == "Nominal Media Rotation Rate: Solid State Device" ];then echo "$LIST is SSD" else echo "$LIST is not SSD" fi done done 可能會有點小問題,或許還需要作點修改。 : Q2.我的系統是使用CentOS 5.6在磁區分配時,是下列數據 : Device Boot Start End Blocks Id System : /dev/sda1 * 64 79 : /dev/sda2 80 343 : /dev/sda3 345 (到最後磁柱) : 但在進入系統之後卻會變成 : Device Boot Start End Blocks Id System : /dev/sda1 * 1012095 2040254 514080 83 Linux : /dev/sda2 2040255 6281414 2120580 82 Linux swap / Solaris : /dev/sda3 6281415 120808799 57263692+ 83 Linux : 請問版上高手有人知道是哪個步驟有誤,請指點迷津@@ : 感謝感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.169.240.88
文章代碼(AID): #1ERDjdJG (Linux)
文章代碼(AID): #1ERDjdJG (Linux)