{"id":36594,"date":"2025-04-24T18:14:21","date_gmt":"2025-04-24T10:14:21","guid":{"rendered":"https:\/\/www.deepin.org\/?p=36594"},"modified":"2025-07-15T10:16:49","modified_gmt":"2025-07-15T02:16:49","slug":"qa-deepin-25-qa-2","status":"publish","type":"post","link":"https:\/\/www.deepin.org.cn\/en\/qa-deepin-25-qa-2\/","title":{"rendered":"deepin 25 FAQ \u2013 Solid(The Immutable System)"},"content":{"rendered":"<img loading=\"lazy\" class=\"alignnone size-full wp-image-36596\" src=\"https:\/\/www.deepin.org\/wp-content\/uploads\/2025\/04\/0424_\u526f\u672c.png\" alt=\"\" width=\"900\" height=\"381\" srcset=\"https:\/\/www.deepin.org.cn\/wp-content\/uploads\/2025\/04\/0424_\u526f\u672c.png 900w, https:\/\/www.deepin.org.cn\/wp-content\/uploads\/2025\/04\/0424_\u526f\u672c-300x127.png 300w, https:\/\/www.deepin.org.cn\/wp-content\/uploads\/2025\/04\/0424_\u526f\u672c-150x64.png 150w, https:\/\/www.deepin.org.cn\/wp-content\/uploads\/2025\/04\/0424_\u526f\u672c-768x325.png 768w, https:\/\/www.deepin.org.cn\/wp-content\/uploads\/2025\/04\/0424_\u526f\u672c-24x10.png 24w, https:\/\/www.deepin.org.cn\/wp-content\/uploads\/2025\/04\/0424_\u526f\u672c-36x15.png 36w, https:\/\/www.deepin.org.cn\/wp-content\/uploads\/2025\/04\/0424_\u526f\u672c-48x20.png 48w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"false\">With the release of the deepin 25 series, we've received numerous valuable discussions and suggestions from the community regarding the \u201cRock-Solid Immutable System\u201d feature. In response to this enthusiasm, this Q&amp;A focuses on explaining the core logic and use cases of this innovative design\u2014from feature descriptions to usage tips and frequently asked questions\u2014aiming to address users\u2019 confusion and concerns.<\/p>\n<p class=\"heading-4 ace-line old-record-id-AxsqdwKWRooHAgxxFoicGI35nVn\"><strong>Q1: Why introduce the Rock-Solid Immutable System?<\/strong><\/p>\n<p class=\"ace-line ace-line old-record-id-A3CqdCBb5oLIwlxTDdycrJVRnWe\">Previous systems lacked protection mechanisms for core components (e.g., \/usr), making them vulnerable to accidental deletion or malicious tampering\u2014posing serious security risks. The old backup and rollback mechanisms were also inefficient and cumbersome to operate, increasing the risk of data loss during system failures.<\/p>\n<p>Considering both system security and usability, deepin introduced the <strong>Rock-Solid Immutable System<\/strong> with features like <strong>read-only protection<\/strong>, <strong>atomic updates<\/strong>, <strong>snapshot management<\/strong>, and <strong>worry-free restoration<\/strong>.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\"><strong>Q2: What is an \"atomic update\"?<\/strong><\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">An atomic update follows an \u201call-or-nothing\u201d principle: either the update is fully successful or the system rolls back to its previous state, eliminating risks of partial updates and ensuring system stability.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">This is paired with a <strong>rollback mechanism<\/strong>: if the system fails to boot properly after an update, users can select a previous system image during startup to restore the system to a functional state<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\"><strong>Q3: What is \"snapshot management\"?<\/strong><\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">The system automatically creates a snapshot before each update to record the system\u2019s current state. Users can also manually create snapshots or use backup tools. If a software installation fails or a configuration is misapplied, users can roll back to a previous snapshot with one click.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">Currently, snapshot management covers \/usr, \/etc, \/opt, \/boot, and \/var. It does <strong>not<\/strong> include personal user data.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">Note: Snapshot management only applies to system files, configurations, and important files in parts of \/var. User data remains unaffected when creating or restoring snapshots.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\"><strong>Q4: What is \"Worry-Free Restoration\"?<\/strong><\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">\"Worry-Free Restoration\u201d\"allows the system to detect any changes made by users and lets them discard or partially discard them upon reboot.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\"><strong>Typical use cases include<\/strong>:<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\"><strong>Device lending\/shared use<\/strong>: After enabling this feature, any changes (e.g., installing apps or changing settings) will be discarded after reboot\u2014ensuring privacy.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\"><strong>Developers testing risky operations<\/strong>: Helps avoid irreversible consequences from commands like sudo rm -rf \/ --no-preserve-root. After a reboot, the system will safely revert.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\"><strong>Q5: What is \"Read-Only Protection\"?<\/strong><\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">By default, the Rock-Solid Immutable System mounts key directories such as \/usr, \/bin, and \/lib as read-only.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">This prevents any modifications by malicious software or accidental actions, safeguarding system integrity.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\"><strong>Q6: As a developer, how can I disable \"Read-Only Protection\"?<\/strong><\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">When enabled, the system blocks all modification attempts\u2014even with root permissions\u2014returning a \u201cread-only file system\u201d error.<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">To disable read-only protection (effective after reboot):<\/p>\n<p class=\"heading-4 ace-line old-record-id-Msl6dqGEBo8WKvxLgXEc5gXWnIL\">For <strong>deepin 25 Alpha and later versions<\/strong>:<\/p>\n<div data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"false\">\n<blockquote>\n<div class=\" old-record-id-Oa4GdejHroMDXcxHHTUcP55onub\">sudo deepin-<strong>immutable<\/strong>-writable enable -d \/usr<\/div>\n<\/blockquote>\n<\/div>\n<div data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"false\">\n<div class=\"ace-line ace-line old-record-id-D2iedojPDozDrMxIUI3csP1AnWc\">Note: Disabling protection remounts \/usr as writable. Be cautious\u2014your changes may be reverted if protection is later re-enabled.<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"false\">\n<p class=\"heading-4 ace-line old-record-id-ZPgrd2ZzTorzptxqNidceCugnsc\"><strong>Q7: How do I re-enable \"Read-Only Protection\"?<\/strong><\/p>\n<p class=\"ace-line ace-line old-record-id-Qj54dYgo7o48vXxHo3hcD9QlnTg\">To re-enable protection (effective after reboot):<\/p>\n<p class=\"ace-line ace-line old-record-id-Qj54dYgo7o48vXxHo3hcD9QlnTg\">For <strong>deepin 25 Alpha and later<\/strong>:<\/p>\n<\/div>\n<div data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"false\">\n<blockquote>\n<div class=\" old-record-id-Yib0dHfcWoZD48xay1ZcpzIWnQc\">sudo deepin-<strong>immutable<\/strong>-writable disable<\/div>\n<\/blockquote>\n<\/div>\n<div data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"false\">\n<p class=\"heading-4 ace-line old-record-id-T9o0dZuMeoJQhixDM69cGlQCnJc\"><strong>Q8: How should I update the Rock-Solid Immutable System?<\/strong><\/p>\n<p class=\"ace-line ace-line old-record-id-XMINdRw45oLyjcxRIqRcOoPsn2Z\">The most recommended method is through the <strong>Control Center<\/strong>, which includes snapshot creation and fallback to previous versions if the update fails.<\/p>\n<p class=\"ace-line ace-line old-record-id-ITtCdRkfuojH5WxTBgPcNR0EnPg\">If you're on <strong>deepin 25 Preview<\/strong>, use:<\/p>\n<\/div>\n<div>\n<div data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"false\">\n<blockquote>\n<div class=\" old-record-id-AtDZdrgMpoHHu1xnOKpcQZuVnEg\">deepin-<strong>immutable<\/strong>-ctl ota upgrade<\/div>\n<\/blockquote>\n<\/div>\n<\/div>\n<div>\n<div data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"false\">\n<p class=\"ace-line ace-line old-record-id-IDX8dTpwBoHFI5xHwdgcrQLtnZf\">If you're on <strong>deepin 25 Alpha<\/strong>, ota commands are deprecated. The system still follows the standard apt\/dpkg package management logic, so you can upgrade the system by running: sudo apt dist-upgrade<\/p>\n<\/div>\n<\/div>\n<div data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"false\">\n<p class=\"heading-4 ace-line old-record-id-ECKSdwEXPorGqTxT0Q7csFT0ntD\"><strong>Q9: Will the system block .deb packages or software installations?<\/strong><\/p>\n<div class=\"ace-line ace-line old-record-id-BxlzdwTjLodeMFxCUklc35v4n3b\">For .deb packages, you can <strong>install directly<\/strong>\u2014the system has adapted apt and dpkg to allow this without needing to disable protection.<\/div>\n<div class=\"ace-line ace-line old-record-id-QzS3dOyF6oNLQcxbhKBcCwHanth\">For other package formats like .run or .bundle, you must <strong>disable protection first<\/strong>, since they require modifying read-only directories such as \/usr.<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div data-page-id=\"XtDwdFZV9oTxxxxRLxFc5Y8VnFg\" data-lark-html-role=\"root\" data-docx-has-block-data=\"true\">\n<p class=\"heading-4 ace-line old-record-id-QqUSdbnWvogpZvxDdeQcSqJwn6f\"><strong>Q10: What if backups take up too much disk space?<\/strong><\/p>\n<p class=\"ace-line ace-line old-record-id-HU2NdfKNdo4aWkxs9OkcOAREnyb\">Each snapshot typically adds about <strong>200MB<\/strong>. You can list existing snapshots using the -j flag and use scripts to delete old ones and manage disk space more effectively.<\/p>\n<p class=\"ace-line ace-line old-record-id-HU2NdfKNdo4aWkxs9OkcOAREnyb\">We hope this Q&amp;A addresses common questions about the deepin 25 \"Rock-Solid Immutable System.\" If you encounter issues not covered here, please leave a comment or post in the community forum\u2014we welcome your feedback!<\/p>\n<p class=\"ace-line ace-line old-record-id-HU2NdfKNdo4aWkxs9OkcOAREnyb\">We've already received many insightful suggestions from the community, such as:<\/p>\n<p class=\"ace-line ace-line old-record-id-Pm8kdVuwAoqAA6x3c5ocWzEznKh\">Transitioning to a <strong>seamless read\/write experience<\/strong>, Providing <strong>clearer snapshot management<\/strong>, and adding <strong>warnings before risky operations<\/strong>.<\/p>\n<p class=\"ace-line ace-line old-record-id-FW8AdYst3ovnrnxi1NjcDUmxnIe\">These ideas have been incorporated into our product roadmap. Given hardware diversity and individual usage habits, some users may face unique challenges. If so, feel free to post in the forum\u2014our developers and fellow users are happy to help!<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>With the release of the deepin 25 series, we've received numerous valuable discussions and suggestions from the community regarding the \u201cRock-Solid Immutable System\u201d feature. In response to this enthusiasm, this Q&amp;A focuses on explaining the core logic and use cases of this innovative design\u2014from feature descriptions to usage tips and frequently asked questions\u2014aiming to address users\u2019 confusion and concerns. Q1: Why introduce the Rock-Solid Immutable System? Previous systems lacked protection mechanisms for core components (e.g., \/usr), making them vulnerable to accidental deletion or malicious tampering\u2014posing serious security risks. The old backup and rollback mechanisms were also inefficient and cumbersome to ...<a href=https:\/\/www.deepin.org.cn\/en\/qa-deepin-25-qa-2\/>Read more<\/a><\/p>\n","protected":false},"author":18825,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[75,155,93],"tags":[],"_links":{"self":[{"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/posts\/36594"}],"collection":[{"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/users\/18825"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/comments?post=36594"}],"version-history":[{"count":9,"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/posts\/36594\/revisions"}],"predecessor-version":[{"id":37113,"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/posts\/36594\/revisions\/37113"}],"wp:attachment":[{"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/media?parent=36594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/categories?post=36594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deepin.org.cn\/en\/wp-json\/wp\/v2\/tags?post=36594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}