2.2. 설치 안내서

다음 장은 실제적으로 FreeBSD를 설치하는 방법을 안내합니다. 혹, 잘못 되거나 빠트린 것이 있다면, 우리가 알 수 있도록 FreeBSD 문서화 프로젝트 메일링 리스트 으로 Email을 보내주세요.

2.2.1. 설치 전 고려사항

설치를 위해 반드시 고려되어야할 몇 가지 사항들이 있습니다. 다음은 각각의 설치방법에 대해 사전에 확인해야 할 사항들을 기술합니다.

첫번째로 할 것은 시스템이 FreeBSD에서 지원되는지를 확인하는 것입니다. 지원되는 하드웨어 목록은 본 핸드북에서 찾을 수 있습니다 ;-) 시스템에 설치된 "특별한" 카드(SCSI 콘트롤러, 이더넷 카드, 사운드 카드 등)의 목록을 만드는 것은 좋은 방법입니다. IRQ와 IO 포트 주소도 잊지말고 같이 적어두십시요.

2.2.1.1. 설치 디스크 만들기

몇장의 플로피 디스크를 만들어야 합니다. 이 디스크를 통해 부팅을 함으로써 FreeBSD를 설치할 수 있습니다. 만약 CD-ROM을 통해 설치할 생각이고, 또한 시스템이 CD-ROM 부팅을 지원한다면 플로피 디스크를 만들 필요는 없습니다. 하지만 이러한 상황이 아니라면 플로피 디스크를 만들어서 부팅해야 합니다.

Note: 시스템이 CD-ROM 부팅을 지원하는지 잘 모른다면, CD-ROM을 삽입하고 시스템을 재부팅 하십시요. 이때, BIOS 설정에서 부팅시 하드 디스크 보다 CD-ROM 드라이브를 먼저 검색하도록 설정을 조정해야 할 필요가 있을 것입니다.

Tip: CD-ROM으로 설치함에도 불구하고 파일을 다운로드하는 경우가 있습니다. 이것은 FreeBSD 인스톨러의 버그로 CD가 발매된 이후에 발견되어 수정되었습니다. 이러한 경우가 발생된다면, FTP 사이트의 이미지 복제본들은 가능한 빨리 수정되어 제공 될 것입니다만 아쉽게도 이미 구워진 CD는 갱신을 못하니까요.

  1. 부트 플로피 이미지 구하기

    .flp 확장자를 갖는 파일이 있습니다. FreeBSD CD-ROM을 갖고 있다면, 이 파일들을 floppies 서브 디렉토리에서 찾을 수 있습니다. 다른 방법으로는 FreeBSD FTP 사이트나 지역 미러 사이트의 floppies 디렉토리에서 다운로드 받을 수 있습니다.

    파일명은 FreeBSD 릴리즈(가끔씩 바뀜)와 설치될 시스템의 아키텍처(역주: x86, Alpha)에 따라 다릅니다. FTP 사이트에서 제공되는 설치 부트 이미지 정보는 귀하가 필요로 하는 특정 파일에 대한 최신 정보를 담고 있습니다.

  2. 플로피 디스크 준비

    다운로드 받은 이미지당 한개의 플로피 디스크가 필요합니다. 플로피 디스크는 손쉽게 겸함이 생길 수 있는데, 디스크를 직접 포맷해 봄으로써 겸함을 발견할 수 있습니다. 미리 포맷된 플로피 디스크를 신뢰하지 마십시요.

    Important: 만약 FreeBSD를 설치하는 과정에서 설치 프로그램이 다운되거나 멈추거나 혹은 제대로 동작하지 않을때 첫째로 의심을 해 볼 수 있는것은 플로피 디스크입니다. 이때는 다른 디스크에 이미지를 기록해서 다시 시도해 보시기 바랍니다.

  3. 플로피 디스크에 이미지 파일 기록하기

    kern.flp와 같은 이미지 파일은 디스크에 복사할 수 있는 일반적인 파일이 아닙니다. 이것은, 디스크의 완전한 컨텐츠 이미지 입니다.

    이 말은 파일을 디스크에 기록하기 위해 도스의 copy와 같은 명령을 사용할 수 없음을 의미 합니다. 대신 디스크에 이미지를 바로 기록하는 특정한 프로그램을 사용하여야 합니다.

    DOS(역주: Microsoft Windows 포함) 시스템에서 플로피를 만들고자 한다면, 우리가 제공하는 fdimage를 사용하십시요.

    CD-ROM에서 플로피를 만들고자 하고, CD-ROM이 E: 드라이브로 설정되어 있다면, 다음과 같은 명령을 수행할 수 있습니다:

        E:\> tools\fdimage floppies\kern.flp A:

    플로피 디스크를 바꿔가며 각각의 .flp 파일에 대해 이 명령을 수행하십시요. 필요하다면 .flp 파일을 저장한 곳에 맞게 명령문을 수정하십시요. CD-ROM을 갖고 있지 않다면 FTP 사이트의 tools 디렉토리에서 fdimage를 구할 수 있습니다.

    유닉스 시스템(FreeBSD 시스템과 흡사한, 역주: Solaris, Linux 등을 포함하여)에서 플로피를 만들 때에는 dd(1) 명령을 통해 이미지 파일을 디스크에 바로 기록할 수 있습니다. FreeBSD 시스템에서는 다음과 같이 수행될 수 있습니다:

        # dd if=kern.flp of=/dev/rfd0

    FreeBSD에서는 /dev/rfd0이 첫번째 플로피 디스크(A: 드라이브)를 의미합니다. /dev/rfd1는 B: 드라이브이고, 그렇게 계속 됩니다. 다른 유닉스 시스템은 플로피 디스크 디바이스가 다른 이름을 갖을 것이므로, 필요하다면 해당 시스템의 문서를 참고하십시요.

2.2.1.2. CDROM으로 설치

지원되지 않는 종류의 CDROM을 갖고 있다면, 본 장을 뛰어넘어 MS-DOS 설치 장으로 가십시요.

BSDi에서 제공되는 (역주: 그리고 FreeBSD KOREA에서 제공되는) FreeBSD CDROM을 사용한다면 설치에 앞서 별다른 준비가 필요하지는 않습니다. (다른 CDROM 배포판도 잘 될 것 입니다만, 그것이 어떻게 제작되었는지 모르기 때문에 보장할 수는 없습니다) DOS 상태에서 install.bat을 실행하여 바로 CD 설치 과정으로 부팅할 수 있고, makeflp.bat 명령을 통해 부트 플로피를 만들 수도 있습니다.

FreeBSD CD가 El Torito boot(역주: CD 부팅)를 지원하도록 제작되었고, 시스템 또한 CDROM 드라이브에서 바로 부팅을 할 수 있다면 (예전 시스템들은 대부분 안됩니다), 간편하게 FreeBSD CD 셋트중 (역주: BSDi와 FreeBSD KOREA에서는 FreeBSD를 모두 4장의 CD 담고 있다) 첫번째 CD를 삽입하고 시스템을 재부팅 하십시요. CD 부팅을 통해 바로 설치 메뉴를 볼 수 있을 것입니다.

MS-DOS 상에서 설치를 진행하고자 하며, 적합한 CD 드라이버를 갖고 있다면, CDROM에서 제공되는 install.bat 스크립트를 실행하십시요. 이것은 DOS 상태에서 바로 FreeBSD를 설치할 수 있도록 합니다.

Note: 반드시 실제 DOS 상태에서 실행하십시요. (DOS 모드로 부팅하여) Windows의 DOS 윈도우에서 실행하면 안됩니다.

가장 손쉬운 방법(DOS 상에서)으로 view 명령을 사용하십시요. 가능한 모든 방법들을 메뉴 형식으로 보여줄 것입니다

UNIX 시스템에서 부트 플로피를 만들고자 한다면, 본 가이드의 부트 플로피 만들기를 참고하십시요.

DOS나 플로피를 통해 부팅한 후에, 설치 과정에서 CDROM을 설택하여 배포본 전체를 CDROM으로 부터 설치할 수 있습니다. 이 과정중 CDROM 이외의 설치 미디어는 필요치 않습니다.

설치가 완전히 완료된 후 시스템이 (하드 디스크에서) 재부팅 됩니다. 다음의 명령을 통해 언제든지 CDROM을 마운트 할 수 있습니다.:

    # mount /cdrom

CD를 꺼내기 전에는 반드시 언마운트 하십시요. 다음 명령을 통해 수행됩니다:

    # umount /cdrom

드라이브에서 그냥 꺼내지 마세요!

Note: 설치를 진행하기 전에 CDROM을 드라이브에 삽입하여야 설치 프로그램이 인식할 수 있습니다. 또한 이렇게 하여야 설치 과정중 기본 시스템 설정에 CDROM이 자동으로 포함됩니다. (CDROM을 설치 미디어로 사용하지 않더라도)

마지막으로, 다른 사람들이 FTP 설치를 통해 귀하의 시스템에 있는 CDROM에 접근해 FreeBSD를 바로 설치하는것도 매우 쉽습니다. 시스템이 설치가 모두 완료된후, 간단히 다음 라인을 password 파일에 추가 하십시요. (vipw 명령을 사용하세요):

    ftp:*:99:99::0:0:FTP:/cdrom:/nonexistent

이제 귀하의 시스템과 네트워크에 연결된 시스템은 설치 과정중 FTP 미디어를 선택한 후, FTP 사이트 메뉴에서 "Other"를 선택하여 ftp://귀하의 시스템 IP 주소 를 입력합니다.

Note: 설치 과정중에 익명 FTP를 활성화(Enable) 시키면, 설치 프로그램이 위의 과정을 대신 설정하여 줍니다.

2.2.1.3. 플로피 디스크로 설치

단지 어려운 방법으로 설치하고 싶거나 하드웨어가 지원되지 않는 이유로 플로피 디스크를 통해 설치하여야 한다면, 먼저 다수의 플로피 디스크를 준비하여야 합니다. (이 방법을 사용하지 않기를 바랍니다)

최소한 bin (바이너리 배포본) 디렉토리의 파일을 모두 담을 수 있을 만큼의 1.44MB나 1.2MB 플로피가 필요합니다. DOS 상에서 작업을 진행한다면 반드시 MS-DOS의 FORMAT 명령으로 플로피를 모두 포맷 하여야 합니다. 윈도우 상에서는 디스크를 포맷하기 위해 Explorer를 사용 하십시요. (A: 드라이브에서 오른쪽 마우스 버튼을 클릭해 "Format"을 선택합니다.

포맷되어 제공되는 플로피를 신뢰하지 마세요! 확실히 하기 위해 직접 다시 포맷하시기 바랍니다. 신중을 기하라고 말하는 이유는, 제대로 포맷되지 않은 플로피를 사용해서 발생된 문제들이 다수 접수되어 왔기 때문입니다.

플로피에 DOS 파일시스템을 만들 필요가 없기 때문에 다른 FreeBSD 시스템을 사용하여 플로피를 제작하는 경우에도 역시 포맷을 하는것이 좋습니다. 대신 disklabel과 newfs 명령을 사용해 다음과 같이 UFS 파일시스템을 만들 수 있습니다. (3.5" 1.44MB 플로피)

    # fdformat -f 1440 fd0.1440
    # disklabel -w -r fd0.1440 floppy3
    # newfs -t 2 -u 18 -l 1 -i 65536 /dev/rfd0

Note: 5.25" 1.2MB 디스크엔 fd0.1200과 floppy5를 사용하십시요.

포맷이 완료되면 다른 파일시스템과 같이 마운트하여 사용할 수 있습니다.

포맷을 완료한후, 파일을 플로피에 복사 하여야 합니다. 배포 파일은 적당한 크기로 나뉘어 있기때문에, 1.44MB 플로피 한장에 5개의 파일을 넣을 수 있습니다. 배포 파일이 디스크에 모두 수록 될 때까지, 각각의 플로피에 넣을 수 있는 만큼의 파일을 복사하십시요. 배포 파일들은 다음과 같이 반드시 서브 디렉토리에 위치해야 합니다. 예: a:\bin\bin.aa, a:\bin\bin.ab, ...

설치 과정중 미디어 선택 화면이 나오면 "Floppy"를 선택 하십시요. 그러면 나머지 과정이 안내될 것입니다.

2.2.1.4. MS-DOS 파티션에서 설치

MS-DOS 파티션에서 설치하기 위해서는, c:\FreeBSD와 같은 디렉토리에 배포 파일을 복사 하십시요. CDROM이나 FTP 디렉토리 구조의 일부가 이 디렉토리 아래에 복사되어야 하기 때문에, CD에서 복사를 하고자 한다면 DOS의 xcopy 명령을 사용하길 권합니다. 예로, FreeBSD 최소 설치를 위해서는 다음이 복사되어야 합니다:

    C:\> md c:\FreeBSD
    C:\> xcopy e:\bin c:\FreeBSD\bin\ /s
    C:\> xcopy e:\manpages c:\FreeBSD\manpages\ /s

충분한 여유공간이 있는 곳을 C: 드라이브, CDROM이 마운트된 곳이 E: 드라이브라 가정합니다.

CDROM 드라이브가 없다면, 다음 위치에서 배포본을 다운로드 할 수 있습니다. ftp.FreeBSD.org. 각각의 배포본은 고유의 디렉토리 안에 위치합니다. 예로, bin 배포본은 4.2/bin 디렉토리에서 찾을 수 있습니다.

MS-DOS 파티션에서 설치하고자 하는 배포본들을 c:\FreeBSD 디렉토리(배포본을 수용할 용량이 있는) 아래에 복사 하십시요. -- 최소 설치를 위해서는 BIN 배포본만 필요합니다.

2.2.1.5. QIC/SCSI 테이프로 설치

테이프에서의 설치는 가장 쉬운 방법이며, 온라인 FTP, CDROM 설치보다 빠릅니다. 설치 프로그램은 테이프에 파일들이 tar로 묶여있다고 기대하기 때문에, 설치하고자 하는 배포 파일들을 모두 획득한 후, 다음과 같이 tar 명령으로 테이프에 저장 하여야 합니다:

    # cd /freebsd/distdir
    # tar cvf /dev/rwt0 dist1 ... dist2

설치시, 임시 디렉토리(설치시 선택할 수 있습니다)에 테이프의 모든 자료가 수용될 수 있는 만큼의 충분한 여유 공간이 확보되어야 합니다. 테이프는 랜덤 억세스가 안되는 특성으로 인하여, 이 설치 방법은 임시 저장 영역을 필요로 합니다. 테이프에 기록된 용량 만큼의 임시 저장공간이 요구될 것이란 점을 명심하십시요.

Note: 부트 플로피로 부팅하기 전에 테이프가 드라이브에 삽입되어 있어야 합니다. 그렇지 않으면 테이프 드라이브를 찾지 못할 것입니다.

2.2.1.6. 네트워크로 설치

3가지 종류의 네트워크 설치가 지원됩니다. 시리얼 포트 (SLIP 혹은 PPP), 병렬 포트 (PLIP (laplink 케이블)), 혹은 Ethernet (몇몇 PCMCIA를 포함하여 표준 이더넷 콘트롤러).

SLIP 구현은 구식이며, 주 시스템과 유선으로 연결되어야 하는 제약이 있습니다. SLIP 설치는 현재 전화걸기 기능을 지원하지 않기 때문에 반드시 유선 케이블로 연결되어야 하며, 이 기능은 PPP 유틸리티에서 지원됩니다. PPP가 가능하다면 언제나 SLIP 보단 PPP를 사용하십시요.

모뎀을 사용한다면, PPP는 유일한 선택입니다. 설치 과정에서 서비스 제공자의 정보가 필요하므로 미리 준비해 두십시요.

ISP에 연결하기 위해 PAP나 CHAP를 사용한다면(다시말해, 별도의 프로그램 구동 없이 윈도우에서 ISP에 연결할 수 있다면), ppp 프롬프트에서 dial 명령을 입력하는것이 해야 할 전부입니다. 그렇지 않다면 PPP 다이얼러는 매우 간단한 터미널 에뮬레이터만을 제공하기 때문에 귀하의 모뎀에 맞는 "AT 명령"으로 ISP에 전화 거는 방법을 알아야 합니다. 자세한 정보는 user-ppp 핸드북과 FAQ를 참고하십시요. 문제가 발생된다면 set log local ... 명령을 통해 화면으로도 로그 메시지를 전환해 살펴 보십시요.

다른 FreeBSD(2.0R 이후 버젼)와의 유선연결을 통한 방법도 가능 하다면, 아마 "laplink" 병렬 포트 케이블을 통한 설치를 고려하실 겁니다. 병렬 포트의 전송 속도는 일반적인 직렬 선로보다 매우 빠릅기 때문에(최고 50k/sec), 빠르게 설치할 수 있습니다.

Finally, for the fastest possible network installation, an ethernet adapter is always a good choice! FreeBSD supports most common PC ethernet cards; a table of supported cards (and their required settings) is provided in the Supported Hardware list. If you are using one of the supported PCMCIA ethernet cards, also be sure that it is plugged in before the laptop is powered on! FreeBSD does not, unfortunately, currently support hot insertion of PCMCIA cards during installation.

You will also need to know your IP address on the network, the netmask value for your address class, and the name of your machine. If you are installing over a PPP connection and do not have a static IP, fear not, the IP address can be dynamically assigned by your ISP. Your system administrator can tell you which values to use for your particular network setup. If you will be referring to other hosts by name rather than IP address, you will also need a name server and possibly the address of a gateway (if you are using PPP, it is your provider's IP address) to use in talking to it. If you want to install by FTP via a HTTP proxy (see below), you will also need the proxy's address. If you do not know the answers to all or most of these questions, then you should really probably talk to your system administrator or ISP before trying this type of installation.

2.2.1.6.1. Before Installing via NFS

The NFS installation is fairly straight-forward. Simply copy the FreeBSD distribution files you want onto a server somewhere and then point the NFS media selection at it.

If this server supports only "privileged port" (as is generally the default for Sun workstations), you will need to set this option in the Options menu before installation can proceed.

If you have a poor quality ethernet card which suffers from very slow transfer rates, you may also wish to toggle the appropriate Options flag.

In order for NFS installation to work, the server must support subdir mounts, e.g., if your FreeBSD 3.4 distribution directory lives on:ziggy:/usr/archive/stuff/FreeBSD, then ziggy will have to allow the direct mounting of /usr/archive/stuff/FreeBSD, not just /usr or /usr/archive/stuff.

In FreeBSD's /etc/exports file, this is controlled by the -alldirs. Other NFS servers may have different conventions. If you are getting "permission denied" messages from the server, then it is likely that you do not have this enabled properly.

2.2.1.6.2. Before Installing via FTP

FTP installation may be done from any FreeBSD mirror site containing a reasonably up-to-date version of FreeBSD. A full list of FTP mirrors located all over the world is provided during the install process.

If you are installing from an FTP site not listed in this menu, or are having trouble getting your name server configured properly, you can also specify a URL to use by selecting the choice labeled "Other" in that menu. You can also use the IP address of a machine you wish to install from, so the following would work in the absence of a name server:

    ftp://209.55.82.20/pub/FreeBSD/4.2-RELEASE

There are three FTP installation modes you can choose from: active or passive FTP or via a HTTP proxy.

FTP Active

This option will make all FTP transfers use "Active" mode. This will not work through firewalls, but will often work with older FTP servers that do not support passive mode. If your connection hangs with passive mode (the default), try active!

FTP Passive

This option instructs FreeBSD to use "Passive" mode for all FTP operations. This allows the user to pass through firewalls that do not allow incoming connections on random port addresses.

FTP via a HTTP proxy

This option instructs FreeBSD to use the HTTP protocol (like a web browser) to connect to a proxy for all FTP operations. The proxy will translate the requests and send them to the FTP server. This allows the user to pass through firewalls that do not allow FTP at all, but offer a HTTP proxy. In this case, you have to specify the proxy in addition to the FTP server.

Note: There is another type of FTP proxy other tha HTTP proxies. This type is very uncommon, though. If you are not absolutely certain, you can assume that you have a HTTP proxy as described above.

For a proxy FTP server, you should usually give the name of the server you really want as a part of the username, after an "@" sign. The proxy server then "fakes" the real server. For example, assuming you want to install from ftp.FreeBSD.org, using the proxy FTP server foo.bar.com, listening on port 1024.

In this case, you go to the options menu, set the FTP username to ftp@ftp.FreeBSD.org, and the password to your email address. As your installation media, you specify FTP (or passive FTP, if the proxy supports it), and the URL ftp://foo.bar.com:1234/pub/FreeBSD.

Since /pub/FreeBSD from ftp.FreeBSD.org is proxied under foo.bar.com, you are able to install from that machine (which will fetch the files from ftp.FreeBSD.org as your installation requests them.

2.2.1.7. Check your BIOS drive numbering

If you have used features in your BIOS to renumber your disk drives without recabling them then you should read Section 10.2 first to avoid confusion.

2.2.2. Installing FreeBSD

Once you have completed the pre-installation step relevant to your situation, you are ready to install FreeBSD!

Although you should not experience any difficulty, there is always the chance that you may, no matter how slight it is. If this is the case in your situation, then you may wish to go back and re-read the relevant preparation section or sections. Perhaps you will come across something you missed the first time. If you are having hardware problems, or FreeBSD refuses to boot at all, read the Hardware Guide for a list of possible solutions.

The FreeBSD boot floppies contain all of the online documentation you should need to be able to navigate through an installation. If it does not, please let us know what you found to be the most confusing or most lacking. Send your comments to the FreeBSD 문서화 프로젝트 메일링 리스트 . It is the objective of the installation program (sysinstall) to be self-documenting enough that painful "step-by-step" guides are no longer necessary. It may take us a little while to reach that objective, but nonetheless, it is still our objective :-)

Meanwhile, you may also find the following "typical installation sequence" to be helpful:

  1. Boot the kern.flp floppy and when asked, remove it and insert the mfsroot.flp and hit return. After a boot sequence which can take anywhere from 30 seconds to 3 minutes, depending on your hardware, you should be presented with a menu of initial choices. If the kern.flp floppy does not boot at all or the boot hangs at some stage, read the Q&A section of the Hardware Guide for possible causes.

  2. Press F1. You should see some basic usage instructions on the menu screen and general navigation. If you have not used this menu system before then please read this thoroughly.

  3. Select the Options item and set any special preferences you may have.

  4. Select a Standard, Express, or Custom install, depending on whether or not you would like the installation to help you through a typical installation, give you a high degree of control over each step, or simply whiz through it (using reasonable defaults when possible) as fast as possible. If you have never used FreeBSD before, the Standard installation method is most recommended.

  5. The final configuration menu choice allows you to further configure your FreeBSD installation by giving you menu-driven access to various system defaults. Some items, like networking, may be especially important if you did a CDROM, tape, or floppy install and have not yet configured your network interfaces (assuming you have any). Properly configuring such interfaces here will allow FreeBSD to come up on the network when you first reboot from the hard disk.