Installing Minix 3: A.1 Preparation
Installing Minix 3: A.1 Preparation
Installing Minix 3: A.1 Preparation
INSTALLING MINIX 3
A.1 PREPARATION
If you already have the CD-ROM (e.g., from the book), you can skip steps 1
and 2, but it is wise to check www.minix3.org to see if a newer version is avail-
able. If you want to run MINIX 3 on a simulator instead of native, see Part V first.
If you do not have an IDE CD-ROM, either get the special USB CD-ROM boot
image or use a simulator.
If your disk is larger than 128 GB, the MINIX 3 partition must fall entirely in
the first 128 GB (due to the way disk blocks are addressed).
WARNING: If you make a mistake during disk partitioning, you can lose
all the data on the disk, so be sure to back it up to CD-ROM or DVD before
starting. Disk partitioning requires great care, so proceed with caution.
A.2 BOOTING
By now you should have allocated some free space on your disk. If you have
not done so yet, please do it now unless there is an existing partition you are wil-
ling to convert to MINIX 3.
2. Login as root
When the login prompt appears, login as root. After a successful login as
root, you will see the shell prompt (#). At this point you are running fully-
operational MINIX 3. If you type:
ls /usr/bin | more
you can see what software is available. Hit space to scroll the list. To see what
program foo does, type:
man foo
The manual pages are also available at www.minix3.org/manpages.
then give the region number when asked. This region will be overwritten and its
previous contents lost forever.
5. Reinstall choice
If you chose an existing MINIX 3 partition, in this step you will be offered a
choice between a Full install, which erases everything in the partition, and a Rein-
stall, which does not affect your existing /home partition. This design means that
you can put your personal files on /home and reinstall a newer version of MINIX 3
when it is available without losing your personal files.
A.4 TESTING
This section tells you how to test your installation, rebuild the system after
modifying it, and boot it later. To start, boot your new MINIX 3 system. For
example, if you used controller 0, disk 0, partition 3, type
boot c0d0p3
and log in as root. Under very rare conditions the drive number seen by the BIOS
(and used by the boot monitor) may not agree with the one used by MINIX 3. Try
the one announced by the setup script first. This is a good time to create a root
password. See man passwd for help.
5. Booting Tomorrow
If you have a legacy floppy disk drive, the simplest way to boot MINIX 3 is by
inserting your new boot floppy and turning on the power. It takes only a few
seconds. Alternatively, boot from the MINIX 3 CD-ROM, login as bin and type:
shutdown
to get back to the MINIX 3 boot monitor. Now type:
boot c0d0p0
to boot from the operating system image file on controller 0, driver 0, partition 0.
Of course, if you put MINIX 3 on drive 0 partition 1, use:
boot c0d0p1
and so on.
A third possibility for booting is to make the MINIX 3 partition the active one,
and use the MINIX 3 boot monitor to start MINIX 3 or any other operating system.
For details see www.minix3.org/manpages/man8/boot.8.html.
Finally, a fourth option is for you to install a multiboot loader such as LILO or
GRUB (www.gnu.org/software/grub). Then you can boot any of your operating
systems easily. Discussion of multiboot loaders is beyond the scope of this guide,
but there is some information on the subject at www.minix3.org/doc.
d VMware (www.vmware.com)
d Bochs (www.bochs.org)
d QEMU (www.qemu.org)
See the documentation for each of them. Running a program on a simulator is
similar to running it on the actual machine, so you should go back to Part I and
acquire the latest CD-ROM and continue from there.