Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

2.13 PreparingYour Own Installation Media

Note: To prevent repetition, ``FreeBSD disk'' in this context means a FreeBSDCDROM or DVD that you have purchased or produced yourself.

There may be some situations in which you need to create your own FreeBSD installationmedia and/or source. This might be physical media, such as a tape, or a source that sysinstall can use to retrieve the files, such as a local FTPsite, or an MS-DOS® partition.

For example:

  • You have many machines connected to your local network, and one FreeBSD disk. You wantto create a local FTP site using the contents of the FreeBSD disk, and then have yourmachines use this local FTP site instead of needing to connect to the Internet.

  • You have a FreeBSD disk, and FreeBSD does not recognize your CD/DVD drive, but MS-DOS/Windows® does. Youwant to copy the FreeBSD installations files to a DOS partition on the same computer, andthen install FreeBSD using those files.

  • The computer you want to install on does not have a CD/DVD drive or a network card,but you can connect a ``Laplink-style'' serial or parallel cable to a computer thatdoes.

  • You want to create a tape that can be used to install FreeBSD.

2.13.1 Creating anInstallation CDROM

As part of each release, the FreeBSD project makes available two CDROM images (``ISOimages''). These images can be written (``burned'') to CDs if you have a CD writer, andthen used to install FreeBSD. If you have a CD writer, and bandwidth is cheap, then thisis the easiest way to install FreeBSD.

  1. Download the Correct ISO Images

    The ISO images for each release can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/ISO-IMAGES-arch/version or the closestmirror. Substitute arch and version as appropriate.

    That directory will normally contain the following images:

    Table 2-5. FreeBSD ISO Image Names and Meanings

    FilenameContains
    version-mini.isoEverything you need to install FreeBSD.
    version-disc1.isoEverything you need to install FreeBSD, and as many additional third party packagesas would fit on the disc.
    version-disc2.isoA ``live filesystem'', which is used in conjunction with the ``Repair'' facility insysinstall. A copy of the FreeBSD CVS tree. As many additionalthird party packages as would fit on the disc.

    You must download one of eitherthe mini ISO image, or the image of disc one. Do not download both of them, since thedisc one image contains everything that the mini ISO image contains.

    Use the mini ISO if Internet access is cheap for you. It will let you install FreeBSD,and you can then install third party packages by downloading them using theports/packages system (see Chapter 4) as necessary.

    Use the image of disc one if you want a reasonable selection of third party packageson the disc as well.

    The additional disc images are useful, but not essential, especially if you havehigh-speed access to the Internet.

  2. Write the CDs

    You must then write the CD images to disc. If you will be doing this on anotherFreeBSD system then see Section 13.5 for more information(in particular, Section 13.5.3 and Section 13.5.4).

    If you will be doing this on another platform then you will need to use whateverutilities exist to control your CD writer on that platform. The images provided are inthe standard ISO format, which many CD writing applications support.

2.13.2 Creating a Local FTP Sitewith a FreeBSD Disk

FreeBSD disks are laid out in the same way as the FTP site. This makes it very easyfor you to create a local FTP site that can be used by other machines on your networkwhen installing FreeBSD.

  1. On the FreeBSD computer that will host the FTP site, ensure that the CDROM is in thedrive, and mounted on /cdrom.

    # mount /cdrom
  2. Create an account for anonymous FTP in /etc/passwd. Do thisby editing /etc/passwd using vipw(8) and addingthis line.

    ftp:*:99:99::0:0:FTP:/cdrom:/nonexistent
  3. Ensure that the FTP service is enabled in /etc/inetd.conf.

Anyone with network connectivity to your machine can now chose a media type of FTP andtype in ftp://your machineafter picking ``Other'' in the FTP sites menu during the install.

Warning: This approach is OK for a machine that is on your local network, andthat is protected by your firewall. Offering up FTP services to other machines over theInternet (and not your local network) exposes your computer to the attention of crackersand other undesirables. We strongly recommend that you follow good security practices ifyou do this.

2.13.3 Creating InstallationFloppies

If you must install from floppy disk (which we suggest you do not do), either due to unsupportedhardware or simply because you insist on doing things the hard way, you must firstprepare some floppies for the installation.

At a minimum, you will need as many 1.44 MB or 1.2 MB floppies as it takesto hold all the files in the bin (binary distribution)directory. If you are preparing the floppies from DOS, then they MUST be formatted using the MS-DOS FORMAT command. If you are usingWindows, use Explorer to format the disks (right-click onthe A: drive, and select ``Format''.

Do not trust factorypre-formatted floppies. Format them again yourself, just to be sure. Many problemsreported by our users in the past have resulted from the use of improperly formattedmedia, which is why we are making a point of it now.

If you are creating the floppies on another FreeBSD machine, a format is still not abad idea, though you do not need to put a DOS filesystem on each floppy. You can use thedisklabel and newfs commands to put aUFS filesystem on them instead, as the following sequence of commands (for a 3.5"1.44 MB floppy) illustrates:

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

Note: Use fd0.1200 and floppy5 for 5.25" 1.2 MB disks.

Then you can mount and write to them like any other filesystem.

After you have formatted the floppies, you will need to copy the files to them. Thedistribution files are split into chunks conveniently sized so that five of them will fiton a conventional 1.44 MB floppy. Go through all your floppies, packing as manyfiles as will fit on each one, until you have all of the distributions you want packed upin this fashion. Each distribution should go into a subdirectory on the floppy, e.g.: a:\bin\bin.aa, a:\bin\bin.ab, and soon.

Once you come to the Media screen during the install process, select ``Floppy'' andyou will be prompted for the rest.

2.13.4 Installing from anMS-DOS® Partition

To prepare for an installation from an MS-DOSpartition, copy the files from the distribution into a directory called freebsd in the root directory of the partition. For example, c:\freebsd. The directory structure of the CDROM or FTP site mustbe partially reproduced within this directory, so we suggest using the DOS xcopy command if you are copying it from a CD. For example, toprepare for a minimal installation of FreeBSD:

C:\> md c:\freebsdC:\> xcopy e:\bin c:\freebsd\bin\ /sC:\> xcopy e:\manpages c:\freebsd\manpages\ /s

Assuming that C: is where you have free space and E: is where your CDROM is mounted.

If you do not have a CDROM drive, you can download the distribution from ftp.FreeBSD.org. Each distribution is in its own directory; forexample, the base distribution canbe found in the 5.2.1/base/ directory.

Note: In the 4.X and older releases of FreeBSD the ``base'' distribution iscalled ``bin''. Adjust the sample commands and URLs above accordingly, if you are usingone of these versions.

For as many distributions you wish to install from an MS-DOS partition (and you have the free space for), install eachone under c:\freebsd -- the BINdistribution is the only one required for a minimum installation.

2.13.5 Creating an InstallationTape

Installing from tape is probably the easiest method, short of an online FTP install orCDROM install. The installation program expects the files to be simply tarred onto thetape. After getting all of the distribution files you are interested in, simply tar themonto the tape:

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

When you perform the installation, you should make sure that you leave enough room insome temporary directory (which you will be allowed to choose) to accommodate the full contents of the tape you havecreated. Due to the non-random access nature of tapes, this method of installationrequires quite a bit of temporary storage. You should expect to require as much temporarystorage as you have data written on tape.

Note: When starting the installation, the tape must be in the drive before booting from the boot floppy. Theinstallation probe may otherwise fail to find it.

2.13.6 Before Installing over aNetwork

There are three types of network installations available. Serial port (SLIP or PPP),Parallel port (PLIP (laplink cable)), or Ethernet (a standard Ethernet controller(includes some PCMCIA)).

The SLIP support is rather primitive, and limited primarily to hard-wired links, suchas a serial cable running between a laptop computer and another computer. The link shouldbe hard-wired as the SLIP installation does not currently offer a dialing capability;that facility is provided with the PPP utility, which should be used in preference toSLIP whenever possible.

If you are using a modem, then PPP is almost certainly your only choice. Make surethat you have your service provider's information handy as you will need to know itfairly early in the installation process.

If you use PAP or CHAP to connect your ISP (in other words, if you can connect to theISP in Windows without using a script), then all you willneed to do is type in dial at the pppprompt. Otherwise, you will need to know how to dial your ISP using the ``AT commands''specific to your modem, as the PPP dialer provides only a very simple terminal emulator.Please refer to the user-ppp handbook and FAQ entries for further information. If you haveproblems, logging can be directed to the screen using the command setlog local ....

If a hard-wired connection to another FreeBSD (2.0-R or later) machine is available,you might also consider installing over a ``laplink'' parallel port cable. The data rateover the parallel port is much higher than what is typically possible over a serial line(up to 50 kbytes/sec), thus resulting in a quicker installation.

Finally, for the fastest possible network installation, an Ethernet adapter is alwaysa good choice! FreeBSD supports most common PC Ethernet cards; a table of supported cards(and their required settings) is provided in the Hardware Notes for each release ofFreeBSD. If you are using one of the supported PCMCIA Ethernet cards, also be sure thatit is plugged in before the laptopis powered on! FreeBSD does not, unfortunately, currently support hot insertion of PCMCIAcards during installation.

You will also need to know your IP address on the network, the netmask value for youraddress class, and the name of your machine. If you are installing over a PPP connectionand do not have a static IP, fear not, the IP address can be dynamically assigned by yourISP. Your system administrator can tell you which values to use for your particularnetwork 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 usingPPP, it is your provider's IP address) to use in talking to it. If you want to install byFTP via a HTTP proxy, you will also need the proxy's address. If you do not know theanswers to all or most of these questions, then you should really probably talk to yoursystem administrator or ISP beforetrying this type of installation.

2.13.6.1 Before Installing viaNFS

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

If this server supports only ``privileged port'' (as is generally the default for Sunworkstations), you will need to set this option in the Options menu before installationcan 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, forexample, if your FreeBSD 5.2.1 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 /usror /usr/archive/stuff.

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

This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.

 
 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "FreeBSD Handbook". See Index Page for more info about Authorship and Copyright.

1999-2008 Linuxinfor.com. No rights reserved.