manekineko倉金家ホームページ

趣味の部屋/サーバー構築メモ その4

SDXCカードを使う

2020年3月17日

容量の大きな(64GBの)SDカードを読み書きする必要があったが、CentOS7ではそのままではできなかった。
カードはSDXCタイプでフォーマットはexFATなのでこれを認識させて読み書きできるようにする。
カードはUSBタイプのカードリーダーに挿して使う。

参考記事
http://www.yamamotor.jp/?p=1557#more-1557
https://qiita.com/MoriKen/items/1fff4f7ed8eae88a9983
など。
ほぼそのまま。以下3つをやる。
# wget https://forensics.cert.org/cert-forensics-tools-release-el7.rpm
# rpm -Uvh cert-forensics-tools-release*rpm
# yum -y –enablerepo=forensics install exfat-utils

rpm取得とインストール
# wget https://forensics.cert.org/cert-forensics-tools-release-el7.rpm
--2020-03-17 16:05:00-- https://forensics.cert.org/cert-forensics-tools-release-el7.rpm
forensics.cert.org (forensics.cert.org) をDNSに問いあわせています... 192.88.209.7
forensics.cert.org (forensics.cert.org)|192.88.209.7|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 12248 (12K) [application/x-rpm]
 cert-forensics-tools-release-el7.rpm' に保存中

100%[==========================================================================================>] 12,248 --.-K/s 時間 0.001s

2020-03-17 16:05:02 (15.2 MB/s) -  cert-forensics-tools-release-el7.rpm' へ保存完了 [12248/12248]

# rpm -Uvh cert-forensics-tools-release*rpm
準備しています... ################################# [100%]
更新中 / インストール中...
1:cert-forensics-tools-release-7-14################################# [100%]

# yum -y –enablerepo=forensics install exfat-utils
準備しています... ################################# [100%]
更新中 / インストール中...
1:cert-forensics-tools-release-7-14################################# [100%]
[root@moonlight ~]# yum --enablerepo=forensics install exfat-utils
読み込んだプラグイン:fastestmirror, langpacks, priorities, refresh-packagekit, versionlock
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 5.6 kB 00:00:00
* base: ftp.riken.jp
* epel: ftp.iij.ad.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
adobe-linux-x86_64 | 2.9 kB 00:00:00
base | 3.6 kB 00:00:00
epel | 5.3 kB 00:00:00
extras | 2.9 kB 00:00:00
forensics | 3.0 kB 00:00:00
forensics-splunk | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/4): epel/x86_64/updateinfo | 1.0 MB 00:00:01
epel/x86_64/primary_db FAILED
http://mirror.pregi.net/pub/Linux/Fedora/epel/7/x86_64/repodata/3e644c39149d0df9114c30604b0cab74b29e65c8279ee9c691c41b4716a8a115-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
他のミラーを試します。
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

(2/4): forensics-splunk/7/x86_64/primary_db | 17 kB 00:00:02
(3/4): forensics/7/x86_64/primary_db | 284 kB 00:00:03
(4/4): epel/x86_64/primary_db | 6.7 MB 00:00:10
210 packages excluded due to repository priority protections
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ exfat-utils.x86_64 0:1.3.0-1.el7 を インストール
--> 依存性解決を終了しました。

依存性を解決しました

====================================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
====================================================================================================================================
インストール中:
exfat-utils x86_64 1.3.0-1.el7 forensics 62 k

トランザクションの要約
====================================================================================================================================
インストール 1 パッケージ

総ダウンロード容量: 62 k
インストール容量: 279 k
Is this ok [y/d/N]: y
Downloading packages:
警告: /var/cache/yum/x86_64/7/forensics/packages/exfat-utils-1.3.0-1.el7.x86_64.rpm: ヘッダー V4 RSA/SHA1 Signature、鍵 ID 87e360b8: NOKEY
exfat-utils-1.3.0-1.el7.x86_64.rpm の公開鍵がインストールされていません
exfat-utils-1.3.0-1.el7.x86_64.rpm | 62 kB 00:00:02
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cert-forensics-2018-04-07 から鍵を取得中です。
Importing GPG key 0x87E360B8:
Userid : "CERT Forensics Operations and Investivations Team "
Fingerprint: 26a0 829d 5c01 fc51 c304 9037 e97f 3e0a 87e3 60b8
Package : cert-forensics-tools-release-7-14.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-cert-forensics-2018-04-07
上記の処理を行います。よろしいでしょうか? [y/N]y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
警告: RPMDB は yum 以外で変更されました。
インストール中 : exfat-utils-1.3.0-1.el7.x86_64 1/1
検証中 : exfat-utils-1.3.0-1.el7.x86_64 1/1

インストール:
exfat-utils.x86_64 0:1.3.0-1.el7

完了しました!




2021.12.18 追記:

これでしばらく問題は出ませんでしたが、2021年12月、ここで導入したforensicsレポジトリがCentOSやepelと合わなくなったみたいで、アップデート時に大量のエラーが出だしました。
対策としてforensicsのレポジトリはとりあえず無効にしておきました。特に支障はありません。

CentOS8も出てCentOS7はもうあまり注力されないようなので今後要注意かな。