IV. Practical howto
The following factors should be considered when planning partitioning of a hard disk:
/
and /boot
file systems, where the kernel image resides, to be within the first 1024
cylinders. Those file systems may be put into a single fdisk partition not
exceeding 0.5 GB. Other file systems like /var
,
/usr
and /home
may be put into logical volumes.
Entire Linux distribution may be installed into logical volumes.
A modern BIOS supporting INT 13h extensions can access cylinders greater than 1024. If both Master Boot Code and Partition Boot Code utilize the INT 13h extensions the 8GB or 1024 cylinder limitation is overcome.
The performance depends also on how long distance hard disk heads have to go to access requested data. So, frequently used files like swap should be stored near the middle of the hard disk, and volumes that belong to one operating system should lay side by side.
fdisk
side,
the workaround is quite straightforward:
fdisk
program on Linux installation floppy, or
Ranish PM create a Linux swap primary partition. It is
also possible to create e.g. DOS partition and change its ID to 0x82
(Solaris ID) with a favorite hex-editor and BOOT
program, or a disk editor.
format
utility and create slices on Solaris partition.
newfs
to construct file systems on all created slices.
Actually, the boot partition is limited to 4GB only when NT is installed into an empty hard disk. If an NTFS partition is created in advance, the boot partition might be as large as possible.
If an operating system is already setup and running, but occupies entire hard disk, while we want to install another operating system and do not want to loose the existing one, there are a couple of possible ways to go:
For Solaris, in such a situation use ufsdump
/ufsrestore
utilities.
They can be used to either shrink or enlarge all types of slices,
including root. To use that method a storage should be provided
that fits file of size equal to the size of slice contents.
All MS operating systems may be backed up as a collection of files, and then restored into a smaller or larger partition. The change of file system is also possible, i.e. the system installed on FAT-16 may be restored on FAT-32 or NTFS and conversely. In case of Windows 9x, NT it is important to restore not only files but also the crucial drives letters, i.e. if applications were installed into D: they have to be restored into D:. For W2K crucial mount points must be restored additionally. User data and archive file systems usually need not to be restored to the same, logical location. To copy file by file of Windows 9x, NT or W2K, an extra operating system that can handle that must be used. That is, if we intend to copy NT on NTFS file by file, the system prohibits opening some files (e.g. registry files) and we have to boot additional copy of NT or W2K to do the job. This requires additional hard disk drive and plenty of storage room.
Generally NT 4.0 is more robust than W2K. It is not so picky about drive letters and device IRQs assignment as W2K.