|
Ubuntu 26.04.01 Serverをmac mini 2014にインストール
Ubuntu 26.04.01 Serverをmac mini 2014にインストール
概要
更新履歴
目次
はじめに
- このドキュメントは,mac mini 2014をメールサーバにするまでの手順を記載していく.
- OSは2026年4月リリースのUbuntu
26.04.01に2031年4月までのサポートが保証されているので,これからインストールす
るならこのバージョンが良いと思う.
- DesktopとServerがあるけど,Serverとして稼働させるので
不要なものが入らないようにServer版とした.
OSインストール
要件・条件の確認
- Ubuntu 20.04.01の必要要件は次のとおり.
- 2 GHzデュアルコアプロセッサ以上
- 6 GBシステムメモリ
- 25 GBのハードドライブ空き容量
- DVDドライブまたはUSBポート(インストールメディアとして使用)
- インターネットアクセス(推奨)
- リリース時,メモリが6GB必要ということでWindows 11より多いことが話題に.
- 今回インストール対象となるmac mini 2014の仕様は次のとおり.
- mac mini 2014 Intel Core i7 16GB RAM 250GB SSD
- ThunderboltポートにEthernertポートを拡張.
- 作業自体は別のmacOSが動作するMacで行っている.
- 基本的なUNIX/Linuxの操作知識は必要で,それを前提として記載している.
インストーラーの準備
- インストールメディア
- ダウンロードしたISOイメージを収納するためのUSBメモリは,8GB以上とされている.
- 今回は32GBメモリを準備.
dコマンドでisoイメージをUSB
ストレージに書き込む
- ddコマンドを利用してダウンロードしたイメージをUSBメモリに書き込む.
- ddコマンドを使う場合,書き込み先のUSBドライブの論理アドレスを知る必要がある.
- インストーラ作成用のmacOSでドライブリストを取得.
ujpadmin@metis2026 ~ % diskutil list🆑
/dev/disk0 (internal, physical):
#:
TYPE
NAME
SIZE IDENTIFIER
0:
GUID_partition_scheme
*2.0 TB disk0
1:
Apple_APFS_ISC
Container
disk1
524.3
MB disk0s1
2:
Apple_APFS
Container
disk3
2.0
TB disk0s2
3:
Apple_APFS_Recovery Container
disk2 5.4
GB disk0s3
/dev/disk3 (synthesized):
#:
TYPE
NAME
SIZE IDENTIFIER
0: APFS
Container Scheme
-
+2.0 TB disk3
Physical Store disk0s2
1:
APFS
Volume
Macintosh
HD - Data 537.3 GB disk3s1
2:
APFS
Volume
Macintosh
HD
12.6
GB
disk3s3
3:
APFS
Snapshot
com.apple.os.update-...
12.6 GB disk3s3s1
4:
APFS Volume
Preboot
9.1 GB disk3s4
5:
APFS Volume
Recovery
1.3 GB disk3s5
6:
APFS Volume
VM
20.5 KB disk3s6
/dev/disk5 (external, physical):
#:
TYPE
NAME
SIZE IDENTIFIER
0: *31.0 GB disk5🈁
/dev/disk6 (disk image):
#:
TYPE
NAME
SIZE IDENTIFIER
0:
GUID_partition_scheme
+623.4 MB disk6
1:
Apple_HFS
balenaEtcher
623.3 MB disk6s1
/dev/disk7 (disk image):
#:
TYPE
NAME
SIZE IDENTIFIER
0:
GUID_partition_scheme
+186.7 MB disk7
1:
Apple_HFS
Raspberry
Pi
Imager ... 186.6 MB disk7s1
ujpadmin@metis2026 ~ %
- 容量的に,この31GBのdisk5だと判断.
- アンマウントする.
ujpadmin@metis2026 ~ % diskutil unmount
/dev/disk5🆑
disk5 was already unmounted or it has a partitioning
scheme so use "diskutil unmountDisk" instead
ujpadmin@metis2026 ~ %
- マウントされてない.
- ddコマンドでイメージファイルをUSBドライブに書き込む.
ujpadmin@metis2026 ~ % sudo dd
if=/Users/ujpadmin/Downloads/ubuntu-26.04.1-live-server-amd64.iso
of=/dev/rdisk5
bs=1m status=progress🆑
Password:🔑
2925527040 bytes (2926 MB, 2790 MiB) transferred
729.982s, 4008 kB/s
2792+1 records in
2792+1 records out
2927861760 bytes transferred in 730.095716 secs (4010244
bytes/sec)
ujpadmin@metis2026 ~ %
- 書き込み完了.730.095716 secなので12分10秒.
ISOイメージが正しく書き込めたか確
認する
- ddコマンドは検証処理がないので,正しく書き込めたかハッシュを取って確認する.
手順としては,ISOファイルの正確なバイト数を確認.そのバイト数分をUSBメモリから呼び出してハッシュ値を取得し,ISOファイル
のハッシュ値と比較する.
- まずはファイルサイズを把握.
ujpadmin@metis2026 ~ % stat -f %z
/Users/ujpadmin/Downloads/ubuntu-26.04.1-live-server-amd64.iso🆑
2927861760🈁
ujpadmin@metis2026 ~ %
- この場合2927861760バイトだとわかる.
- このサイズ分だけddコマンドでUSBメモリからデータを読み出し,そ
のデータのハッシュ値を取得する.
ujpadmin@metis2026 ~ % sudo dd if=/dev/rdisk5 bs=1m |
head -c 2927861760 | shasum -a
256🆑
cc8a95cde20f6ced61a322420de00f10cc3c90ced545daa46cb9c1a117f1d927 -
ujpadmin@metis2026 ~ %
- ダウンロードしているISOファイルのハッシュ値を取得する.
ujpadmin@metis2026 ~ % shasum -a 256
/Users/ujpadmin/Downloads/ubuntu-26.04.1-live-server-amd64.iso🆑
cc8a95cde20f6ced61a322420de00f10cc3c90ced545daa46cb9c1a117f1d927
/Users/ujpadmin/Downloads/ubuntu-26.04.1-live-server-amd64.iso
ujpadmin@metis2026 ~ %
- ハッシュ値が一緒なのでUSBメモリの中身とISOファイルは同一.
インストールの実行
- mac mini 2014の電源を落とし,作成したUSBメモリを刺す.
- キーボードのoptionキーを押しながら,電源を入れる.
- 起動ディスクを選ぶ画面が出るので,EFI Bootを選択.
- しばらくすると,インストール画面が出てくる.
- Ubuntu Serverのインストールは,別ドキュメント「 Surface
Go
2にUbuntu Serverをインストールする」を参照のこと.
Ubuntuから見たハードウェアの状
況の確認
- CPU,メモリ,ストレージなどの基本的なスペックを把握.
ujpadmin@hotei:~$ lscpu | grep -E "Model
name|CPU\(s\):|Thread"🆑
CPU(s):
4
Model
name:
Intel(R)
Core(TM) i7-4578U CPU @ 3.00GHz🈁
Thread(s) per
core:
2🈁
NUMA node0
CPU(s):
0-3
ujpadmin@hotei:~$ free -h🆑
total
used
free
shared buff/cache available
Mem:
14Gi
573Mi
13Gi
9.4Mi
811Mi 14Gi🈁
Swap:
4.0Gi
0B 4.0Gi
ujpadmin@hotei:~$ lsblk🆑
NAME
MAJ:MIN
RM SIZE RO TYPE MOUNTPOINTS
loop0
7:0
0 66.8M 1 loop /snap/core24/1643
loop1
7:1
0 1.5M 1 loop /snap/hwctl/123
loop2
7:2
0 50.1M 1 loop /snap/snapd/27710
loop3
7:3
0 66.8M 1 loop /snap/core24/2124
loop4
7:4
0 1.5M 1 loop /snap/hwctl/131
sda
8:0
0 233.8G 0 disk
├─sda1
8:1
0 1G 0 part /boot/efi
├─sda2
8:2
0 2G 0 part /boot
└─sda3
8:3
0 230.7G 0 part
└─ubuntu--vg-ubuntu--lv 252:0
0 100G 0 lvm /
ujpadmin@hotei:~$
接続されているストレージのスペックを
調べる
- ドライブのモデル名・シリアル・サイズを一覧表示する
ujpadmin@hotei:~$ lsblk -d -o
NAME,MODEL,SIZE,ROTA,TRAN🆑
NAME
MODEL
SIZE
ROTA TRAN
loop0
66.8M
0
loop1
1.5M
0
loop2
50.1M
0
loop3
66.8M
0
loop4
1.5M
0
sda APPLE SSD SM0256 233.8G 0
sata
ujpadmin@hotei:~$
- コマンドの結果から以下の情報が判明.
- ストレージのスペック情報
- モデル(型番): APPLE SSD SM0256
- 容量: 233.8 GB(規格表記としては 256GB モデル)
- 種類 (ROTA): 0(SSD)
- この APPLE SSD SM0256 は、Apple純正(Mac mini 2014
等に採用されているSamsung製OEMなど)の256GB PCIe/SATA固有ブレード型SSDです。
- 速度面:
- 一般的なSATA 3.0接続(転送速度 約500MB/s〜550MB/s前後)で動作します。
- HDDと比較すると遥かに高速で、OSの起動やレスポンス、メール/Webサーバのファイル読み書きには十分すぎる性能を
持っています。
- 耐久性:
- サーバ用途の書き込み量(ログ出力やメールデータ等)に対しても十分な耐久性があります。
- SSD/HDDの型番や詳細情報をピンポイントで調べる
ujpadmin@hotei:~$ sudo hdparm -I /dev/sda | head -n
20🆑
/dev/sda:
ATA device, with non-removable media
Model
Number: APPLE SSD
SM0256F
Serial
Number: S1K4NYAG433466
Firmware Revision: UXM2JA1Q
Transport:
Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev
2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
Used: unknown (minor revision code
0x0039)
Supported: 8 7 6 5
Likely used: 8
Configuration:
Logical
max current
cylinders
16383 16383
heads
16 16
sectors/track
63 63
--
CHS current addressable
sectors: 16514064
LBA user
addressable sectors: 268435455
ujpadmin@hotei:~$
- これによってSSDの仕様詳細が判明.
- 型番: APPLE SSD SM0256F(Samsung製のApple向けOEM AHCI/SATA SSD)
- インターフェース: SATA Rev 3.0(最大 6 Gbps 転送速度対応)
- 総セクター数 (LBA): 268,435,455 セクター
- 計算: $268,435,455 \times 512 \text{ bytes} \approx
137,438,952,960 \text{ bytes} \approx 137.4 \text{
GB}$(または512/4096バイト換算で約 137.4 GB〜268 GB の標準LBA範囲)
- 接続規格: SATA 3.0 対応のため、シーケンシャルリード/ライトで約 500〜550 MB/s
クラスの実効速度が出ます。
S .M .A.R.T情報を確認
- S.M.A.R.T.値を確認する.
- S.M.A.R.T.(スマート)とは、「Self-Monitoring, Analysis and Reporting
Technology」の略で、SSDやHDDなどのストレージ(記憶装置)に内蔵されている自己診断・監視・報告機能のことです。
- ドライブ内部の各種センサーや制御用チップが、自身の状態を常時監視して記録しています。
- SMARTで確認できる主な情報
- SMARTを参照すると、外側からは分からないストレージ内部の健康状態や劣化具合が数値で把握できます。
| 確認できる項目 |
内容・意味 |
| 健康状態 (Health Status) |
総合的な診断
結果(「PASSED(正常)」や「WARNING(警告)」など) |
| 通電時間 (Power-On Hours) |
これまでに電
源が入っていた累積時間 |
| 電源投入回数 (Power Cycle Count) |
電源が入った
回数(再起動など含む) |
| 総書き込み量 (TBW / Host Writes) |
これまでに書
き込まれたデータ総量(SSDの寿命推計に利用) |
| 不良セクター / 代替処理回数 |
読めなくなっ
た故障領域の発生数(発生していると故障の前兆) |
| 温度 (Temperature) |
現在の動作温
度および過去の最高温度 |
ujpadmin@hotei:~$ sudo smartctl -i /dev/sda🆑
sudo: 'smartctl': command not found
ujpadmin@hotei:~$
ujpadmin@hotei:~$ sudo apt install -y smartmontools🆑
The following packages were automatically installed and are
no longer required:
linux-headers-7.0.0-30
linux-modules-7.0.0-30-generic
linux-headers-7.0.0-30-generic
linux-tools-7.0.0-30
linux-image-unsigned-7.0.0-30-generic
linux-tools-7.0.0-30-generic
linux-main-modules-zfs-7.0.0-30-generic
Use 'sudo apt autoremove' to remove them.
Installing:
smartmontools
Suggested packages:
gsmartcontrol smart-notifier mailx
| mailutils
Summary:
Upgrading: 0, Installing: 1, Removing: 0, Not
Upgrading: 21
Download size: 664 kB
Space needed: 2,304 kB / 91.7 GB available
ー略ー
- インストールが無事終了したので,コマンドでS.M.A.R.T.値を確認.
ujpadmin@hotei:~$ sudo smartctl -i /dev/sda🆑
smartctl 7.5 2025-04-30 r5714
[x86_64-linux-7.0.0-38-generic] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke,
www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Apple SD/SM/TS...E/F/G
SSDs
Device Model: APPLE SSD SM0256F
Serial Number: S1K4NYAG433466
LU WWN Device Id: 5 002538 655584d30
Firmware Version: UXM2JA1Q
User Capacity: 251,000,193,024 bytes [251
GB]
Sector Sizes: 512 bytes logical,
4096 bytes physical
Rotation Rate: Solid State Device
TRIM Command:
Available
Device is: In
smartctl database 7.5/5706
ATA Version is: ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0
Gb/s)
Local Time is: Thu Oct 8 02:36:21
2026 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
ujpadmin@hotei:~$
- S .M .A .R.Tに対応していることが確認できた.
SSDの健康状態と寿命(書き込み量・通電時間)を確認する
- smartctlを使って,SSDの利用状況を確認する.
ujpadmin@hotei:~$ sudo smartctl -a /dev/sda🆑
smartctl 7.5 2025-04-30 r5714
[x86_64-linux-7.0.0-38-generic] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke,
www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Apple SD/SM/TS...E/F/G
SSDs
Device Model: APPLE SSD SM0256F
Serial Number: S1K4NYAG433466
LU WWN Device Id: 5 002538 655584d30
Firmware Version: UXM2JA1Q
User Capacity: 251,000,193,024 bytes [251
GB]
Sector Sizes: 512 bytes logical,
4096 bytes physical
Rotation Rate: Solid State Device
TRIM Command: Available
Device is: In
smartctl database 7.5/5706
ATA Version is: ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0
Gb/s)
Local Time is: Thu Oct 8 02:38:43
2026 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status:
(0x00) Offline data collection activity
was never started.
Auto Offline Data
Collection: Disabled.
Self-test execution status:
( 0) The previous self-test
routine completed
without error or no
self-test has ever
been run.
Total time to complete Offline
data collection:
( 0) seconds.
Offline data collection
capabilities:
(0x5f) SMART execute Offline
immediate.
Auto Offline data
collection on/off support.
Abort Offline
collection upon new
command.
Offline surface scan
supported.
Self-test supported.
No Conveyance
Self-test supported.
Selective Self-test
supported.
SMART
capabilities:
(0x0003)
Saves SMART data before entering
power-saving mode.
Supports SMART auto
save timer.
Error logging
capability:
(0x01) Error logging supported.
General Purpose
Logging supported.
Short self-test routine
recommended polling time:
( 2) minutes.
Extended self-test routine
recommended polling time: (
10) minutes.
SMART Attributes Data Structure revision number: 40
Vendor Specific SMART Attributes with Thresholds:
ID#
ATTRIBUTE_NAME
FLAG VALUE WORST THRESH
TYPE UPDATED WHEN_FAILED
RAW_VALUE
1 Raw_Read_Error_Rate
0x001a 200 200
000 Old_age
Always
- 0
5 Reallocated_Sector_Ct
0x0033 100 100
000 Pre-fail
Always
- 0
9
Power_On_Hours
0x0032 098 098
000 Old_age
Always
- 6711
12
Power_Cycle_Count
0x0032 091 091
000 Old_age
Always
- 8443
169 Unknown_Apple_Attrib
0x0013 253 253
010 Pre-fail
Always
- 1671086214912
173 Wear_Leveling_Count
0x0032 188 188
100 Old_age
Always
- 287786729667
174
Host_Reads_MiB
0x0022 099 099
000 Old_age
Always
- 16612199
175
Host_Writes_MiB
0x0022 099 099
000 Old_age
Always
- 19190802
192 Power-Off_Retract_Count 0x0012
099 099 000
Old_age
Always
- 339
194
Temperature_Celsius
0x0022 068 068
000 Old_age
Always
- 32 (Min/Max 19/81)
197 Current_Pending_Sector 0x0022
100 100 000
Old_age
Always
- 0
199 UDMA_CRC_Error_Count
0x001a 200 200
000 Old_age
Always
- 0
240 Unknown_SSD_Attribute 0x0022
100 100 000
Old_age
Always
- 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests,
use: smartctl -t]
SMART Selective self-test log data structure revision number
1
SPAN MIN_LBA MAX_LBA
CURRENT_TEST_STATUS
1
0 0
Not_testing
2
0 0
Not_testing
3
0 0
Not_testing
4
0 0
Not_testing
5
0 0
Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan
remainder of disk.
If Selective self-test is pending on power-up, resume after
0 minute delay.
The above only provides legacy SMART information - try
'smartctl -x' for more
ujpadmin@hotei:~$
| 評価項目 |
SMART属性・値 |
診断結果 |
| 総合診断 |
PASSED |
正常(ハード
ウェアエラーなし) |
| 不良セクター |
Reallocated_Sector_Ct
=
0 / Current_Pending_Sector = 0 |
ゼロ(物理障
害の発生ログなし) |
| 累積通電時間 |
Power_On_Hours
=
6711 |
約671時間
(約280日分) |
| 電源投入回数 |
Power_Cycle_Count
=
8443 |
8,443回 |
| 総書き込み量 |
Host_Writes_MiB
=
19190803 |
約18.3
TBW |
| 通信エラー |
UDMA_CRC_Error_Count
=
0 |
ケーブル・端
子の接触不良なし |
| 現在の温度 |
Temperature_Celsius
=
32 |
32°C(非
常に適温) |
- LLMによる評価.
- 注目ポイントと寿命評価
- 書き込み量は全体の約10〜12%程度
- 256GBクラスのSSD(MLC/TLC)は、通常 150TBW〜300TBW
程度の耐久性(書き込み寿命)を持っています。
- 現在の書き込み量は約 18.3 TB(19,190,803
MiB)ですので、寿命の1割程度しか消費しておらず、まだまだ余裕があります。
- 通電時間も短め
- 通電時間 6,711 時間(約9.3か月相当)は、サーバ用途として考えると非常に若い状態です。
- エラーログなし
- No Errors Logged となっており、これまでにデータ読み書きの失敗やタイムアウトも発生していません。
- 結論: サーバ(メール・Web用途)として24時間常時稼働させても全く問題のない健全なコンディションです。
ストレージを拡張する
- 搭載しているSSDの容量が,256GBで使われているのが233GBなので,利用量を増やす.
- 論理ボリュームを最大まで拡張する.
ujpadmin@hotei:~$ sudo lvextend -l +100%FREE
/dev/mapper/ubuntu--vg-ubuntu--lv🆑
Size of logical volume ubuntu-vg/ubuntu-lv changed
from 100.00 GiB (25600 extents) to <230.71 GiB (59061
extents).
Logical volume ubuntu-vg/ubuntu-lv successfully
resized.
ujpadmin@hotei:~$
ujpadmin@hotei:~$ sudo resize2fs
/dev/mapper/ubuntu--vg-ubuntu--lv🆑
resize2fs 1.47.2 (1-Jan-2025)
Filesystem at /dev/mapper/ubuntu--vg-ubuntu--lv is mounted
on /; on-line resizing required
old_desc_blocks = 13, new_desc_blocks = 29
The filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv is now
60478464 (4k) blocks long.
ujpadmin@hotei:~$
- 仮想ファイルシステムの拡張が成功.
- dfコマンドで確認.
jpadmin@hotei:~$ df -h /🆑
Filesystem
Size
Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv 227G
7.5G 209G 4% /
ujpadmin@hotei:~$
- ログ領域を分割するなどのパーティション方式は,宗教戦争になるので,今回は監視を十分する前提で1つにする.
マザーボードのセンサーからデータを取得
する
- lm-sensorsをインストールして,ハードウェア内の温度やファン回転数などを取得する.
- lm-sensors(Linux Monitoring
Sensors)は、マザーボード上の各種センサーからCPU温度・マザーボード温度・冷却ファンの回転数・各部電圧などのハード
ウェアリアルタイム情報 を取得するための標準ツールです。
- サーバーの異常発熱やファン故障の監視、負荷時の温度上昇のチェックなどに利用されます。
lm-sensors で取得・監視できる主な情報
| 監視項目 |
取得できるデータ例 |
用途 |
| CPU温度 |
各コアの温度
(Core 0: +42.0°C など) |
熱暴走やサー
マルスロットリングの検知 |
| マザーボード温度 |
システム基
板・チップセットの温度 |
筐体内のエア
フロー(排熱)状態の確認 |
| ファン回転数 |
冷却ファンの
RPM(fan1: 1800 RPM) |
ファン異常停
止や異常回転の早期発見 |
| 各部電圧 |
CPUコア電
圧、+3.3V, +12V, +5V など |
電源ユニット
の安定性確認 |
ujpadmin@hotei:~$ sudo apt install -y lm-sensors🆑
The following packages were automatically installed and are
no longer required:
linux-headers-7.0.0-30
linux-modules-7.0.0-30-generic
linux-headers-7.0.0-30-generic
linux-tools-7.0.0-30
linux-image-unsigned-7.0.0-30-generic
linux-tools-7.0.0-30-generic
linux-main-modules-zfs-7.0.0-30-generic
Use 'sudo apt autoremove' to remove them.
Installing:
lm-sensors
Suggested packages:
fancontrol i2c-tools read-edid
Summary:
Upgrading: 0, Installing: 1, Removing: 0, Not
Upgrading: 21
Download size: 92.7 kB
Space needed: 399 kB / 224 GB available
ー略ー
ujpadmin@hotei:~$ sudo sensors-detect🆑
# sensors-detect version 3.6.2
# System: Apple Inc. Macmini7,1 [1.0] (laptop)
# Board: Apple Inc. Mac-35C5E08120C7EEAF
# Kernel: 7.0.0-38-generic x86_64
# Processor: Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz
(6/69/1)
This program will help you determine which kernel modules
you need
to load to use lm_sensors most effectively. It is generally
safe
and recommended to accept the default answers to all
questions,
unless you know what you're doing.
Some south bridges, CPUs or memory controllers contain
embedded sensors.
Do you want to scan for them? This is totally safe.
(YES/no): yes🆑
Module cpuid loaded successfully.
Silicon Integrated Systems
SIS5595...
No
VIA VT82C686 Integrated
Sensors...
No
VIA VT8231 Integrated
Sensors...
No
AMD K8 thermal
sensors...
No
AMD Family 10h thermal
sensors...
No
AMD Family 11h thermal
sensors...
No
AMD Family 12h and 14h thermal
sensors...
No
AMD Family 15h thermal
sensors...
No
AMD Family 16h thermal
sensors...
No
AMD Family 17h thermal
sensors...
No
AMD Family 15h power
sensors...
No
AMD Family 16h power
sensors...
No
Hygon Family 18h thermal
sensors...
No
AMD Family 19h thermal
sensors...
No
Intel digital thermal
sensor...
Success!
(driver `coretemp')
Intel AMB FB-DIMM thermal
sensor...
No
Intel 5500/5520/X58 thermal
sensor...
No
VIA C7 thermal
sensor...
No
VIA Nano thermal
sensor...
No
Some Super I/O chips contain embedded sensors. We have to
write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): yes🆑
Probing for Super-I/O at 0x2e/0x2f
Trying family `National
Semiconductor/ITE'...
No
Trying family
`SMSC'...
No
Trying family
`VIA/Winbond/Nuvoton/Fintek'...
No
Trying family
`ITE'...
No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National
Semiconductor/ITE'...
No
Trying family
`SMSC'...
No
Trying family
`VIA/Winbond/Nuvoton/Fintek'...
No
Trying family
`ITE'...
No
Some hardware monitoring chips are accessible through the
ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This
is usually
safe though. Yes, you do have ISA I/O ports even if you do
not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no):
yes🆑
Probing for `National Semiconductor LM78' at
0x290... No
Probing for `National Semiconductor LM79' at
0x290... No
Probing for `Winbond W83781D' at
0x290...
No
Probing for `Winbond W83782D' at
0x290...
No
Lastly, we can probe the I2C/SMBus adapters for connected
hardware
monitoring devices. This is the most risky part, and while
it works
reasonably well on most systems, it has been reported to
cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no):
yes
Using driver `i2c-i801' for device 0000:00:1f.3: Intel Lynx
Point-LP (PCH)
Next adapter: SMBus I801 adapter at 0000:00:1f.3 (i2c-0)
Do you want to scan it? (YES/no/selectively): yes🆑
Next adapter: i915 gmbus ssc (i2c-1)
Do you want to scan it? (yes/NO/selectively): yes🆑
Next adapter: i915 gmbus vga (i2c-2)
Do you want to scan it? (yes/NO/selectively): yes🆑
Next adapter: i915 gmbus panel (i2c-3)
Do you want to scan it? (yes/NO/selectively): yes🆑
Next adapter: i915 gmbus dpc (i2c-4)
Do you want to scan it? (yes/NO/selectively): yes🆑
Next adapter: i915 gmbus dpb (i2c-5)
Do you want to scan it? (yes/NO/selectively): yes🆑
Next adapter: i915 gmbus dpd (i2c-6)
Do you want to scan it? (yes/NO/selectively): yes🆑
Next adapter: AUX B/DDI B/PHY B (i2c-7)
Do you want to scan it? (yes/NO/selectively): yes🆑
Next adapter: AUX C/DDI C/PHY C (i2c-8)
Do you want to scan it? (yes/NO/selectively): yes🆑
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `coretemp':
* Chip `Intel digital thermal sensor' (confidence: 9)
To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
#----cut here----
If you have some drivers built into your kernel, the list
above will
contain too many modules. Skip the appropriate ones!
Do you want to add these lines automatically to
/etc/modules? (yes/NO)yes🆑
Successful!
Monitoring programs won't work until the needed modules are
loaded. You may want to run '/etc/init.d/kmod start'
to load them.
Unloading cpuid... OK
ujpadmin@hotei:~$
- Intel Core i7 向けドライバ coretemp が無事に切り出され、/etc/modules
への書き込みまで正常に完了しています。
ujpadmin@hotei:~$ sudo cat /etc/modules🆑
# /etc/modules is obsolete and has been replaced by
/etc/modules-load.d/.
# Please see modules-load.d(5) and modprobe.d(5) for
details.
#
# Updating this file still works, but it is undocumented and
unsupported.
# Generated by sensors-detect on Thu Oct 8 03:31:09
2026
# Chip drivers
coretemp
ujpadmin@hotei:~$
ujpadmin@hotei:~$ sensors🆑
applesmc-isa-0300
Adapter: ISA adapter
Exhaust : 1800 RPM (min = 1800 RPM,
max = 4800 RPM)
TA0P:
+39.8°C
TA0V:
+23.2°C
TA0p:
+39.8°C
TA1P:
+40.0°C
TA1p:
+40.0°C
TA2P:
+42.8°C
TA2p:
+42.8°C
TC0C:
+41.0°C
TC0E:
+44.8°C
TC0F:
+45.2°C
TC0G:
+93.0°C
TC0J:
+0.2°C
TC0P:
+40.8°C
TC0c:
+41.0°C
TC0p:
+40.8°C
TC1C:
+41.0°C
TC1c:
+41.0°C
TCGC:
+44.0°C
TCGc:
+44.0°C
TCPG:
+98.0°C
TCSC:
+41.0°C
TCSc:
+41.0°C
TCTD:
-0.2°C
TCXC:
+44.8°C
TCXc:
+44.8°C
TCXr:
-55.2°C
TH0A: -127.0°C
TH0B: -127.0°C
TH0C: -127.0°C
TH0F: -127.0°C
TH0O:
+9.0°C
TH0P: -127.0°C
TH0R: -127.0°C
TH0a: -127.0°C
TH0b: -127.0°C
TH0c: -127.0°C
TH1A:
+32.0°C
TH1B:
+32.0°C
TH1C: -127.0°C
TH1F:
-49.0°C
TH1O:
+9.0°C
TH1P: -127.0°C
TH1R:
-49.0°C
TH1a:
+32.0°C
TH1b:
+32.0°C
TH1c: -127.0°C
TM0P:
+42.0°C
TM0V:
+42.0°C
TM0p:
+42.0°C
TPCD:
+49.0°C
TPCd:
+49.0°C
TS0V:
+34.2°C
TW0P:
+41.2°C
TW0p:
+41.2°C
Te0T:
+51.8°C
Te0t:
+51.8°C
Tm0P:
+40.8°C
Tm0p:
+40.8°C
Tp0C:
+39.0°C
Ts0G:
+49.0°C
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +46.0°C (high = +100.0°C, crit =
+100.0°C)
Core 0:
+43.0°C (high = +100.0°C, crit = +100.0°C)
Core 1:
+44.0°C (high = +100.0°C, crit = +100.0°C)
ujpadmin@hotei:~$
- applesmc ドライバと coretemp ドライバの両方から非常に詳細なデータが取れています。
| 項目 |
値 |
状態・解説 |
| ファン回転数
(Exhaust) |
1800
RPM |
最低回転数
(1800 RPM)で動作しており、非常に静音かつ安定しています。 |
| CPU温度
(coretemp) |
約
43°C〜46°C |
アイドル時と
して非常に適温(上限100°Cに対して十分な余裕)です。 |
| メモリ温度
(TM0P) |
42.0°C |
正常範囲内で
す。 |
| アンビエント
/吸気 (TA0P) |
39.8°C |
筐体内部温度
も安定しています。 |
- 色々な値があるけど,こういう見解で.
- 一部見られる異常値(-127°C や +98°C)について
- 出力の中に -127.0°C や +98.0°C
といった極端な数値が混ざっていますが、これは故障ではなく、Macハードウェア固有の仕様(無視して良い値)です。
- -127.0°C や -55.2°C の項目(TH0A等)
- このモデル(Mac mini
2014)に未搭載のセンサー(例:旧モデルのHDD温度センサーなど)や未接続のアナログピンをLinuxのドライ
バーが読みに行った際、データ未存在 (ヌル値)として -127 が返ってくる現象です。
- +93.0°C や +98.0°C の項目(TC0G, TCPG等)
- 理由:
- Apple独自の内部ロジック用・仮想ダイ(ダイポール)センサーです。実際の温度ではなく、電力計算用の係数デー
タなどが温度レジスタに入っているため高値に見えるだけです。
- 物理的な温度評価としては、Linux標準の coretemp-isa-0000(Package id 0:
46.0°C) の値を主軸として見れば間違いありません。
電力量・料金についての考察
- mac mini 2014には電力に関するセンサーがついてない.
- Mac mini 内部に電力センサー(Power Meter)のインターフェースがない
- 一部のサーバー専用マザーボード(iLO/IPMI搭載機)や近年のApple
Silicon(M1/M2/M3等)には消費電力を計測する専用チップ・センサーが組み込まれています。
- しかし、Mac mini 2014 などのIntel
Macには、システム全体のリアルタイム消費電力をOSへ報告するセンサ回路が搭載されていません。
- coretemp や applesmc ドライバの制限
- 先ほど確認した coretemp
はCPU内部の「温度」を取得する機能のみを持ち、電力計算(RAPL機能など)の値を正しくLinuxへ渡せない仕様になって
います。
| 動作状態 |
消費電力の目安 |
1か月の電気代(24時間稼
働・31円/kWh換算) |
| アイドル時
(低負荷時) |
約 6W 〜
10W |
約 135円
〜 225円 |
| Web/メー
ルサーバー通常稼働 |
約 10W
〜 15W |
約 225円
〜 338円 |
| CPUフル高
負荷時(100%) |
約 35W
〜 45W |
約 790円
〜 1,010円 |
|
|