<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[[要实践么]macOS Big Sur 可写模式挂载root]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Thu, 26 Nov 2020 02:27:45 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：[实践OK]Macbook 升级到catalina 后的一些/data目录不见了等问题<br/>:<a href="https://jackxiang.com/post/10397/" target="_blank">https://jackxiang.com/post/10397/</a>,现在升级后，这个玩法被苹果给屏蔽更深了，怎么办?有人做这个，我不太敢接着搞下去了：<br/>Big Sur 新增了 Signed System Volume 机制，对系统所在的 APFS Volume 增加了更多的保护<br/><br/>Reboot into recovery mode and run:重启mac，按住Command+R，等到系统进入安全模式。<br/>命令 csrutil disable&nbsp;&nbsp;,sur还得加上这个：<br/>csrutil authenticated-root disable<br/><br/>Reboot back into MacOS #正常重启进入系统<br/>Find your root mount&#039;s device - run mount and chop off the last s, e.g. if your root is /dev/disk1s5s1, you&#039;ll mount /dev/disk1s5<br/>Create a new directory, for example ~/mount<br/>Run：sudo mount -o nobrowse -t apfs /dev/disk1s5 ~/mount&nbsp;&nbsp;，我这想:sudo mount -o nobrowse -t apfs /dev/disk1s5 /var/data<br/><textarea name="code" class="php" rows="15" cols="100">
 mount
/dev/disk1s5s1 on / (apfs, sealed, local, read-only, journaled)
sudo mount -o nobrowse -t apfs /dev/disk1s5s1 ~/mount
</textarea><br/>/dev/disk1s5s1 :<a href="https://iosre.com/t/big-sur/18051" target="_blank">https://iosre.com/t/big-sur/18051</a><br/><br/>升级到Big Sur后，以写模式挂载root报错（SIP已disable）<br/><br/>sudo mount -uw /<br/><br/>mount_apfs: volume could not be mounted: Permission denied<br/><br/>mount: / failed with 66<br/><br/>Big Sur 新增了 Signed System Volume 机制，对系统所在的 APFS Volume 增加了更多的保护<br/><br/>Reboot into recovery mode and run:<br/>csrutil authenticated-root disable<br/><br/>Reboot back into MacOS<br/>Find your root mount&#039;s device - run mount and chop off the last s, e.g. if your root is /dev/disk1s5s1, you&#039;ll mount /dev/disk1s5<br/><br/>Create a new directory, for example ~/mount<br/>Run：sudo mount -o nobrowse -t apfs /dev/disk1s5 ~/mount<br/><br/>Modify the files under the mounted directory<br/><br/>Run：sudo bless --folder MOUNT_PATH/System/Library/CoreServices --bootefi --create-snapshot<br/><br/>Reboot your system, and the changes will take place<br/><br/>缺点：<br/><br/>修改后，无法再启用SSV机制，但是可以启用SIP机制，因为系统已修改，导致签名不一致，若启用SSV，则校验失败，报错禁止启动。<br/><br/>csrutil enable<br/><br/>csrutil authenticated-root disable<br/><br/> <br/><br/>Big Sur 引入的 Signed System Volume 机制会给 System APFS Volume 的每个文件 /文件夹都设置一份 hash，在 bootloader 启动后，加载内核前会进行完整性校验，校验不通过的话会拒绝引导，并提示用户重装 macOS 。使用 mount 查看挂载点会发现 /多了个 sealed 标志。系统默认会从 SSV snapshot 启动，对用户无感知。<br/><br/>Big Sur’s Signed System Volume: added security protection<br/><br/><br/>来自：https://www.quwenqing.com/archives/1597.html
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [要实践么]macOS Big Sur 可写模式挂载root]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>