当前位置:首页 > 开发 > 操作系统 > 正文

Mac OS X mkdir: /home/test: Operation not supported

发表于: 2014-11-05   作者:棋子chessman   来源:转载   浏览次数:
摘要: Hmmm, trying to create a directory under '/home' on a Mac? Well, Apple doesn't want you to (with good reason, automounter owns this dir, which makes it easier to do NFS mounts and such) so you should

Hmmm, trying to create a directory under '/home' on a Mac?

Well, Apple doesn't want you to (with good reason, automounter owns this dir, which makes it easier to do NFS mounts and such) so you shouldn't muck with it but if you really just 'have to do it', here is how you can.

Basically: Edit /etc/auto_master and remove or comment out the line that starts with "/home".

example:
sudo vim /etc/auto_master

before:

# Automounter master map
+auto_master            # Use directory service
/net                    -hosts          -nobrowse,hidefromfinder,nosuid
/home                   auto_home       -nobrowse,hidefromfinder
/Network/Servers        -fstab
/-                      -static

after:

# Automounter master map
+auto_master            # Use directory service
/net                    -hosts          -nobrowse,hidefromfinder,nosuid
#/home                   auto_home       -nobrowse,hidefromfinder
/Network/Servers        -fstab
/-                      -static

to have the change take effect without a reboot:
sudo automount

mkdir /home/test
ls -l /home/
total 0
drwxr-xr-x 3 root admin 102 Aug 10 11:33 test

NOTE: I wouldn't do anything 'important' with this directory as it's easy to forget you altered this and an upgrade will plow over this directory, removing all data. (this dir is also not included in any Time Machine backups.

 

转:http://myth326.blog.163.com/blog/static/122251863201122410491446/

Mac OS X mkdir: /home/test: Operation not supported

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

编辑推荐
Mac OS X的Spotlight综述 关于Spotlight的简述 Spotlight是苹果OS X系统里的亮点之一,它的快速查找
Mac OS X的Spotlight综述 关于Spotlight的简述 Spotlight是苹果OS X系统里的亮点之一,它的快速查找
关于 man 命令 虽然有上千条命令,每条命令还有许多可选参数和具体的使用方式,但是你却不需要记住
Install Docker on Mac OS X You can install Docker using Boot2Docker to run docker commands at
Mac OS X的Spotlight综述 关于Spotlight的简述 Spotlight是苹果OS X系统里的亮点之一,它的快速查找
分类: 媒体电脑 看来 Apple 还打算让 Lion 上阵前再撑一阵子,Mac OS X 10.6.8 升级软件现在已经可
下载、解压、重命名并且编译安装Redis ~ wget http://download.redis.io/releases/redis-3.0.5.tar.
(广告)科学上网工具:51VPN ( http://a.wy002.com/240919), 本人cyper使用了3年了,可以同时开4
VMware 8 安装好, MAC Lion .ios 拿到手, 然后 管理员身份安装 Vmware 的 MAC 补丁 (附件unlock-a
Mac电脑安全基础 Securing your Mac basic 版权信息 : 本着开放交流的原则欢迎转载,除非明确声明"
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号