s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
3. Sharing swap space between Linux and FreeBSDThis section describes how I got Linux and FreeBSD to share a swap partition. There may be other ways to get the same result. You can install FreeBSD before Linux if you want to, just pay attention to the order of the partitions in the FreeBSD slice.
3.1 Installing and preparing LinuxThe first step is to install Linux as normal. You have to leave space for the FreeBSD slice at your hard drive. You don't have to make a Linux swap partition, but if you want one, put it in the space you want to allocate for FreeBSD. That way you can delete the Linux swap partition later and use the space for FreeBSD. When you have installed Linux you have to build a new kernel. Read The Linux Kernel HOWTO if this is new to you. You have to include both UFS filesystem support (read only) and BSD disklabel (FreeBSD partition tables) support: UFS filesystem support (read only) (CONFIG_UFS_FS) [N/y/m/?] y BSD disklabel (FreeBSD partition tables) support (CONFIG_BSD_DISKLABEL) [N/y/?] (NEW) y Install the new kernel and reboot. Remove any line including the word swap
from your
3.2 Installing FreeBSDInstall FreeBSD as described in the FreeBSD documentation. Remove the Linux
swap partition if you have made one (you can use the FreeBSD
3.3 Setting up the FreeBSD swap partition in LinuxRun Partition check: hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 > This means that You have to put the following line into your Linux /dev/hda6 none swap sw 0 0 While FreeBSD can use any type of partition as swap space, Linux needs a
special signature in the swap partition. This signature is made by awk -- '/swap/ && ($1 !~ /#/) { system("mkswap "$1"") }' /etc/fstab This will run Run
Next Previous Contents |