ulovko
发表于 2012-07-08 08:55
本帖最后由 ulovko 于 2012-07-08 08:56 编辑
@fender0107401 i love u
You can search for documentation on a key word by typing:
apropos keyword
man -k keyword
# man hier
HIER(7) FreeBSD Miscellaneous Information Manual HIER(7)
NAME
hier — layout of file systems
DESCRIPTION
A sketch of the file system hierarchy.
/ root directory of the file system
/bin/ user utilities fundamental to both single-user and multi-user
environments
/boot/ programs and configuration files used during operating system
bootstrap
defaults/default bootstrapping configuration files; see
loader.conf(5)
kernel/ pure kernel executable (the operating system loaded
into memory at boot time).
modules/ third-party loadable kernel modules; see kldstat(8)
/cdrom/ default mount point for CD-ROM drives (created by
sysinstall(8))
/compat/ normally a link to /usr/compat.If not, then the /usr/compat
comments apply (created by sysinstall(8))
/dev/ device special files managed by devfs(5)
fd/ file descriptor files; see fd(4)
net/network devices
/dist/ mount point used by sysinstall(8)
/etc/ system configuration files and scripts
defaults/ default system configuration files; see rc(8)
bluetooth/bluetooth configuration files
gnats/ gnats configuration files; see send-pr(1)
localtime local timezone information; see ctime(3)
mail/ Sendmail control files
mtree/ mtree configuration files; see mtree(8)
namedb/ named configuration files; see named(8)
pam.d/ configuration files for the Pluggable Authentica‐
tion Modules (PAM) library
periodic/ scripts that are run daily, weekly, and monthly,
via cron(8); see periodic(8)
rc.d/ System and daemon startup/control scripts; see
rc(8)
security/ OpenBSM audit configuration files; see audit(8)
ppp/ ppp configuration files; see ppp(8)
ssh/ OpenSSH configuration files; see ssh(1)
ssl/ OpenSSL configuration files
/lib/ critical system libraries needed for binaries in /bin and
/sbin
geom/class-specific libraries for the geom(8) utility
/libexec/critical system utilities needed for binaries in /bin and
/sbin
/media/ contains subdirectories to be used as mount points for remov‐
able media such as CDs, USB drives, and floppy disks
/mnt/ empty directory commonly used by system administrators as a
temporary mount point
/proc/ process file system; see procfs(5)
/rescue/ statically linked programs for emergency recovery; see
rescue(8)
/root/ root's HOME directory
/sbin/ system programs and administration utilities fundamental to
both single-user and multi-user environments
/tmp/ temporary files that are not guaranteed to persist across sys‐
tem reboots
/usr/ contains the majority of user utilities and applications
...
...
FROM: http://blog.chinaunix.net/uid-25256412-id-99187.html
BlueSky_Yu84
发表于 2012-07-08 09:20
回复 11# ulovko
我刚刚看了handbook,发现到后面才有关于文件系统和分区的章节...
谢谢!
ulovko
发表于 2012-07-08 09:42
本帖最后由 ulovko 于 2012-07-08 09:43 编辑
@BlueSky_Yu84不客气 :-) ^_^ :emn31:
官方简体中文安装手册:http://www.freebsd.org/doc/zh_CN/books/handbook/
官方en_US安装手册:http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html
官方简体中文安装手册 下载: ftp://ftp.freebsd.org/pub/FreeBSD/doc/zh_CN/books/handbook/
lsstarboy
发表于 2012-07-08 10:30
回复 9# BlueSky_Yu84
8楼的朋友说"/ 、/home是linux里的习惯",难道说FB里默认没有/home?
是个人习惯,不是Linux的习惯。不过一般说来,如果需要保存个人文档,或者有基于个人的业务(比如个人虚拟主机,apache中的user_dir),/home还是必须的,如果是vps,单独建一个/home有点浪费空间。
如果不单独建/home分区,FB的home在/usr下。
Linux下如果不单独分/var、/tmp,会自动占用/分区的容量,FB下/var、/tmp可以不单分吗?/usr是否一定要单分出来?
/usr不分出来就会占/的容量
Linux下可以自定义分区,比如/data,然后挂载,我想FB应该也可以吧?
跟Linux一样,建网站我一般都习惯放在/webroot中。
chinesedragon
发表于 2012-07-09 09:27
三个分区
/home
/
/swap
BIOO
发表于 2012-08-24 21:30
ulovko 发表于 2012-07-07 16:47 static/image/common/back.gif
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html
freebsd-boot的挂在点是什么呢?总是无效。而且auto分区貌似swap在最后
zeissoctopus
发表于 2012-08-24 23:06
BIOO 发表于 2012-08-24 21:30 static/image/common/back.gif
freebsd-boot的挂在点是什么呢?总是无效。而且auto分区貌似swap在最后
如果用 GPT 方式分割硬盤,才需要創建一個 freebsd-boot 分割區存放 FreeBSD GPT 啟動碼,它並不是檔案系統的一部份,所以沒有掛點
如果用傳統的 MBR 方式分割硬盤,不會有 freebsd-boot 分割區
BIOO
发表于 2012-08-25 12:40
什么方式分割硬盘最好呢?有的例子是/,/swap。/var,/usr,有的是swap在最后
gvim
发表于 2012-08-25 19:23
自己当桌面用不用那么纠结。
芭比小柒
发表于 2012-08-25 21:34
:em03:zpool