[FreeBSD] インストールイメージをダウンロードする。

まずはどのバージョンをインストールするか?を決めます。公式サイトの説明を読んで FreeBSD の 9.3 をインストールすることに決めました。

公式サイトによると、FreeBSD のリリース(OS)は、プロダクションリリースとレガシーリリースという2つに区別されていて、プロダクションリリースが最新機能を求めるユーザ向けで、レガシーリリースが保守的なアップデート方針を採用しているものということらしい。

別に最新機能は求めていないのでレガシーリリースの中で一番新しい 9.3 にしておこう。それくらいの感覚で決定です。

FreeBSD の FTP サーバから 9.3 のインストールイメージをダウンロードします。Windows パソコンを使っても良かったのですが、USB メモリーに OS イメージを焼くことを考えると Linux の方が楽な気がしたので Lubuntu をインストールしているパソコンでダウンロードを実行しました。

まず、FreeBSD の FTP サーバに接続するところからです。ターミナルを立ち上げて CLI で行います。

$ ftp ftp.FreeBSD.org
Connected to ftp.geo.FreeBSD.org.
220 This is ftp0.isc.freebsd.org – hosted at ISC.org
Name (ftp.FreeBSD.org:keramax): anonymous
331 Please specify the password.
Password:
230-
230-This is ftp0.isc.FreeBSD.org, graciously hosted by
230-Internet Systems Consortium – ISC.org.
230-
230-FreeBSD files can be found in the /pub/FreeBSD directory.
230-
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

Name のところでユーザ名の入力を求められますが、anonymous (匿名) と入力すれば良いでしょう。Password: のところは匿名ユーザを使用するときは自分のメールアドレスを入力するのがマナーだった記憶がありますが、あやふやなので今回はノンパスでエンターを押しました。これで FTP サーバに接続できました。

ここからは 9.3 のインストールイメージがあるディレクトリまで移動していきます。適宜、pwd と dir でカレントディレクトリとそこにあるファイルを確認します。

ftp> pwd
257 “/”
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-r–r– 1 ftp ftp 5430 Jul 17 19:10 favicon.ico
-rw-r–r– 1 ftp ftp 704 Jul 18 23:03 index.html
drwxr-xr-x 3 ftp ftp 3 Jul 17 18:48 pub
226 Directory send OK.
ftp> cd pub
250 Directory successfully changed.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxrwxr-x 12 ftp ftp 27 Dec 14 10:02 FreeBSD
226 Directory send OK.
ftp> cd FreeBSD
250-ISO images of FreeBSD releases may be found in the releases/ISO-IMAGES
250-directory. For independent files and tarballs, see individual
250-releases/${machine}/${machine_arch} directories. For example,
250-releases/amd64/amd64 and releases/powerpc/powerpc64.
250 Directory successfully changed.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxrwxr-x 6 ftp ftp 11 Oct 23 2006 CERT
lrwxrwxrwx 1 ftp ftp 15 Apr 19 2007 CTM -> development/CTM
lrwxrwxrwx 1 ftp ftp 17 Apr 19 2007 CVSup -> development/CVSup
drwxrwxr-x 4 ftp ftp 4 Oct 23 2006 ERRATA
lrwxr-xr-x 1 ftp ftp 31 Feb 09 2013 ISO-IMAGES-amd64 -> releases/amd64/amd64/ISO-IMAGES
lrwxr-xr-x 1 ftp ftp 29 Feb 09 2013 ISO-IMAGES-i386 -> releases/i386/i386/ISO-IMAGES
lrwxr-xr-x 1 ftp ftp 29 Feb 09 2013 ISO-IMAGES-ia64 -> releases/ia64/ia64/ISO-IMAGES
lrwxrwxrwx 1 ftp ftp 24 Apr 19 2007 ISO-IMAGES-pc98 -> releases/pc98/ISO-IMAGES
lrwxr-xr-x 1 ftp ftp 35 Feb 09 2013 ISO-IMAGES-powerpc -> releases/powerpc/powerpc/ISO-IMAGES
lrwxr-xr-x 1 ftp ftp 37 Feb 09 2013 ISO-IMAGES-powerpc64 -> releases/powerpc/powerpc64/ISO-IMAGES
lrwxr-xr-x 1 ftp ftp 35 Feb 09 2013 ISO-IMAGES-sparc64 -> releases/sparc64/sparc64/ISO-IMAGES
-rw-rw-r– 1 ftp ftp 3795 Feb 10 2013 README.TXT
-rw-rw-r– 1 ftp ftp 35 Dec 14 13:00 TIMESTAMP
drwxrwxr-x 4 ftp ftp 4 Oct 28 2012 branches
drwxrwxr-x 9 ftp ftp 11 Jun 06 2014 development
-rw-r–r– 1 ftp ftp 4590 Dec 14 10:02 dir.sizes
lrwxrwxrwx 1 ftp ftp 15 Apr 19 2007 distfiles -> ports/distfiles
drwxrwxr-x 27 ftp ftp 50 Jun 01 2014 doc
drwxrwxr-x 11 ftp ftp 15 May 28 2014 ports
drwxrwxr-x 11 ftp ftp 13 Sep 13 13:50 releases
drwxr-xr-x 10 ftp ftp 12 Jul 29 18:51 snapshots
drwxrwxr-x 5 ftp ftp 27 Oct 24 2006 tools
drwxrwxr-x 2 ftp ftp 3 Oct 24 2006 updates
226 Directory send OK.
ftp> cd releases
250 Directory successfully changed.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxrwxr-x 8 ftp ftp 8 Sep 13 13:50 ISO-IMAGES
-rw-rw-r– 1 ftp ftp 895 Jul 02 19:03 README.TXT
-rw-r–r– 1 ftp ftp 35 Dec 14 13:00 TIMESTAMP
drwxr-xr-x 5 ftp ftp 5 Nov 13 02:27 VM-IMAGES
drwxrwsr-x 5 ftp ftp 12 Nov 13 01:41 amd64
drwxrwxr-x 3 ftp ftp 3 Nov 12 05:57 arm
drwxrwsr-x 5 ftp ftp 12 Nov 13 01:42 i386
drwxrwsr-x 4 ftp ftp 11 Nov 13 01:43 ia64
drwxrwsr-x 5 ftp ftp 6 Jul 02 16:22 pc98
drwxrwsr-x 5 ftp ftp 11 Nov 13 01:43 powerpc
drwxrwsr-x 5 ftp ftp 12 Nov 13 01:44 sparc64
226 Directory send OK.
ftp> cd i386
250 Directory successfully changed.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
lrwxr-xr-x 1 ftp ftp 17 Jan 17 2014 10.0-RELEASE -> i386/10.0-RELEASE
lrwxr-xr-x 1 ftp ftp 13 Oct 22 15:43 10.1-RC3 -> i386/10.1-RC3
lrwxr-xr-x 1 ftp ftp 17 Nov 12 05:56 10.1-RELEASE -> i386/10.1-RELEASE
drwxrwxr-x 13 ftp ftp 25 Jun 20 2013 8.4-RELEASE
lrwxr-xr-x 1 ftp ftp 16 Jan 16 2013 9.1-RELEASE -> i386/9.1-RELEASE
lrwxr-xr-x 1 ftp ftp 16 Sep 30 2013 9.2-RELEASE -> i386/9.2-RELEASE
lrwxr-xr-x 1 ftp ftp 16 Jul 11 14:21 9.3-RELEASE -> i386/9.3-RELEASE
drwxrwxr-x 3 ftp ftp 5 Jul 02 16:26 ISO-IMAGES
-rw-rw-r– 1 ftp ftp 637 Nov 23 2005 README.TXT
drwxrwxr-x 9 ftp ftp 10 Nov 13 01:42 i386
226 Directory send OK.
ftp> cd i386
250 Directory successfully changed.
ftp> pwd
257 “/pub/FreeBSD/releases/i386/i386”
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxrwxr-x 2 ftp ftp 9 Jan 17 2014 10.0-RELEASE
drwxrwxr-x 2 ftp ftp 9 Oct 22 15:42 10.1-RC3
drwxrwxr-x 2 ftp ftp 9 Nov 12 05:56 10.1-RELEASE
lrwxr-xr-x 1 ftp ftp 14 Oct 02 2013 8.4-RELEASE -> ../8.4-RELEASE
drwxrwxr-x 2 ftp ftp 9 Jul 06 13:21 9.1-RELEASE
drwxrwxr-x 2 ftp ftp 10 Sep 27 2013 9.2-RELEASE
drwxrwxr-x 2 ftp ftp 9 Jul 11 20:36 9.3-RELEASE
drwxrwxr-x 7 ftp ftp 8 Sep 13 13:50 ISO-IMAGES
226 Directory send OK.
ftp> cd ISO-IMAGES
250 Directory successfully changed.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxrwxr-x 2 ftp ftp 8 Jan 19 2014 10.0
drwxrwxr-x 2 ftp ftp 26 Nov 13 01:42 10.1
lrwxr-xr-x 1 ftp ftp 20 Jun 07 2013 8.4 -> ../../ISO-IMAGES/8.4
drwxrwxr-x 2 ftp ftp 8 Dec 11 2012 9.1
drwxrwxr-x 2 ftp ftp 8 Sep 27 2013 9.2
drwxrwxr-x 2 ftp ftp 14 Jul 13 18:17 9.3
226 Directory send OK.
ftp> cd 9.3
250 Directory successfully changed.
ftp> pwd
257 “/pub/FreeBSD/releases/i386/i386/ISO-IMAGES/9.3”
ftp>

目的のディレクトリー /pub/FreeBSD/releases/i386/i386/ISO-IMAGES/9.3 まで到着しました。dir で get するインストールイメージを確認します。

ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-r–r– 1 ftp ftp 801 Jul 11 04:40 CHECKSUM.MD5-9.3-RELEASE-i386
-rw-r–r– 1 ftp ftp 1151 Jul 11 04:39 CHECKSUM.SHA256-9.3-RELEASE-i386
-rw-r–r– 1 ftp ftp 164935680 Jul 11 03:55 FreeBSD-9.3-RELEASE-i386-bootonly.iso
-rw-r–r– 1 ftp ftp 52840048 Jul 11 03:55 FreeBSD-9.3-RELEASE-i386-bootonly.iso.xz
-rw-r–r– 1 ftp ftp 608919552 Jul 11 03:54 FreeBSD-9.3-RELEASE-i386-disc1.iso
-rw-r–r– 1 ftp ftp 370013888 Jul 11 03:54 FreeBSD-9.3-RELEASE-i386-disc1.iso.xz
-rw-r–r– 1 ftp ftp 1658320896 Jul 11 04:01 FreeBSD-9.3-RELEASE-i386-dvd1.iso
-rw-r–r– 1 ftp ftp 1397183124 Jul 11 04:01 FreeBSD-9.3-RELEASE-i386-dvd1.iso.xz
-rw-r–r– 1 ftp ftp 649936896 Jul 11 04:33 FreeBSD-9.3-RELEASE-i386-memstick.img
-rw-r–r– 1 ftp ftp 372891532 Jul 11 04:33 FreeBSD-9.3-RELEASE-i386-memstick.img.xz
-rw-r–r– 1 ftp ftp 172105728 Jul 11 04:33 FreeBSD-9.3-RELEASE-i386-mini-memstick.img
-rw-r–r– 1 ftp ftp 54174912 Jul 11 04:33 FreeBSD-9.3-RELEASE-i386-mini-memstick.img.xz
226 Directory send OK.
ftp>

いろいろありますね。一番やりやすいのは、FreeBSD-9.3-RELEASE-i386-memstick.img をダウンロードすることです。これをダウンロードして USB メモリーにコピーしてインストールを行なう形になります。容量は650M ほどです。

これとは別に bootonly と書かれたものがありますがこれでインストールを行う場合はネットワークインストールを行うことになります。今回のインストールではネットワークインストールでやってみたいので今日はこのファイル FreeBSD-9.3-RELEASE-i386-bootonly.iso をダウンロードします。容量は 164M ほど。

うまくインストールできなかったら FreeBSD-9.3-RELEASE-i386-memstick.img をまたダウンロードしてやり直せば良いだけだからあまり深くは考えません。

get を実施する前に hash, bin, prom を叩きます。

ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> bin
200 Switching to Binary mode.
ftp> prom
Interactive mode off.
ftp>

とくに hash を叩いておくと、FTP の進行状況が画面に ############# と表示されてわかりやすいので入れると良いでしょう。

ftp> get FreeBSD-9.3-RELEASE-i386-bootonly.iso
local: FreeBSD-9.3-RELEASE-i386-bootonly.iso remote: FreeBSD-9.3-RELEASE-i386-bootonly.iso
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for FreeBSD-9.3-RELEASE-i386-bootonly.iso (164935680 bytes).
################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################## (以下省略)
226 Transfer complete.
164935680 bytes received in 112.47 secs (1432.1 kB/s)
ftp>

ダウンロード完了。bye を叩いて FTP のセッションを終了させます。

ftp> bye
221 Goodbye.
$

ls コマンドでダウンロードしたファイルの存在を確認します。

$ ls -ltr
(省略)
-rw-r–r– 1 keramax keramax 164935680 12月 14 22:52 FreeBSD-9.3-RELEASE-i386-bootonly.iso
$

164 メガの bootonly のファイルがあることが確認できます。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください