Changes
From Free Knowledge Base- The DUCK Project: information for everyone
The following lines were added (+) and removed (-):
AHCI - Advanced Host Controller Interface is a standard for disk drives and controllers. Enabling AHCI in the BIOS can give a 5-15% performance increase. Not all controllers offer AHCI.For [[Solid State Computer Systems]] most SSD models support a feature called TRIM. TRIM is just a status update that triggers when the filesystem deletes a block, it also notifies the device that the block is no longer in use. The SSD firmware can then do some wear leveling functions. Without TRIM, it would not be able to tell whether that block was still in use. TRIM does not require AHCI. == Some Commands ==Look at partition table. gpart showcommand gpart recover vtbd(x)command gpart add -t freebsd-ufs -b BEGIN -s SIZE GEOMcommand gpart add -t freebsd-ufs -b 20971682 -s 18874240 vtbd(x)command newfs -U /dev/vtbdXXXXcommand mkdir /transipcommand mount /dev/vtbdXXXX /transipcommand mount /dev/vtbXXXX /transip== FreeBSD Partitions ==Be familiar with the partitions and their purpose* /var - used to hold mailboxes, log files, and printer spools. [no less than 1GB]* /usr - holds many of the files which support the system, including the FreeBSD Ports Collection and system source code. [no less than 2GB]* swap - the swap partition should be about double the size of physical memory (RAM)With FreeBSD the partition scheme GPT is usually the most appropriate choice for amd64 computers. Older computers that are not compatible with GPT should use MBR. The other partition schemes are generally used for uncommon or older computers.A standard FreeBSD GPT installation uses at least three partitions (and swap for a fourth):# freebsd-boot - Holds the FreeBSD boot code.# freebsd-ufs - A FreeBSD UFS file system.# freebsd-zfs - A FreeBSD ZFS file system. More information about ZFS is available in Chapter 19, The Z File System (ZFS).# freebsd-swap - FreeBSD swap space.Although some people prefer a traditional layout with separate partitions for /, /var, /tmp, and /usr it is not required. The choice is yours.== Creating Traditional Split File System Partitions ==For a traditional partition layout where the /, /var, /tmp, and /usr directories are separate file systems (this is not necessary but shown here as an example.) Partition Type Size Mountpoint Label freebsd-boot 512K freebsd-ufs 2G / exrootfs freebsd-swap 4G exswap freebsd-ufs 2G /var exvarfs freebsd-ufs 1G /tmp extmpfs freebsd-ufs accept the default (remainder of the disk) /usr exusrfs== Partition a SSD for FreeBSD ==Applies to [[Solid State Computer Systems]] with FreeBSD 10.X and newer.Do not enable TRIM unless the SSD supports it. Better yet, avoid SSDs that do not support TRIM.Create the partition scheme. In the GPT partition scheme make a boot partition of the size 512K. Here we will use the new 4K-alignment which is what is advised for SSD drives. More information is on [[Hard Drive Logical Block Format Migration to 4K- Alignment]]. gpart create -s gpt ada0 gpart add -t freebsd-boot -s 512k -a4k -l ssdboot ada0 gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 ada0Now create a root partition. 2GiG is recommended. Unique naming is recommended. The 1M location is 4K aligned and 1M aligned. gpart add -t freebsd-ufs -l ssdrootfs -b 1m -s 2g ada02G partition for /var and the rest of the SSD for /usr. gpart add -t freebsd-ufs -l ssdrootfs -b 1m -s 2g ada0 gpart add -t freebsd-ufs -l ssdvarfs -a 1m -s 2g ada0 gpart add -t freebsd-ufs -l ssdusrfs -a 1m ada0