SSD磁柱分配方式 - Linux

By Lydia
at 2011-09-12T00:01
at 2011-09-12T00:01
Table of Contents
※ 引述《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
: 請問版上高手有人知道是哪個步驟有誤,請指點迷津@@
: 感謝感謝
--
: 這是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
: 請問版上高手有人知道是哪個步驟有誤,請指點迷津@@
: 感謝感謝
--
Tags:
Linux
All Comments
Related Posts
cacti改時間軸

By Dorothy
at 2011-09-11T16:09
at 2011-09-11T16:09
關於 fetchmail 擷取郵件的時間

By Ivy
at 2011-09-11T11:57
at 2011-09-11T11:57
安裝玩以後可以轉移/boot嗎?

By Dinah
at 2011-09-10T21:34
at 2011-09-10T21:34
Debian有中文介面嗎?

By Daniel
at 2011-09-10T20:11
at 2011-09-10T20:11
postfix mailbox 問題

By Lily
at 2011-09-10T16:43
at 2011-09-10T16:43