免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: BlueSky_Yu84
打印 上一主题 下一主题

[FreeBSD] 【已经解决】FreeBSD该如何分区? [复制链接]

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期:2015-05-04 22:32:03处女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午马
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56狮子座
日期:2013-09-08 08:37:52
11 [报告]
发表于 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

  1. # man hier
  2. HIER(7)            FreeBSD Miscellaneous Information Manual            HIER(7)

  3. NAME
  4.      hier — layout of file systems

  5. DESCRIPTION
  6.      A sketch of the file system hierarchy.

  7.      /          root directory of the file system

  8.      /bin/      user utilities fundamental to both single-user and multi-user
  9.                 environments

  10.      /boot/     programs and configuration files used during operating system
  11.                 bootstrap

  12.                 defaults/  default bootstrapping configuration files; see
  13.                            loader.conf(5)
  14.                 kernel/    pure kernel executable (the operating system loaded
  15.                            into memory at boot time).
  16.                 modules/   third-party loadable kernel modules; see kldstat(8)

  17.      /cdrom/    default mount point for CD-ROM drives (created by
  18.                 sysinstall(8))

  19.      /compat/   normally a link to /usr/compat.  If not, then the /usr/compat
  20.                 comments apply (created by sysinstall(8))

  21.      /dev/      device special files managed by devfs(5)

  22.                 fd/   file descriptor files; see fd(4)
  23.                 net/  network devices

  24.      /dist/     mount point used by sysinstall(8)

  25.      /etc/      system configuration files and scripts

  26.                 defaults/   default system configuration files; see rc(8)
  27.                 bluetooth/  bluetooth configuration files
  28.                 gnats/      gnats configuration files; see send-pr(1)
  29.                 localtime   local timezone information; see ctime(3)
  30.                 mail/       Sendmail control files
  31.                 mtree/      mtree configuration files; see mtree(8)
  32.                 namedb/     named configuration files; see named(8)
  33.                 pam.d/      configuration files for the Pluggable Authentica‐
  34.                             tion Modules (PAM) library
  35.                 periodic/   scripts that are run daily, weekly, and monthly,
  36.                             via cron(8); see periodic(8)
  37.                 rc.d/       System and daemon startup/control scripts; see
  38.                             rc(8)
  39.                 security/   OpenBSM audit configuration files; see audit(8)
  40.                 ppp/        ppp configuration files; see ppp(8)
  41.                 ssh/        OpenSSH configuration files; see ssh(1)
  42.                 ssl/        OpenSSL configuration files

  43.      /lib/      critical system libraries needed for binaries in /bin and
  44.                 /sbin

  45.                 geom/  class-specific libraries for the geom(8) utility

  46.      /libexec/  critical system utilities needed for binaries in /bin and
  47.                 /sbin

  48.      /media/    contains subdirectories to be used as mount points for remov‐
  49.                 able media such as CDs, USB drives, and floppy disks

  50.      /mnt/      empty directory commonly used by system administrators as a
  51.                 temporary mount point

  52.      /proc/     process file system; see procfs(5)

  53.      /rescue/   statically linked programs for emergency recovery; see
  54.                 rescue(8)

  55.      /root/     root's HOME directory

  56.      /sbin/     system programs and administration utilities fundamental to
  57.                 both single-user and multi-user environments

  58.      /tmp/      temporary files that are not guaranteed to persist across sys‐
  59.                 tem reboots

  60.      /usr/      contains the majority of user utilities and applications
  61. ...
  62. ...
复制代码
FROM: http://blog.chinaunix.net/uid-25256412-id-99187.html

论坛徽章:
0
12 [报告]
发表于 2012-07-08 09:20 |只看该作者
回复 11# ulovko


    我刚刚看了handbook,发现到后面才有关于文件系统和分区的章节...

    谢谢!

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期:2015-05-04 22:32:03处女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午马
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56狮子座
日期:2013-09-08 08:37:52
13 [报告]
发表于 2012-07-08 09:42 |只看该作者
本帖最后由 ulovko 于 2012-07-08 09:43 编辑

@BlueSky_Yu84不客气 ^_^

官方简体中文安装手册:http://www.freebsd.org/doc/zh_CN/books/handbook/
官方en_US安装手册:http://www.freebsd.org/doc/en_US ... handbook/index.html
官方简体中文安装手册 下载: ftp://ftp.freebsd.org/pub/FreeBSD/doc/zh_CN/books/handbook/

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
14 [报告]
发表于 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中。

论坛徽章:
0
15 [报告]
发表于 2012-07-09 09:27 |只看该作者
三个分区
/home
/
/swap

论坛徽章:
0
16 [报告]
发表于 2012-08-24 21:30 |只看该作者


freebsd-boot的挂在点是什么呢?总是无效。而且auto分区貌似swap在最后

论坛徽章:
0
17 [报告]
发表于 2012-08-24 23:06 |只看该作者
BIOO 发表于 2012-08-24 21:30
freebsd-boot的挂在点是什么呢?总是无效。而且auto分区貌似swap在最后


如果用 GPT 方式分割硬盤,才需要創建一個 freebsd-boot 分割區存放 FreeBSD GPT 啟動碼,它並不是檔案系統的一部份,所以沒有掛點
如果用傳統的 MBR 方式分割硬盤,不會有 freebsd-boot 分割區

评分

参与人数 1可用积分 +3 收起 理由
ulovko + 3 感谢解答 ^_^

查看全部评分

论坛徽章:
0
18 [报告]
发表于 2012-08-25 12:40 |只看该作者
什么方式分割硬盘最好呢?有的例子是/,/swap。/var,/usr,有的是swap在最后

论坛徽章:
2
亥猪
日期:2014-03-19 16:36:35午马
日期:2014-11-23 23:48:46
19 [报告]
发表于 2012-08-25 19:23 |只看该作者
自己当桌面用不用那么纠结。

论坛徽章:
0
20 [报告]
发表于 2012-08-25 21:34 |只看该作者
zpool
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP