Difference between revisions of "Testing"

From PC-BSD Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
__NOTOC__
+
[[category:testing]]
<noinclude>[[category:testing]]</noinclude>
+
PC-BSD is based on [http://en.wikipedia.org/wiki/BSD_UNIX BSD Unix], meaning that it is not a Linux distribution. If you have used Linux before, you will find that some features that you are used to have different names on a BSD system and that some commands are different. This section covers some of these differences.
This is the wiki area for the collaborative editing of the ''' ''upcoming edition (version 9.0)'' ''' of the PC-BSD Users Handbook.  
+
  
{| align="left"
+
===Filesystems===
 +
 
 +
BSD and Linux use different filesystems during installation. Many Linux distros use EXT2, EXT3, EXT4, or ReiserFS, while PC-BSD uses UFS or ZFS. This means that if you wish to dual-boot with Linux or access data on an external drive that has been formatted with a Linux filesystem, you will want to do a bit of research first to see if the data can be made available on both operating systems.
 +
 
 +
Table 1.4a summarizes the various filesystems commonly used by desktop systems. Most of the desktop managers available from PC-BSD should automatically mount the following filesystems: FAT16, FAT32, EXT2, EXT3 (without journaling), EXT4 (read-only), NTFS5, NTFS6, and XFS. See [[Files and File Sharing]] for more information about available file manager utilities.
 +
 
 +
'''Table 1.4a: Filesystem Support Between Linux and PC-BSD'''
 +
 
 +
{{Tbl-init|width=100%|sortable}}
 +
{{Tbl-title|width=5%|'''Filesystem'''}}
 +
{{Tbl-title|width=5%|'''Native to'''}}
 +
{{Tbl-title|width=35%|'''Type of non-native support'''}}
 +
{{Tbl-title|width=60%|'''Usage notes'''}}
 +
|-
 +
<!-- row 1 -->
 +
{{Tbl-line|bg=ff|align=left|'''Btrfs'''}}
 +
{{Tbl-line|bg=ff|Linux}}
 +
{{Tbl-line|bg=ff|align=left|none}}
 +
{{Tbl-line|bg=ff|align=left|[http://en.wikipedia.org/wiki/Btrfs Btrfs], when complete, is expected to offer a feature set comparable to [http://en.wikipedia.org/wiki/ZFS#FreeBSD ZFS]}}
 +
|-
 +
<!-- row 2 -->
 +
{{Tbl-line|align=left|'''EXT2'''}}
 +
{{Tbl-line|Linux}}
 +
{{Tbl-line|align=left| r/w through [[http://www.freebsd.org/cgi/man.cgi?query=ext2fs ext2fs(5)]] }}
 +
{{Tbl-line|}}
 +
|-
 +
<!-- row 3 -->
 +
{{Tbl-line|bg=ff|align=left|'''EXT3'''}}
 +
{{Tbl-line|bg=ff|Linux}}
 +
{{Tbl-line|bg=ff|align=left|r/w through ext2fs(5).}}
 +
{{Tbl-line|bg=ff|align=left|EXT3 journaling is not supported. This means that you won't be able to mount a filesystem requiring a journal replay unless you fsck it using an external utility such as [http://www.freshports.org/sysutils/e2fsprogs/ e2fsprogs].}}
 +
|-
 +
<!-- row 4 -->
 +
{{Tbl-line|align=left|'''EXT4'''}}
 +
{{Tbl-line|Linux}}
 +
{{Tbl-line|align=left|r/o through ext2fs(5)}}
 +
{{Tbl-line|align=left|Journaling is not supported. This means that you won't be able to mount a filesystem requiring a journal replay unless you fsck it using an external utility such as [http://www.freshports.org/sysutils/e2fsprogs/ e2fsprogs]. EXT3 filesystems converted to EXT4 may be more likely to have better results. May not work. Neither having extended attributes 'enabled' nor inodes greater than 128-bytes are supported.}}
 +
|-
 +
<!-- row 5 -->
 +
{{Tbl-line|bg=ff|align=left|'''FAT16'''}}
 +
{{Tbl-line|bg=ff|Windows}}
 +
{{Tbl-line|bg=ff|align=left|r/w through [[http://www.freebsd.org/cgi/man.cgi?query=msdosfs msdosfs(5)]]}}
 +
{{Tbl-line|bg=ff|align=left|}}
 +
|-
 +
<!-- row 6 -->
 +
{{Tbl-line|align=left|'''FAT32'''}}
 +
{{Tbl-line|Windows}}
 +
{{Tbl-line|align=left|r/w through msdosfs(5)}}
 +
{{Tbl-line|align=left|}}
 +
|-
 +
<!-- row 7 -->
 +
{{Tbl-line|bg=ff|align=left|'''HFS+'''}}
 +
{{Tbl-line|bg=ff|Mac OSX}}
 +
{{Tbl-line|bg=ff|align=left|none}}
 +
{{Tbl-line|bg=ff|align=left|older Mac versions might work with [http://www.freshports.org/sysutils/hfsexplorer/ hfsexplorer]<nowiki></nowiki>}}
 +
|-
 +
<!-- row 8 -->
 +
{{Tbl-line|align=left|'''JFS'''}}
 +
{{Tbl-line|Linux}}
 +
{{Tbl-line|align=left|none}}
 +
{{Tbl-line|align=left|if you're interested in journaling, choose UFS+J during installation}}
 +
|-
 +
<!-- row 9 -->
 +
{{Tbl-line|bg=ff|align=left|'''NTFS5'''}}
 +
{{Tbl-line|bg=ff|Windows}}
 +
{{Tbl-line|bg=ff|align=left|full r/o, some limitations on r/w, via [[http://www.freebsd.org/cgi/man.cgi?query=mount_ntfs mount_ntfs(8)]];<br>full r/w through [[http://www.tuxera.com/community/ntfs-3g-manual/ ntfs-3g(8)]]}}
 +
{{Tbl-line|bg=ff|align=left|PC-BSD uses ntfs-3g}}
 +
|-
 +
<!-- row 10 -->
 +
{{Tbl-line|align=left|'''NTFS6'''}}
 +
{{Tbl-line|Windows}}
 +
{{Tbl-line|align=left|r/w through ntfs-3g(8)}}
 +
{{Tbl-line|align=left|}}
 +
|-
 +
<!-- row 11 -->
 +
{{Tbl-line|bg=ff|align=left|'''ReiserFS'''}}
 +
{{Tbl-line|bg=ff|Linux}}
 +
{{Tbl-line|bg=ff|align=left|r/o through [[http://www.freebsd.org/cgi/man.cgi?query=reiserfs reiserfs(5)]]}}
 +
{{Tbl-line|bg=ff|align=left|}}
 +
|-
 +
<!-- row 12 -->
 +
{{Tbl-line|align=left|'''UFS'''}}
 +
{{Tbl-line|PC-BSD}}
 +
{{Tbl-line|align=left|r/o support is included in Linux kernel 2.6.5 onwards;<br>r/w support on Mac;<br>[http://www.ufsexplorer.com/download_stdr.php UFS Explorer] can be used on Windows}}
 +
{{Tbl-line|align=left|changed to r/o support in Mac Lion}}
 +
|-
 +
<!-- row 13 -->
 +
{{Tbl-line|bg=ff|align=left|'''UFS+S'''}}
 +
{{Tbl-line|bg=ff|PC-BSD}}
 +
{{Tbl-line|bg=ff|align=left|check if your Linux distro provides ufsutils;<br>r/w support on Mac;<br>[http://www.ufsexplorer.com/download_stdr.php UFS Explorer] can be used on Windows}}
 +
{{Tbl-line|bg=ff|align=left|changed to r/o support in Mac Lion}}
 +
|-
 +
<!-- row 14 -->
 +
{{Tbl-line|align=left|'''UFS+J'''}}
 +
{{Tbl-line|PC-BSD}}
 +
{{Tbl-line|align=left|check if your Linux distro provides ufsutils;<br>r/w support on Mac;<br>[http://www.ufsexplorer.com/download_stdr.php UFS Explorer] can be used on Windows}}
 +
{{Tbl-line|align=left|changed to r/o support in Mac Lion}}
 +
|-
 +
<!-- row 15 -->
 +
{{Tbl-line|bg=ff|align=left|'''XFS'''}}
 +
{{Tbl-line|bg=ff|Linux}}
 +
{{Tbl-line|bg=ff|align=left|r/o through [[http://www.freebsd.org/cgi/man.cgi?query=xfs xfs(5)]]}}
 +
{{Tbl-line|bg=ff|align=left|}}
 +
|-
 +
<!-- row 16 -->
 +
{{Tbl-line|align=left|'''ZFS'''}}
 +
{{Tbl-line|PC-BSD, OpenSolaris}}
 +
{{Tbl-line|align=left|[http://zfsonlinux.org/ Linux port];<br>Mac support is under [http://code.google.com/p/maczfs/ development]}}
 +
{{Tbl-line|align=left|}}
 
|-
 
|-
|
 
=Table of Contents=
 
{{hierB|title=Preface}}
 
{{hierB|1.|title=Introduction}}
 
{{hier|1.1|title=PC-BSD's Goals and Features}}
 
{{hier|1.2|title=What's New in 9}}
 
{{hier|1.3|title=PC-BSD Releases}}
 
{{hier|1.4|title=PC-BSD for Linux Users}}
 
{{hierB|2.|title=Pre-Installation Tasks}}
 
{{hier|2.1|title=Migrating to PC-BSD}}
 
{{hier|2.2|title=Minimum Hardware Requirements}}
 
{{hier|2.3|title=Hardware Compatibility}}
 
{{hier|2.4|title=Laptops}}
 
{{hier|2.5|title=Partitioning the Hard Drive}}
 
{{hier|2.6|title=Obtaining PC-BSD}}
 
{{hier|2.7|title=Burning the Installation Media}}
 
{{hier|2.8|title=PC-BSD Live Mode}}
 
{{hier|2.9|title=Using VirtualBox}}
 
{{hierB|3.|title=Installing PC-BSD}}
 
{{hier|3.1|title=Starting the PC-BSD Installation}}
 
{{hier|3.2|title=Language Selection Screen}}
 
{{hier|3.3|title=Keyboard Selection Screen}}
 
{{hier|3.4|title=System Selection Screen}}
 
{{hier|3.5|title=Disk Selection Screen}}
 
{{hier|3.6|title=Users Creation Screen}}
 
{{hier|3.7|title=Desktop Selection Screen}}
 
{{hier|3.8|title=Applications Selection Screen}}
 
{{hier|3.9|title=Installation Summary Screen}}
 
{{hier|3.10|title=Installation Progress Screen}}
 
{{hier|3.11|title=Installation Finished Screen}}
 
{{hier|3.12|title=Post Installation}}
 
{{hier|3.13|title=Installation Troubleshooting}}
 
{{hierB|4.|title=Advanced Installation Topics}}
 
{{hier|4.1|title=Use PC-BSD Installer to Install FreeBSD}}
 
{{hier|4.2|title=Install PC-BSD Over a Network}}
 
{{hier|4.3|title=Using a Custom Partition Layout}}
 
{{hier|4.4|title=Disk Encryption}}
 
{{hier|4.5|title=Dual Booting}}
 
{{hier|4.6|title=Upgrading PC-BSD}}
 
{{hier|4.7|title=Creating an Automated Installation with pc-sysinstall}}
 
{{hierB|5.|title=Desktops}}
 
{{hier|5.1|title=GNOME2}}
 
{{hier|5.2|title=KDE4}}
 
{{hier|5.3|title=LXDE}}
 
{{hier|5.4|title=XFCE4}}
 
{{hier|5.5|title=Awesome}}
 
{{hier|5.6|title=Fluxbox}}
 
{{hier|5.7|title=FVWM}}
 
{{hier|5.8|title=IceWM}}
 
{{hier|5.9|title=Openbox}}
 
{{hier|5.10|title=ScrotWM}}
 
{{hier|5.11|title=Window Maker}}
 
{{hierB|6.|title=Installing Applications and Keeping PC-BSD Updated}}
 
{{hier|6.1|title=Using AppCafe™}}
 
{{hier|6.2|title=PBI Manager}}
 
{{hier|6.3|title=Update Manager}}
 
{{hierB|7.|title=Control Panel}}
 
{{hier|7.1|title=Ports Jail}}
 
{{hier|7.2|title=Service Manager}}
 
{{hier|7.3|title=System Manager}}
 
{{hier|7.4|title=User Manager}}
 
{{hier|7.5|title=Display}}
 
{{hier|7.6|title=Printing}}
 
{{hier|7.7|title=Network Configuration}}
 
{{hier|7.8|title=Firewall Manager}}
 
{{hier|7.9|title=Life Preserver}}
 
{{hier|7.10|title=Warden™}}
 
{{hier|7.11|title=Thin Client}}
 
{{hierB|8.|title=Common Tasks}}
 
{{hier|8.1|title=Java, Flash, and Fonts}}
 
{{hier|8.2|title=Multimedia}}
 
{{hier|8.3|title=MythTV}}
 
{{hier|8.4|title=XBMC}}
 
{{hier|8.5|title=Windows Emulation}}
 
{{hier|8.6|title=Files and File Sharing}}
 
{{hier|8.7|title=Remote Desktop}}
 
{{hier|8.8|title=Media Streaming}}
 
{{hier|8.9|title=Video Conferencing}}
 
{{hier|8.10|title=Security}}
 
{{hierB|9.|title=Finding Help}}
 
{{hier|9.1|title=PC-BSD Forums}}
 
{{hier|9.2|title=IRC Channel}}
 
{{hier|9.3|title=Mailing Lists}}
 
{{hier|9.4|title=FreeBSD Handbook and FAQ}}
 
{{hier|9.5|title=Social Media}}
 
{{hier|9.6|title=Search and Portals}}
 
{{hier|9.7|title=Other Resources}}
 
{{hierB|10.|title=Supporting PC-BSD}}
 
{{hier|10.1|title=Become a Beta Tester}}
 
{{hier|10.2|title=Become a Translator}}
 
{{hier|10.3|title=Become a Developer}}
 
{{hier|10.4|title=Report Bugs}}
 
{{hier|10.5|title=Submit PBI Requests}}
 
{{hier|10.6|title=Test PBIs}}
 
{{hier|10.7|title=Create PBIs}}
 
{{hier|10.8|title=Purchase PC-BSD Swag}}
 
{{hier|10.9|title=Host a Mirror}}
 
{{hier|10.10|title=Seed a Torrent}}
 
{{hier|10.11|title=Become an Advocate}}
 
 
|}
 
|}
{|
 
|
 
'''If you are looking for the current version of the Handbook that covers PC-BSD 8.2''', a PDF version is included as an icon on the PC-BSD desktop. Additional formats including HTML, ODF (for OpenOffice and [http://en.wikipedia.org/wiki/.odf#Software other software]),  EPUB (for [http://en.wikipedia.org/wiki/Comparison_of_e-book_formats#Supporting_Hardware e-readers]), and PDF formats are all available as free downloads from the [ftp://ftp.pcbsd.org/pub/handbook/ PC-BSD ftp server]. For those who prefer to purchase a copy of the Handbook for their Kindle, "PC-BSD 8.2 Handbook (English Version)" is available from Amazon. Translations of the Handbook are added to the ftp server as they become available, its file name indicating the language with a [http://reference.sitepoint.com/html/lang-codes 2-letter ISO code].
 
<translate>
 
===blah test===
 
The Handbook grows into a useful resource when users (meaning you!) contribute to it. You don't have to write large sections of the Handbook in order to be a contributor. You also don't need to have a lot of time on your hands. You simply have to create a login account in order to assist with any of the following tasks:
 
</translate>
 
* proofread existing pages and fix any typos, grammos, or unclearly worded sections.
 
  
* add to sections containing missing, outdated, or incomplete content.
+
===Device Names===
  
* update any screenshots that are out of date.
+
Linux and BSD use different naming conventions for devices. For example:
  
* every page has a Discussion tab. You can use this if you would like to suggest further information that should appear in that section of the Handbook.
+
* in Linux, Ethernet interfaces begin with ''eth''; in BSD, interface names indicate the name of the driver. For example, an Ethernet interface may be listed as ''re0'', indicating that it uses the Realtek ''re'' driver. The advantage of this convention is that you can read the '''man 4''' page for the driver (e.g. type '''man 4 re''') to see which models and features are provided by that driver.
  
* create a new section for content that is not yet covered in the Handbook. If you are not sure where to do this, ask on a semi-related Discussion tab.
+
* BSD disk names differ from Linux. IDE drives begin with ''ad'' and SCSI and USB drives begin with ''da''.
  
We are emailed whenever edits are made and will contact you for clarification if an edit is unclear. You can also be notified when specified pages are edited--simply click the "my preferences" or "my watchlist" links whenever you are logged into the wiki.
+
===Feature Names===
  
''<center>Copyright 2011, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of [http://www.ixsystems.com iXsystems].</center>''  
+
Some of the features used by BSD have similar counterparts to Linux, but the name of the feature is different. Table 1.4b provides some common examples:
''<center>All other content within the PC-BSD Users Handbook is freely available for sharing under the terms of the [http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution License].</center>''
+
 
{| class="navbox collapsible collapsed" style="text-align: left; border: 0px; margin-top: 0.2em;"
+
'''Figure 1.4b: Names for BSD and Linux Features'''
 +
 
 +
{{Tbl-init|width=100%}}
 +
{{Tbl-title|width=25%|'''PC-BSD'''}}
 +
{{Tbl-title|width=25%|'''Linux'''}}
 +
{{Tbl-title|width=50%|'''Description'''}}
 
|-
 
|-
! style="background-color: #f2dfce;padding-top:0;padding-bottom:0" |
+
<!-- row 1 -->
This is just filler. [[wikipedia:Main Page|wikipedia!]]
+
{{Tbl-line|bg=ff|align=left|PF}}
 +
{{Tbl-line|bg=ff|align=left|iptables}}
 +
{{Tbl-line|bg=ff|align=left|default firewall}}
 +
|-
 +
<!-- row 2 -->
 +
{{Tbl-line|align=left|''/etc/rc.d/'' for operating system and ''/usr/local/etc/rc.d/'' for applications}}
 +
{{Tbl-line|align=left|''rc0.d/'', ''rc1.d/'', etc.}}
 +
{{Tbl-line|align=left|in PC-BSD the directories containing the startup scripts do not link to runlevels as there are no runlevels; system startup scripts are separated from third-party application scripts}}
 +
|-
 +
<!-- row 3 -->
 +
{{Tbl-line|bg=ff|align=left|''/etc/ttys'' and ''/etc/rc.conf''}}
 +
{{Tbl-line|bg=ff|align=left|'''telinit''' and ''init.d/''}}
 +
{{Tbl-line|bg=ff|align=left|terminals are configured in ''ttys'' and ''rc.conf'' indicates which services will start at boot time}}
 
|-
 
|-
| Contents about more stuff here
 
 
|}
 
|}
 +
 +
===Commands===
 +
 +
If you're comfortable with the command line, you may find that some of the commands that you are used to have different names on BSD. Table 1.4c lists some common commands and their equivalents.
 +
 +
'''Table 1.4c: Common BSD and Linux Commands'''
 +
 +
{{Tbl-init|width=100%}}
 +
{{Tbl-title|width=25%|'''PC-BSD'''}}
 +
{{Tbl-title|width=25%|'''Linux'''}}
 +
{{Tbl-title|width=50%|'''Result'''}}
 +
|-
 +
<!-- row 1 -->
 +
{{Tbl-line|bg=ff|align=left|'''dmesg'''}}
 +
{{Tbl-line|bg=ff|align=left|'''dmesg'''<br>'''lsdev''' (Is this used anywhere?)}}
 +
{{Tbl-line|bg=ff|align=left|discover what hardware was detected by the kernel}}
 +
|-
 +
<!-- row 2 -->
 +
{{Tbl-line|align=left|'''sysctl dev}}
 +
{{Tbl-line|align=left|'''cat /proc/devices}}
 +
{{Tbl-line|align=left|display configured devices}}
 +
|-
 +
<!-- row 3 -->
 +
{{Tbl-line|bg=ff|align=left|'''pciconf -l -cv}}
 +
{{Tbl-line|bg=ff|align=left|'''lspci -tv}}
 +
{{Tbl-line|bg=ff|align=left|show PCI devices}}
 +
|-
 +
<!-- row 4 -->
 +
{{Tbl-line|align=left|'''dmesg <nowiki>|</nowiki> grep usb}}
 +
{{Tbl-line|align=left|'''lsusb -tv}}
 +
{{Tbl-line|align=left|show USB devices}}
 +
|-
 +
<!-- row 5 -->
 +
{{Tbl-line|bg=ff|align=left|'''kldstat}}
 +
{{Tbl-line|bg=ff|align=left|'''lsmod}}
 +
{{Tbl-line|bg=ff|align=left|list all modules loaded in the kernel}}
 +
|-
 +
<!-- row 6 -->
 +
 +
{{Tbl-line|align=left|'''kldload <module>}}
 +
{{Tbl-line|align=left|'''modprobe <module>}}
 +
{{Tbl-line|align=left|load a kernel module for the current session}}
 +
|-
 +
<!-- row 7 -->
 +
{{Tbl-line|bg=ff|align=left|'''pbi_add -r <pbiname>}}
 +
{{Tbl-line|bg=ff|align=left|'''rpm -i <package>.rpm}}
 +
{{Tbl-line|bg=ff|align=left|install software from the command line}}
 +
|-
 +
<!-- row 8 -->
 +
{{Tbl-line|align=left|'''sysctl hw.realmem}}
 +
{{Tbl-line|align=left|'''cat /proc/meminfo}}
 +
{{Tbl-line|align=left|hardware memory}}
 +
|-
 +
<!-- row 9 -->
 +
{{Tbl-line|bg=ff|align=left|'''sysctl hw.model}}
 +
{{Tbl-line|bg=ff|align=left|'''cat /proc/cpuinfo}}
 +
{{Tbl-line|bg=ff|align=left|CPU model}}
 +
|-
 +
<!-- row 10 -->
 +
{{Tbl-line|align=left|'''sysctl hw.machine_arch}}
 +
{{Tbl-line|align=left|'''uname -m}}
 +
{{Tbl-line|align=left|CPU Architecture}}
 +
|-
 +
<!-- row 11 -->
 +
{{Tbl-line|bg=ff|align=left|'''sysctl hw.ncpu}}
 +
{{Tbl-line|bg=ff|align=left|'''getconf _NPROCESSORS_ONLN}}
 +
{{Tbl-line|bg=ff|align=left|number of CPUs}}
 +
|-
 +
<!-- row 12 -->
 +
{{Tbl-line|align=left|'''uname -vm}}
 +
{{Tbl-line|align=left|'''lsb_release -a<br>cat /etc/*release<br>cat /etc/*version}}
 +
{{Tbl-line|align=left|get release version information}}
 +
|-
 +
<!-- row 13 -->
 +
{{Tbl-line|bg=ff|align=left|'''gpart show}}
 +
{{Tbl-line|bg=ff|align=left|'''fdisk -l<br>parted -l}}
 +
{{Tbl-line|bg=ff|align=left|show device partition information}}
 +
|-
 
|}
 
|}
 +
 +
===Additional Resources:===
 +
* [http://www.freebsd.org/doc/en/articles/explaining-bsd/comparing-bsd-and-linux.html Comparing BSD and Linux]
 +
* [http://www.freebsd.org/doc/en/articles/linux-comparison/article.html An Open Source Alternative to Linux]
 +
* [http://www.freebsd.org/doc/en_US.ISO8859-1/articles/linux-users/index.html Quickstart Guide for Linux® Users]
 +
* [http://www.over-yonder.net/~fullermd/rants/bsd4linux/01 BSD vs Linux]
 +
<noinclude>[[category:handbook]]</noinclude>

Revision as of 00:29, 29 January 2012

PC-BSD is based on BSD Unix, meaning that it is not a Linux distribution. If you have used Linux before, you will find that some features that you are used to have different names on a BSD system and that some commands are different. This section covers some of these differences.

Contents

Filesystems

BSD and Linux use different filesystems during installation. Many Linux distros use EXT2, EXT3, EXT4, or ReiserFS, while PC-BSD uses UFS or ZFS. This means that if you wish to dual-boot with Linux or access data on an external drive that has been formatted with a Linux filesystem, you will want to do a bit of research first to see if the data can be made available on both operating systems.

Table 1.4a summarizes the various filesystems commonly used by desktop systems. Most of the desktop managers available from PC-BSD should automatically mount the following filesystems: FAT16, FAT32, EXT2, EXT3 (without journaling), EXT4 (read-only), NTFS5, NTFS6, and XFS. See Files and File Sharing for more information about available file manager utilities.

Table 1.4a: Filesystem Support Between Linux and PC-BSD

Filesystem Native to Type of non-native support Usage notes
Btrfs Linux none Btrfs, when complete, is expected to offer a feature set comparable to ZFS
EXT2 Linux r/w through [ext2fs(5)]
EXT3 Linux r/w through ext2fs(5). EXT3 journaling is not supported. This means that you won't be able to mount a filesystem requiring a journal replay unless you fsck it using an external utility such as e2fsprogs.
EXT4 Linux r/o through ext2fs(5) Journaling is not supported. This means that you won't be able to mount a filesystem requiring a journal replay unless you fsck it using an external utility such as e2fsprogs. EXT3 filesystems converted to EXT4 may be more likely to have better results. May not work. Neither having extended attributes 'enabled' nor inodes greater than 128-bytes are supported.
FAT16 Windows r/w through [msdosfs(5)]
FAT32 Windows r/w through msdosfs(5)
HFS+ Mac OSX none older Mac versions might work with hfsexplorer
JFS Linux none if you're interested in journaling, choose UFS+J during installation
NTFS5 Windows full r/o, some limitations on r/w, via [mount_ntfs(8)];
full r/w through [ntfs-3g(8)]
PC-BSD uses ntfs-3g
NTFS6 Windows r/w through ntfs-3g(8)
ReiserFS Linux r/o through [reiserfs(5)]
UFS PC-BSD r/o support is included in Linux kernel 2.6.5 onwards;
r/w support on Mac;
UFS Explorer can be used on Windows
changed to r/o support in Mac Lion
UFS+S PC-BSD check if your Linux distro provides ufsutils;
r/w support on Mac;
UFS Explorer can be used on Windows
changed to r/o support in Mac Lion
UFS+J PC-BSD check if your Linux distro provides ufsutils;
r/w support on Mac;
UFS Explorer can be used on Windows
changed to r/o support in Mac Lion
XFS Linux r/o through [xfs(5)]
ZFS PC-BSD, OpenSolaris Linux port;
Mac support is under development

Device Names

Linux and BSD use different naming conventions for devices. For example:

  • in Linux, Ethernet interfaces begin with eth; in BSD, interface names indicate the name of the driver. For example, an Ethernet interface may be listed as re0, indicating that it uses the Realtek re driver. The advantage of this convention is that you can read the man 4 page for the driver (e.g. type man 4 re) to see which models and features are provided by that driver.
  • BSD disk names differ from Linux. IDE drives begin with ad and SCSI and USB drives begin with da.

Feature Names

Some of the features used by BSD have similar counterparts to Linux, but the name of the feature is different. Table 1.4b provides some common examples:

Figure 1.4b: Names for BSD and Linux Features

PC-BSD Linux Description
PF iptables default firewall
/etc/rc.d/ for operating system and /usr/local/etc/rc.d/ for applications rc0.d/, rc1.d/, etc. in PC-BSD the directories containing the startup scripts do not link to runlevels as there are no runlevels; system startup scripts are separated from third-party application scripts
/etc/ttys and /etc/rc.conf telinit and init.d/ terminals are configured in ttys and rc.conf indicates which services will start at boot time

Commands

If you're comfortable with the command line, you may find that some of the commands that you are used to have different names on BSD. Table 1.4c lists some common commands and their equivalents.

Table 1.4c: Common BSD and Linux Commands

PC-BSD Linux Result
dmesg dmesg
lsdev (Is this used anywhere?)
discover what hardware was detected by the kernel
sysctl dev cat /proc/devices display configured devices
pciconf -l -cv lspci -tv show PCI devices
dmesg | grep usb lsusb -tv show USB devices
kldstat lsmod list all modules loaded in the kernel
kldload <module> modprobe <module> load a kernel module for the current session
pbi_add -r <pbiname> rpm -i <package>.rpm install software from the command line
sysctl hw.realmem cat /proc/meminfo hardware memory
sysctl hw.model cat /proc/cpuinfo CPU model
sysctl hw.machine_arch uname -m CPU Architecture
sysctl hw.ncpu getconf _NPROCESSORS_ONLN number of CPUs
uname -vm lsb_release -a
cat /etc/*release
cat /etc/*version
get release version information
gpart show fdisk -l
parted -l
show device partition information

Additional Resources: