GET https://kbin.spritesserver.nl/u/@AnonStoleMyPants@sopuli.xyz/threads/hot/%E2%88%9E/articles

Components

18 Twig Components
37 Render Count
23 ms Render Time
14.0 MiB Memory Usage

Components

Name Metadata Render Count Render Time
settings_row_switch
"App\Twig\Components\SettingsRowSwitchComponent"
components/_settings_row_switch.html.twig
15 3.30ms
user_settings_row_switch
"App\Twig\Components\UserSettingsRowSwitchComponent"
components/_user_settings_row_switch.html.twig
4 0.64ms
date
"App\Twig\Components\DateComponent"
components/date.html.twig
2 0.41ms
settings_row_enum
"App\Twig\Components\SettingsRowEnumComponent"
components/_settings_row_enum.html.twig
2 0.34ms
entry
"App\Twig\Components\EntryComponent"
components/_cached.html.twig
1 11.56ms
user_inline
"App\Twig\Components\UserInlineComponent"
components/user_inline.html.twig
1 0.38ms
date_edited
"App\Twig\Components\DateEditedComponent"
components/date_edited.html.twig
1 0.23ms
magazine_inline
"App\Twig\Components\MagazineInlineComponent"
components/magazine_inline.html.twig
1 0.29ms
vote
"App\Twig\Components\VoteComponent"
components/vote.html.twig
1 0.53ms
boost
"App\Twig\Components\BoostComponent"
components/boost.html.twig
1 1.02ms
user_actions
"App\Twig\Components\UserActionsComponent"
components/user_actions.html.twig
1 0.41ms
related_magazines
"App\Twig\Components\RelatedMagazinesComponent"
components/_cached.html.twig
1 2.15ms
active_users
"App\Twig\Components\ActiveUsersComponent"
components/_cached.html.twig
1 0.27ms
related_categories
"App\Twig\Components\RelatedCategoriesComponent"
components/_cached.html.twig
1 1.18ms
related_posts
"App\Twig\Components\RelatedPostsComponent"
components/_cached.html.twig
1 1.25ms
related_entries
"App\Twig\Components\RelatedEntriesComponent"
components/_cached.html.twig
1 1.31ms
support_us_block
"App\Twig\Components\SupportUsBlock"
components/_cached.html.twig
1 0.22ms
featured_magazines
"App\Twig\Components\FeaturedMagazinesComponent"
components/_cached.html.twig
1 0.90ms

Render calls

entry App\Twig\Components\EntryComponent 14.0 MiB 11.56 ms
Input props
[
  "entry" => App\Entity\Entry {#1585
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "AnonStoleMyPants@sopuli.xyz"
      +username: "@AnonStoleMyPants@sopuli.xyz"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1728559488 {#273
        date: 2024-10-10 13:24:48.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 2300
      -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "AnonStoleMyPants@sopuli.xyz"
      +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apFollowersUrl: null
      +apInboxUrl: "https://sopuli.xyz/inbox"
      +apDomain: "sopuli.xyz"
      +apPreferredUsername: "AnonStoleMyPants"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728411254 {#274
        date: 2024-10-08 20:14:14.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687022122 {#268
        date: 2023-06-17 19:15:22.0 +02:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1731
      +icon: Proxies\__CG__\App\Entity\Image {#2319 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#2299
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2303 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2305 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2318 …}
      +entries: Doctrine\ORM\PersistentCollection {#2313 …}
      +posts: Doctrine\ORM\PersistentCollection {#2294 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2296 …}
      +bans: Doctrine\ORM\PersistentCollection {#2278 …}
      +reports: Doctrine\ORM\PersistentCollection {#2222 …}
      +badges: Doctrine\ORM\PersistentCollection {#2201 …}
      +logs: Doctrine\ORM\PersistentCollection {#2270 …}
      +awards: Doctrine\ORM\PersistentCollection {#2199 …}
      +categories: Doctrine\ORM\PersistentCollection {#2271 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#2311
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2298
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1619 …}
    +slug: "BTRFS-and-moving-home-to-subvolume-in-need-of-a"
    +title: "BTRFS and moving /home to subvolume, in need of a sanity check."
    +url: null
    +body: """
      So I installed Debian 12 with btrfs and apparently it only uses a single subvolume `rootfs`. I would like to have my `/home` in a separate subvolume (and possibly `/var` too I guess) and with a flat subvolume structure. I started figuring out on how to do it and I feel like I’m not entirely sure yet so I need a sanity check.\n
      \n
      Lots of comments online seem to use something like this method:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">cd /\n
      </span><span style="color:#323232;">mv /home /home_old\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home_old/* /home/\n
      </span>\n
      ```\n
      \n
      But this would NOT create a flat subvolume structure, right? And you woul NOT need to modify `fstab` as the `/home` would be automatically mounted because it resides under `rootfs` actually because `/` is `rootfs` and not its parent?\n
      \n
      If I want to actually have a flat structure, then I would first need to mount the actual parent subvolume (subvolumeid=5), cd into it, then create the `home` subvolume, copy everything from the current `home` directory into there, unmount, modify `fstab` to mount `home`, and delete the old stuff and reboot I guess.\n
      \n
      Soo something like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mkdir /mnt/tmp\n
      </span><span style="color:#323232;">    Make a folder for mount\n
      </span><span style="color:#323232;">mount -o subvolid=5 /dev/sdXX /mnt/tmp/\n
      </span><span style="color:#323232;">    Mount the actual parent subvolume\n
      </span><span style="color:#323232;">cd /mnt/tmp/\n
      </span><span style="color:#323232;">    Here 'ls -a' would output 'rootfs' if I understood correctly\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">    Create new subvolume, now being sibling of 'rootfs'\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home/* /mnt/tmp/home/\n
      </span><span style="color:#323232;">    Copy old /home\n
      </span><span style="color:#323232;">umount /mnt/tmp/\n
      </span><span style="color:#323232;">    Don't need it anymore \n
      </span>\n
      ```\n
      \n
      Then go to `fstab`, and do something like\n
      \n
      ```\n
      \n
      <span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">-> change into\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">UUID=  /home btrfs  subvol=home bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span>\n
      ```\n
      \n
      Then just `rm -rf /home/*` (or just move to keep it as backup if something is fucked up) and reboot?\n
      \n
      Does this sound about right?\n
      \n
      Edit:\n
      \n
      Everything went smoothly. Well just don’t fuck up fstab like I did. Decided not to make `/var` into a subvolume because not sure if you can do it the same way, thinking that logs etc are being written all the time so the gap between me copying everything to the subvolume, and eventually booting might make weird things but dunno. Also added `compress=zstd` into `fstab` mount options to reduce writes on the ssd.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 0
    +favouriteCount: 1
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1698665174 {#1574
      date: 2023-10-30 12:26:14.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1702 …}
    +votes: Doctrine\ORM\PersistentCollection {#1683 …}
    +reports: Doctrine\ORM\PersistentCollection {#1689 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1724 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1727 …}
    +badges: Doctrine\ORM\PersistentCollection {#2464 …}
    +children: []
    -id: 9460
    -titleTs: "'/home':4 'btrfs':1 'check':12 'move':3 'need':8 'saniti':11 'subvolum':6"
    -bodyTs: "'/dev/sdxx':197 '/home':23,78,89,110,232,236,273,286 '/home_old':79,88 '/mnt/tmp':187,198,205,238 '/mnt/tmp/home':233 '/var':30,325 '12':5 '5':149,196 'actual':120,132,145,201 'ad':370 'also':369 'alway':87,231 'anymor':243 'appar':9 'automat':113 'backup':294 'boot':362 'btrfs':7,80,216,253,264,274 'bunch':256,267,277 'cd':76,150,204 'chang':261 'check':64 'comment':67 'compress':371 'copi':158,234,355 'correct':215 'cp':84,228 'creat':82,94,154,218,220 'current':162 'debian':4 'decid':321 'delet':174 'directori':164 'dunno':368 'edit':307 'entir':56 'etc':343 'eventu':361 'everyth':159,308,356 'feel':51 'figur':42 'first':140 'flat':37,96,135 'folder':190 'fstab':107,169,247,317,374 'fuck':298,315 'gap':352 'go':245 'guess':33,181 'home':83,156,163,172,219,276 'instal':3 'keep':291 'like':19,52,73,184,251,318 'log':342 'lot':65 'ls':207 'm':54 'make':188,324,364 'method':75 'might':363 'mkdir':186 'modifi':106,168 'mount':114,143,171,192,193,199,375 'move':289 'mv':77 'need':61,104,141,241 'new':221 'o':194 'old':176,235 'onlin':68 'option':258,269,279,376 'output':210 'parent':127,146,202 'possibl':29 'reboot':179,301 'reduc':378 'reflink':86,230 'resid':117 'rf':285 'right':99,306 'rm':284 'rootf':16,119,123,211,227,255,266 'saniti':63 'seem':69 'separ':26 'sibl':225 'singl':14 'smooth':310 'someth':72,183,250,296 'soo':182 'sound':304 'ssd':382 'start':41 'structur':39,98,136 'stuff':177,260,271,281 'subvol':254,265,275 'subvolid':195 'subvolum':15,27,38,81,97,147,157,203,217,222,328,359 'subvolumeid':148 'sure':57,331 'thing':366 'think':340 'time':349 'umount':237 'understood':214 'unmount':167 'use':12,71 'uuid':252,263,272 'want':130 'way':339 'weird':365 'well':311 'went':309 'woul':102 'would':18,92,111,139,209 'write':379 'written':346 'yet':58 'zstd':372"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1698665174
    +visibility: "visible             "
    +apId: "https://sopuli.xyz/post/5276014"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698665174 {#1409
      date: 2023-10-30 12:26:14.0 +01:00
    }
  }
  "showMagazineName" => true
]
Attributes
[]
Component
App\Twig\Components\EntryComponent {#2072
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  -newCommentMarkerCount: App\Kbin\NewCommentMarker\NewCommentMarkerCount {#2068 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -security: Symfony\Bundle\SecurityBundle\Security {#1101 …}
  +entry: App\Entity\Entry {#1585
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "AnonStoleMyPants@sopuli.xyz"
      +username: "@AnonStoleMyPants@sopuli.xyz"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1728559488 {#273
        date: 2024-10-10 13:24:48.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 2300
      -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "AnonStoleMyPants@sopuli.xyz"
      +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apFollowersUrl: null
      +apInboxUrl: "https://sopuli.xyz/inbox"
      +apDomain: "sopuli.xyz"
      +apPreferredUsername: "AnonStoleMyPants"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728411254 {#274
        date: 2024-10-08 20:14:14.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687022122 {#268
        date: 2023-06-17 19:15:22.0 +02:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1731
      +icon: Proxies\__CG__\App\Entity\Image {#2319 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#2299
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2303 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2305 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2318 …}
      +entries: Doctrine\ORM\PersistentCollection {#2313 …}
      +posts: Doctrine\ORM\PersistentCollection {#2294 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2296 …}
      +bans: Doctrine\ORM\PersistentCollection {#2278 …}
      +reports: Doctrine\ORM\PersistentCollection {#2222 …}
      +badges: Doctrine\ORM\PersistentCollection {#2201 …}
      +logs: Doctrine\ORM\PersistentCollection {#2270 …}
      +awards: Doctrine\ORM\PersistentCollection {#2199 …}
      +categories: Doctrine\ORM\PersistentCollection {#2271 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#2311
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2298
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1619 …}
    +slug: "BTRFS-and-moving-home-to-subvolume-in-need-of-a"
    +title: "BTRFS and moving /home to subvolume, in need of a sanity check."
    +url: null
    +body: """
      So I installed Debian 12 with btrfs and apparently it only uses a single subvolume `rootfs`. I would like to have my `/home` in a separate subvolume (and possibly `/var` too I guess) and with a flat subvolume structure. I started figuring out on how to do it and I feel like I’m not entirely sure yet so I need a sanity check.\n
      \n
      Lots of comments online seem to use something like this method:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">cd /\n
      </span><span style="color:#323232;">mv /home /home_old\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home_old/* /home/\n
      </span>\n
      ```\n
      \n
      But this would NOT create a flat subvolume structure, right? And you woul NOT need to modify `fstab` as the `/home` would be automatically mounted because it resides under `rootfs` actually because `/` is `rootfs` and not its parent?\n
      \n
      If I want to actually have a flat structure, then I would first need to mount the actual parent subvolume (subvolumeid=5), cd into it, then create the `home` subvolume, copy everything from the current `home` directory into there, unmount, modify `fstab` to mount `home`, and delete the old stuff and reboot I guess.\n
      \n
      Soo something like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mkdir /mnt/tmp\n
      </span><span style="color:#323232;">    Make a folder for mount\n
      </span><span style="color:#323232;">mount -o subvolid=5 /dev/sdXX /mnt/tmp/\n
      </span><span style="color:#323232;">    Mount the actual parent subvolume\n
      </span><span style="color:#323232;">cd /mnt/tmp/\n
      </span><span style="color:#323232;">    Here 'ls -a' would output 'rootfs' if I understood correctly\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">    Create new subvolume, now being sibling of 'rootfs'\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home/* /mnt/tmp/home/\n
      </span><span style="color:#323232;">    Copy old /home\n
      </span><span style="color:#323232;">umount /mnt/tmp/\n
      </span><span style="color:#323232;">    Don't need it anymore \n
      </span>\n
      ```\n
      \n
      Then go to `fstab`, and do something like\n
      \n
      ```\n
      \n
      <span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">-> change into\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">UUID=  /home btrfs  subvol=home bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span>\n
      ```\n
      \n
      Then just `rm -rf /home/*` (or just move to keep it as backup if something is fucked up) and reboot?\n
      \n
      Does this sound about right?\n
      \n
      Edit:\n
      \n
      Everything went smoothly. Well just don’t fuck up fstab like I did. Decided not to make `/var` into a subvolume because not sure if you can do it the same way, thinking that logs etc are being written all the time so the gap between me copying everything to the subvolume, and eventually booting might make weird things but dunno. Also added `compress=zstd` into `fstab` mount options to reduce writes on the ssd.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 0
    +favouriteCount: 1
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1698665174 {#1574
      date: 2023-10-30 12:26:14.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1702 …}
    +votes: Doctrine\ORM\PersistentCollection {#1683 …}
    +reports: Doctrine\ORM\PersistentCollection {#1689 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1724 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1727 …}
    +badges: Doctrine\ORM\PersistentCollection {#2464 …}
    +children: []
    -id: 9460
    -titleTs: "'/home':4 'btrfs':1 'check':12 'move':3 'need':8 'saniti':11 'subvolum':6"
    -bodyTs: "'/dev/sdxx':197 '/home':23,78,89,110,232,236,273,286 '/home_old':79,88 '/mnt/tmp':187,198,205,238 '/mnt/tmp/home':233 '/var':30,325 '12':5 '5':149,196 'actual':120,132,145,201 'ad':370 'also':369 'alway':87,231 'anymor':243 'appar':9 'automat':113 'backup':294 'boot':362 'btrfs':7,80,216,253,264,274 'bunch':256,267,277 'cd':76,150,204 'chang':261 'check':64 'comment':67 'compress':371 'copi':158,234,355 'correct':215 'cp':84,228 'creat':82,94,154,218,220 'current':162 'debian':4 'decid':321 'delet':174 'directori':164 'dunno':368 'edit':307 'entir':56 'etc':343 'eventu':361 'everyth':159,308,356 'feel':51 'figur':42 'first':140 'flat':37,96,135 'folder':190 'fstab':107,169,247,317,374 'fuck':298,315 'gap':352 'go':245 'guess':33,181 'home':83,156,163,172,219,276 'instal':3 'keep':291 'like':19,52,73,184,251,318 'log':342 'lot':65 'ls':207 'm':54 'make':188,324,364 'method':75 'might':363 'mkdir':186 'modifi':106,168 'mount':114,143,171,192,193,199,375 'move':289 'mv':77 'need':61,104,141,241 'new':221 'o':194 'old':176,235 'onlin':68 'option':258,269,279,376 'output':210 'parent':127,146,202 'possibl':29 'reboot':179,301 'reduc':378 'reflink':86,230 'resid':117 'rf':285 'right':99,306 'rm':284 'rootf':16,119,123,211,227,255,266 'saniti':63 'seem':69 'separ':26 'sibl':225 'singl':14 'smooth':310 'someth':72,183,250,296 'soo':182 'sound':304 'ssd':382 'start':41 'structur':39,98,136 'stuff':177,260,271,281 'subvol':254,265,275 'subvolid':195 'subvolum':15,27,38,81,97,147,157,203,217,222,328,359 'subvolumeid':148 'sure':57,331 'thing':366 'think':340 'time':349 'umount':237 'understood':214 'unmount':167 'use':12,71 'uuid':252,263,272 'want':130 'way':339 'weird':365 'well':311 'went':309 'woul':102 'would':18,92,111,139,209 'write':379 'written':346 'yet':58 'zstd':372"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1698665174
    +visibility: "visible             "
    +apId: "https://sopuli.xyz/post/5276014"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698665174 {#1409
      date: 2023-10-30 12:26:14.0 +01:00
    }
  }
  +isSingle: false
  +showShortSentence: true
  +showBody: false
  +showMagazineName: true
  +canSeeTrash: false
  +newComments: 0
}
user_inline App\Twig\Components\UserInlineComponent 14.0 MiB 0.38 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "AnonStoleMyPants@sopuli.xyz"
    +username: "@AnonStoleMyPants@sopuli.xyz"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1728559488 {#273
      date: 2024-10-10 13:24:48.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 2300
    -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "AnonStoleMyPants@sopuli.xyz"
    +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
    +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
    +apFollowersUrl: null
    +apInboxUrl: "https://sopuli.xyz/inbox"
    +apDomain: "sopuli.xyz"
    +apPreferredUsername: "AnonStoleMyPants"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728411254 {#274
      date: 2024-10-08 20:14:14.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687022122 {#268
      date: 2023-06-17 19:15:22.0 +02:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#2508
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "AnonStoleMyPants@sopuli.xyz"
    +username: "@AnonStoleMyPants@sopuli.xyz"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1728559488 {#273
      date: 2024-10-10 13:24:48.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 2300
    -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "AnonStoleMyPants@sopuli.xyz"
    +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
    +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
    +apFollowersUrl: null
    +apInboxUrl: "https://sopuli.xyz/inbox"
    +apDomain: "sopuli.xyz"
    +apPreferredUsername: "AnonStoleMyPants"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728411254 {#274
      date: 2024-10-08 20:14:14.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687022122 {#268
      date: 2023-06-17 19:15:22.0 +02:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 14.0 MiB 0.28 ms
Input props
[
  "date" => DateTimeImmutable @1698665174 {#1409
    date: 2023-10-30 12:26:14.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#2575
  +date: DateTimeImmutable @1698665174 {#1409
    date: 2023-10-30 12:26:14.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 14.0 MiB 0.23 ms
Input props
[
  "createdAt" => DateTimeImmutable @1698665174 {#1409
    date: 2023-10-30 12:26:14.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#2639
  +createdAt: DateTimeImmutable @1698665174 {#1409
    date: 2023-10-30 12:26:14.0 +01:00
  }
  +editedAt: null
}
magazine_inline App\Twig\Components\MagazineInlineComponent 14.0 MiB 0.29 ms
Input props
[
  "magazine" => Proxies\__CG__\App\Entity\Magazine {#1731
    +icon: Proxies\__CG__\App\Entity\Image {#2319 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#2299
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#2303 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#2305 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2318 …}
    +entries: Doctrine\ORM\PersistentCollection {#2313 …}
    +posts: Doctrine\ORM\PersistentCollection {#2294 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2296 …}
    +bans: Doctrine\ORM\PersistentCollection {#2278 …}
    +reports: Doctrine\ORM\PersistentCollection {#2222 …}
    +badges: Doctrine\ORM\PersistentCollection {#2201 …}
    +logs: Doctrine\ORM\PersistentCollection {#2270 …}
    +awards: Doctrine\ORM\PersistentCollection {#2199 …}
    +categories: Doctrine\ORM\PersistentCollection {#2271 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#2311
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#2298
      date: 2023-11-02 13:51:08.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\MagazineInlineComponent {#2704
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1731
    +icon: Proxies\__CG__\App\Entity\Image {#2319 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#2299
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#2303 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#2305 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2318 …}
    +entries: Doctrine\ORM\PersistentCollection {#2313 …}
    +posts: Doctrine\ORM\PersistentCollection {#2294 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2296 …}
    +bans: Doctrine\ORM\PersistentCollection {#2278 …}
    +reports: Doctrine\ORM\PersistentCollection {#2222 …}
    +badges: Doctrine\ORM\PersistentCollection {#2201 …}
    +logs: Doctrine\ORM\PersistentCollection {#2270 …}
    +awards: Doctrine\ORM\PersistentCollection {#2199 …}
    +categories: Doctrine\ORM\PersistentCollection {#2271 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#2311
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#2298
      date: 2023-11-02 13:51:08.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +showTitle: true
  +fullName: false
  +stretchedLink: false
  +showAvatar: false
}
vote App\Twig\Components\VoteComponent 14.0 MiB 0.53 ms
Input props
[
  "subject" => App\Entity\Entry {#1585
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "AnonStoleMyPants@sopuli.xyz"
      +username: "@AnonStoleMyPants@sopuli.xyz"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1728559488 {#273
        date: 2024-10-10 13:24:48.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 2300
      -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "AnonStoleMyPants@sopuli.xyz"
      +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apFollowersUrl: null
      +apInboxUrl: "https://sopuli.xyz/inbox"
      +apDomain: "sopuli.xyz"
      +apPreferredUsername: "AnonStoleMyPants"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728411254 {#274
        date: 2024-10-08 20:14:14.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687022122 {#268
        date: 2023-06-17 19:15:22.0 +02:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1731
      +icon: Proxies\__CG__\App\Entity\Image {#2319 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#2299
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2303 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2305 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2318 …}
      +entries: Doctrine\ORM\PersistentCollection {#2313 …}
      +posts: Doctrine\ORM\PersistentCollection {#2294 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2296 …}
      +bans: Doctrine\ORM\PersistentCollection {#2278 …}
      +reports: Doctrine\ORM\PersistentCollection {#2222 …}
      +badges: Doctrine\ORM\PersistentCollection {#2201 …}
      +logs: Doctrine\ORM\PersistentCollection {#2270 …}
      +awards: Doctrine\ORM\PersistentCollection {#2199 …}
      +categories: Doctrine\ORM\PersistentCollection {#2271 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#2311
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2298
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1619 …}
    +slug: "BTRFS-and-moving-home-to-subvolume-in-need-of-a"
    +title: "BTRFS and moving /home to subvolume, in need of a sanity check."
    +url: null
    +body: """
      So I installed Debian 12 with btrfs and apparently it only uses a single subvolume `rootfs`. I would like to have my `/home` in a separate subvolume (and possibly `/var` too I guess) and with a flat subvolume structure. I started figuring out on how to do it and I feel like I’m not entirely sure yet so I need a sanity check.\n
      \n
      Lots of comments online seem to use something like this method:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">cd /\n
      </span><span style="color:#323232;">mv /home /home_old\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home_old/* /home/\n
      </span>\n
      ```\n
      \n
      But this would NOT create a flat subvolume structure, right? And you woul NOT need to modify `fstab` as the `/home` would be automatically mounted because it resides under `rootfs` actually because `/` is `rootfs` and not its parent?\n
      \n
      If I want to actually have a flat structure, then I would first need to mount the actual parent subvolume (subvolumeid=5), cd into it, then create the `home` subvolume, copy everything from the current `home` directory into there, unmount, modify `fstab` to mount `home`, and delete the old stuff and reboot I guess.\n
      \n
      Soo something like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mkdir /mnt/tmp\n
      </span><span style="color:#323232;">    Make a folder for mount\n
      </span><span style="color:#323232;">mount -o subvolid=5 /dev/sdXX /mnt/tmp/\n
      </span><span style="color:#323232;">    Mount the actual parent subvolume\n
      </span><span style="color:#323232;">cd /mnt/tmp/\n
      </span><span style="color:#323232;">    Here 'ls -a' would output 'rootfs' if I understood correctly\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">    Create new subvolume, now being sibling of 'rootfs'\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home/* /mnt/tmp/home/\n
      </span><span style="color:#323232;">    Copy old /home\n
      </span><span style="color:#323232;">umount /mnt/tmp/\n
      </span><span style="color:#323232;">    Don't need it anymore \n
      </span>\n
      ```\n
      \n
      Then go to `fstab`, and do something like\n
      \n
      ```\n
      \n
      <span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">-> change into\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">UUID=  /home btrfs  subvol=home bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span>\n
      ```\n
      \n
      Then just `rm -rf /home/*` (or just move to keep it as backup if something is fucked up) and reboot?\n
      \n
      Does this sound about right?\n
      \n
      Edit:\n
      \n
      Everything went smoothly. Well just don’t fuck up fstab like I did. Decided not to make `/var` into a subvolume because not sure if you can do it the same way, thinking that logs etc are being written all the time so the gap between me copying everything to the subvolume, and eventually booting might make weird things but dunno. Also added `compress=zstd` into `fstab` mount options to reduce writes on the ssd.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 0
    +favouriteCount: 1
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1698665174 {#1574
      date: 2023-10-30 12:26:14.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1702 …}
    +votes: Doctrine\ORM\PersistentCollection {#1683 …}
    +reports: Doctrine\ORM\PersistentCollection {#1689 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1724 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1727 …}
    +badges: Doctrine\ORM\PersistentCollection {#2464 …}
    +children: []
    -id: 9460
    -titleTs: "'/home':4 'btrfs':1 'check':12 'move':3 'need':8 'saniti':11 'subvolum':6"
    -bodyTs: "'/dev/sdxx':197 '/home':23,78,89,110,232,236,273,286 '/home_old':79,88 '/mnt/tmp':187,198,205,238 '/mnt/tmp/home':233 '/var':30,325 '12':5 '5':149,196 'actual':120,132,145,201 'ad':370 'also':369 'alway':87,231 'anymor':243 'appar':9 'automat':113 'backup':294 'boot':362 'btrfs':7,80,216,253,264,274 'bunch':256,267,277 'cd':76,150,204 'chang':261 'check':64 'comment':67 'compress':371 'copi':158,234,355 'correct':215 'cp':84,228 'creat':82,94,154,218,220 'current':162 'debian':4 'decid':321 'delet':174 'directori':164 'dunno':368 'edit':307 'entir':56 'etc':343 'eventu':361 'everyth':159,308,356 'feel':51 'figur':42 'first':140 'flat':37,96,135 'folder':190 'fstab':107,169,247,317,374 'fuck':298,315 'gap':352 'go':245 'guess':33,181 'home':83,156,163,172,219,276 'instal':3 'keep':291 'like':19,52,73,184,251,318 'log':342 'lot':65 'ls':207 'm':54 'make':188,324,364 'method':75 'might':363 'mkdir':186 'modifi':106,168 'mount':114,143,171,192,193,199,375 'move':289 'mv':77 'need':61,104,141,241 'new':221 'o':194 'old':176,235 'onlin':68 'option':258,269,279,376 'output':210 'parent':127,146,202 'possibl':29 'reboot':179,301 'reduc':378 'reflink':86,230 'resid':117 'rf':285 'right':99,306 'rm':284 'rootf':16,119,123,211,227,255,266 'saniti':63 'seem':69 'separ':26 'sibl':225 'singl':14 'smooth':310 'someth':72,183,250,296 'soo':182 'sound':304 'ssd':382 'start':41 'structur':39,98,136 'stuff':177,260,271,281 'subvol':254,265,275 'subvolid':195 'subvolum':15,27,38,81,97,147,157,203,217,222,328,359 'subvolumeid':148 'sure':57,331 'thing':366 'think':340 'time':349 'umount':237 'understood':214 'unmount':167 'use':12,71 'uuid':252,263,272 'want':130 'way':339 'weird':365 'well':311 'went':309 'woul':102 'would':18,92,111,139,209 'write':379 'written':346 'yet':58 'zstd':372"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1698665174
    +visibility: "visible             "
    +apId: "https://sopuli.xyz/post/5276014"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698665174 {#1409
      date: 2023-10-30 12:26:14.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#2770
  +subject: App\Entity\Entry {#1585
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "AnonStoleMyPants@sopuli.xyz"
      +username: "@AnonStoleMyPants@sopuli.xyz"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1728559488 {#273
        date: 2024-10-10 13:24:48.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 2300
      -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "AnonStoleMyPants@sopuli.xyz"
      +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apFollowersUrl: null
      +apInboxUrl: "https://sopuli.xyz/inbox"
      +apDomain: "sopuli.xyz"
      +apPreferredUsername: "AnonStoleMyPants"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728411254 {#274
        date: 2024-10-08 20:14:14.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687022122 {#268
        date: 2023-06-17 19:15:22.0 +02:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1731
      +icon: Proxies\__CG__\App\Entity\Image {#2319 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#2299
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2303 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2305 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2318 …}
      +entries: Doctrine\ORM\PersistentCollection {#2313 …}
      +posts: Doctrine\ORM\PersistentCollection {#2294 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2296 …}
      +bans: Doctrine\ORM\PersistentCollection {#2278 …}
      +reports: Doctrine\ORM\PersistentCollection {#2222 …}
      +badges: Doctrine\ORM\PersistentCollection {#2201 …}
      +logs: Doctrine\ORM\PersistentCollection {#2270 …}
      +awards: Doctrine\ORM\PersistentCollection {#2199 …}
      +categories: Doctrine\ORM\PersistentCollection {#2271 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#2311
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2298
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1619 …}
    +slug: "BTRFS-and-moving-home-to-subvolume-in-need-of-a"
    +title: "BTRFS and moving /home to subvolume, in need of a sanity check."
    +url: null
    +body: """
      So I installed Debian 12 with btrfs and apparently it only uses a single subvolume `rootfs`. I would like to have my `/home` in a separate subvolume (and possibly `/var` too I guess) and with a flat subvolume structure. I started figuring out on how to do it and I feel like I’m not entirely sure yet so I need a sanity check.\n
      \n
      Lots of comments online seem to use something like this method:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">cd /\n
      </span><span style="color:#323232;">mv /home /home_old\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home_old/* /home/\n
      </span>\n
      ```\n
      \n
      But this would NOT create a flat subvolume structure, right? And you woul NOT need to modify `fstab` as the `/home` would be automatically mounted because it resides under `rootfs` actually because `/` is `rootfs` and not its parent?\n
      \n
      If I want to actually have a flat structure, then I would first need to mount the actual parent subvolume (subvolumeid=5), cd into it, then create the `home` subvolume, copy everything from the current `home` directory into there, unmount, modify `fstab` to mount `home`, and delete the old stuff and reboot I guess.\n
      \n
      Soo something like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mkdir /mnt/tmp\n
      </span><span style="color:#323232;">    Make a folder for mount\n
      </span><span style="color:#323232;">mount -o subvolid=5 /dev/sdXX /mnt/tmp/\n
      </span><span style="color:#323232;">    Mount the actual parent subvolume\n
      </span><span style="color:#323232;">cd /mnt/tmp/\n
      </span><span style="color:#323232;">    Here 'ls -a' would output 'rootfs' if I understood correctly\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">    Create new subvolume, now being sibling of 'rootfs'\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home/* /mnt/tmp/home/\n
      </span><span style="color:#323232;">    Copy old /home\n
      </span><span style="color:#323232;">umount /mnt/tmp/\n
      </span><span style="color:#323232;">    Don't need it anymore \n
      </span>\n
      ```\n
      \n
      Then go to `fstab`, and do something like\n
      \n
      ```\n
      \n
      <span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">-> change into\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">UUID=  /home btrfs  subvol=home bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span>\n
      ```\n
      \n
      Then just `rm -rf /home/*` (or just move to keep it as backup if something is fucked up) and reboot?\n
      \n
      Does this sound about right?\n
      \n
      Edit:\n
      \n
      Everything went smoothly. Well just don’t fuck up fstab like I did. Decided not to make `/var` into a subvolume because not sure if you can do it the same way, thinking that logs etc are being written all the time so the gap between me copying everything to the subvolume, and eventually booting might make weird things but dunno. Also added `compress=zstd` into `fstab` mount options to reduce writes on the ssd.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 0
    +favouriteCount: 1
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1698665174 {#1574
      date: 2023-10-30 12:26:14.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1702 …}
    +votes: Doctrine\ORM\PersistentCollection {#1683 …}
    +reports: Doctrine\ORM\PersistentCollection {#1689 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1724 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1727 …}
    +badges: Doctrine\ORM\PersistentCollection {#2464 …}
    +children: []
    -id: 9460
    -titleTs: "'/home':4 'btrfs':1 'check':12 'move':3 'need':8 'saniti':11 'subvolum':6"
    -bodyTs: "'/dev/sdxx':197 '/home':23,78,89,110,232,236,273,286 '/home_old':79,88 '/mnt/tmp':187,198,205,238 '/mnt/tmp/home':233 '/var':30,325 '12':5 '5':149,196 'actual':120,132,145,201 'ad':370 'also':369 'alway':87,231 'anymor':243 'appar':9 'automat':113 'backup':294 'boot':362 'btrfs':7,80,216,253,264,274 'bunch':256,267,277 'cd':76,150,204 'chang':261 'check':64 'comment':67 'compress':371 'copi':158,234,355 'correct':215 'cp':84,228 'creat':82,94,154,218,220 'current':162 'debian':4 'decid':321 'delet':174 'directori':164 'dunno':368 'edit':307 'entir':56 'etc':343 'eventu':361 'everyth':159,308,356 'feel':51 'figur':42 'first':140 'flat':37,96,135 'folder':190 'fstab':107,169,247,317,374 'fuck':298,315 'gap':352 'go':245 'guess':33,181 'home':83,156,163,172,219,276 'instal':3 'keep':291 'like':19,52,73,184,251,318 'log':342 'lot':65 'ls':207 'm':54 'make':188,324,364 'method':75 'might':363 'mkdir':186 'modifi':106,168 'mount':114,143,171,192,193,199,375 'move':289 'mv':77 'need':61,104,141,241 'new':221 'o':194 'old':176,235 'onlin':68 'option':258,269,279,376 'output':210 'parent':127,146,202 'possibl':29 'reboot':179,301 'reduc':378 'reflink':86,230 'resid':117 'rf':285 'right':99,306 'rm':284 'rootf':16,119,123,211,227,255,266 'saniti':63 'seem':69 'separ':26 'sibl':225 'singl':14 'smooth':310 'someth':72,183,250,296 'soo':182 'sound':304 'ssd':382 'start':41 'structur':39,98,136 'stuff':177,260,271,281 'subvol':254,265,275 'subvolid':195 'subvolum':15,27,38,81,97,147,157,203,217,222,328,359 'subvolumeid':148 'sure':57,331 'thing':366 'think':340 'time':349 'umount':237 'understood':214 'unmount':167 'use':12,71 'uuid':252,263,272 'want':130 'way':339 'weird':365 'well':311 'went':309 'woul':102 'would':18,92,111,139,209 'write':379 'written':346 'yet':58 'zstd':372"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1698665174
    +visibility: "visible             "
    +apId: "https://sopuli.xyz/post/5276014"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698665174 {#1409
      date: 2023-10-30 12:26:14.0 +01:00
    }
  }
  +formDest: "entry"
  +showDownvote: true
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 14.0 MiB 1.02 ms
Input props
[
  "subject" => App\Entity\Entry {#1585
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "AnonStoleMyPants@sopuli.xyz"
      +username: "@AnonStoleMyPants@sopuli.xyz"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1728559488 {#273
        date: 2024-10-10 13:24:48.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 2300
      -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "AnonStoleMyPants@sopuli.xyz"
      +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apFollowersUrl: null
      +apInboxUrl: "https://sopuli.xyz/inbox"
      +apDomain: "sopuli.xyz"
      +apPreferredUsername: "AnonStoleMyPants"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728411254 {#274
        date: 2024-10-08 20:14:14.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687022122 {#268
        date: 2023-06-17 19:15:22.0 +02:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1731
      +icon: Proxies\__CG__\App\Entity\Image {#2319 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#2299
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2303 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2305 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2318 …}
      +entries: Doctrine\ORM\PersistentCollection {#2313 …}
      +posts: Doctrine\ORM\PersistentCollection {#2294 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2296 …}
      +bans: Doctrine\ORM\PersistentCollection {#2278 …}
      +reports: Doctrine\ORM\PersistentCollection {#2222 …}
      +badges: Doctrine\ORM\PersistentCollection {#2201 …}
      +logs: Doctrine\ORM\PersistentCollection {#2270 …}
      +awards: Doctrine\ORM\PersistentCollection {#2199 …}
      +categories: Doctrine\ORM\PersistentCollection {#2271 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#2311
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2298
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1619 …}
    +slug: "BTRFS-and-moving-home-to-subvolume-in-need-of-a"
    +title: "BTRFS and moving /home to subvolume, in need of a sanity check."
    +url: null
    +body: """
      So I installed Debian 12 with btrfs and apparently it only uses a single subvolume `rootfs`. I would like to have my `/home` in a separate subvolume (and possibly `/var` too I guess) and with a flat subvolume structure. I started figuring out on how to do it and I feel like I’m not entirely sure yet so I need a sanity check.\n
      \n
      Lots of comments online seem to use something like this method:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">cd /\n
      </span><span style="color:#323232;">mv /home /home_old\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home_old/* /home/\n
      </span>\n
      ```\n
      \n
      But this would NOT create a flat subvolume structure, right? And you woul NOT need to modify `fstab` as the `/home` would be automatically mounted because it resides under `rootfs` actually because `/` is `rootfs` and not its parent?\n
      \n
      If I want to actually have a flat structure, then I would first need to mount the actual parent subvolume (subvolumeid=5), cd into it, then create the `home` subvolume, copy everything from the current `home` directory into there, unmount, modify `fstab` to mount `home`, and delete the old stuff and reboot I guess.\n
      \n
      Soo something like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mkdir /mnt/tmp\n
      </span><span style="color:#323232;">    Make a folder for mount\n
      </span><span style="color:#323232;">mount -o subvolid=5 /dev/sdXX /mnt/tmp/\n
      </span><span style="color:#323232;">    Mount the actual parent subvolume\n
      </span><span style="color:#323232;">cd /mnt/tmp/\n
      </span><span style="color:#323232;">    Here 'ls -a' would output 'rootfs' if I understood correctly\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">    Create new subvolume, now being sibling of 'rootfs'\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home/* /mnt/tmp/home/\n
      </span><span style="color:#323232;">    Copy old /home\n
      </span><span style="color:#323232;">umount /mnt/tmp/\n
      </span><span style="color:#323232;">    Don't need it anymore \n
      </span>\n
      ```\n
      \n
      Then go to `fstab`, and do something like\n
      \n
      ```\n
      \n
      <span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">-> change into\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">UUID=  /home btrfs  subvol=home bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span>\n
      ```\n
      \n
      Then just `rm -rf /home/*` (or just move to keep it as backup if something is fucked up) and reboot?\n
      \n
      Does this sound about right?\n
      \n
      Edit:\n
      \n
      Everything went smoothly. Well just don’t fuck up fstab like I did. Decided not to make `/var` into a subvolume because not sure if you can do it the same way, thinking that logs etc are being written all the time so the gap between me copying everything to the subvolume, and eventually booting might make weird things but dunno. Also added `compress=zstd` into `fstab` mount options to reduce writes on the ssd.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 0
    +favouriteCount: 1
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1698665174 {#1574
      date: 2023-10-30 12:26:14.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1702 …}
    +votes: Doctrine\ORM\PersistentCollection {#1683 …}
    +reports: Doctrine\ORM\PersistentCollection {#1689 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1724 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1727 …}
    +badges: Doctrine\ORM\PersistentCollection {#2464 …}
    +children: []
    -id: 9460
    -titleTs: "'/home':4 'btrfs':1 'check':12 'move':3 'need':8 'saniti':11 'subvolum':6"
    -bodyTs: "'/dev/sdxx':197 '/home':23,78,89,110,232,236,273,286 '/home_old':79,88 '/mnt/tmp':187,198,205,238 '/mnt/tmp/home':233 '/var':30,325 '12':5 '5':149,196 'actual':120,132,145,201 'ad':370 'also':369 'alway':87,231 'anymor':243 'appar':9 'automat':113 'backup':294 'boot':362 'btrfs':7,80,216,253,264,274 'bunch':256,267,277 'cd':76,150,204 'chang':261 'check':64 'comment':67 'compress':371 'copi':158,234,355 'correct':215 'cp':84,228 'creat':82,94,154,218,220 'current':162 'debian':4 'decid':321 'delet':174 'directori':164 'dunno':368 'edit':307 'entir':56 'etc':343 'eventu':361 'everyth':159,308,356 'feel':51 'figur':42 'first':140 'flat':37,96,135 'folder':190 'fstab':107,169,247,317,374 'fuck':298,315 'gap':352 'go':245 'guess':33,181 'home':83,156,163,172,219,276 'instal':3 'keep':291 'like':19,52,73,184,251,318 'log':342 'lot':65 'ls':207 'm':54 'make':188,324,364 'method':75 'might':363 'mkdir':186 'modifi':106,168 'mount':114,143,171,192,193,199,375 'move':289 'mv':77 'need':61,104,141,241 'new':221 'o':194 'old':176,235 'onlin':68 'option':258,269,279,376 'output':210 'parent':127,146,202 'possibl':29 'reboot':179,301 'reduc':378 'reflink':86,230 'resid':117 'rf':285 'right':99,306 'rm':284 'rootf':16,119,123,211,227,255,266 'saniti':63 'seem':69 'separ':26 'sibl':225 'singl':14 'smooth':310 'someth':72,183,250,296 'soo':182 'sound':304 'ssd':382 'start':41 'structur':39,98,136 'stuff':177,260,271,281 'subvol':254,265,275 'subvolid':195 'subvolum':15,27,38,81,97,147,157,203,217,222,328,359 'subvolumeid':148 'sure':57,331 'thing':366 'think':340 'time':349 'umount':237 'understood':214 'unmount':167 'use':12,71 'uuid':252,263,272 'want':130 'way':339 'weird':365 'well':311 'went':309 'woul':102 'would':18,92,111,139,209 'write':379 'written':346 'yet':58 'zstd':372"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1698665174
    +visibility: "visible             "
    +apId: "https://sopuli.xyz/post/5276014"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698665174 {#1409
      date: 2023-10-30 12:26:14.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#2837
  +formDest: "entry"
  +subject: App\Entity\Entry {#1585
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "AnonStoleMyPants@sopuli.xyz"
      +username: "@AnonStoleMyPants@sopuli.xyz"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1728559488 {#273
        date: 2024-10-10 13:24:48.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: true
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: false
      +notifyOnNewEntryCommentReply: false
      +notifyOnNewPost: false
      +notifyOnNewPostReply: false
      +notifyOnNewPostCommentReply: false
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 2300
      -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "AnonStoleMyPants@sopuli.xyz"
      +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
      +apFollowersUrl: null
      +apInboxUrl: "https://sopuli.xyz/inbox"
      +apDomain: "sopuli.xyz"
      +apPreferredUsername: "AnonStoleMyPants"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728411254 {#274
        date: 2024-10-08 20:14:14.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687022122 {#268
        date: 2023-06-17 19:15:22.0 +02:00
      }
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1731
      +icon: Proxies\__CG__\App\Entity\Image {#2319 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#2299
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2303 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2305 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2318 …}
      +entries: Doctrine\ORM\PersistentCollection {#2313 …}
      +posts: Doctrine\ORM\PersistentCollection {#2294 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2296 …}
      +bans: Doctrine\ORM\PersistentCollection {#2278 …}
      +reports: Doctrine\ORM\PersistentCollection {#2222 …}
      +badges: Doctrine\ORM\PersistentCollection {#2201 …}
      +logs: Doctrine\ORM\PersistentCollection {#2270 …}
      +awards: Doctrine\ORM\PersistentCollection {#2199 …}
      +categories: Doctrine\ORM\PersistentCollection {#2271 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#2311
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#2298
        date: 2023-11-02 13:51:08.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1619 …}
    +slug: "BTRFS-and-moving-home-to-subvolume-in-need-of-a"
    +title: "BTRFS and moving /home to subvolume, in need of a sanity check."
    +url: null
    +body: """
      So I installed Debian 12 with btrfs and apparently it only uses a single subvolume `rootfs`. I would like to have my `/home` in a separate subvolume (and possibly `/var` too I guess) and with a flat subvolume structure. I started figuring out on how to do it and I feel like I’m not entirely sure yet so I need a sanity check.\n
      \n
      Lots of comments online seem to use something like this method:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">cd /\n
      </span><span style="color:#323232;">mv /home /home_old\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home_old/* /home/\n
      </span>\n
      ```\n
      \n
      But this would NOT create a flat subvolume structure, right? And you woul NOT need to modify `fstab` as the `/home` would be automatically mounted because it resides under `rootfs` actually because `/` is `rootfs` and not its parent?\n
      \n
      If I want to actually have a flat structure, then I would first need to mount the actual parent subvolume (subvolumeid=5), cd into it, then create the `home` subvolume, copy everything from the current `home` directory into there, unmount, modify `fstab` to mount `home`, and delete the old stuff and reboot I guess.\n
      \n
      Soo something like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mkdir /mnt/tmp\n
      </span><span style="color:#323232;">    Make a folder for mount\n
      </span><span style="color:#323232;">mount -o subvolid=5 /dev/sdXX /mnt/tmp/\n
      </span><span style="color:#323232;">    Mount the actual parent subvolume\n
      </span><span style="color:#323232;">cd /mnt/tmp/\n
      </span><span style="color:#323232;">    Here 'ls -a' would output 'rootfs' if I understood correctly\n
      </span><span style="color:#323232;">btrfs subvolume create home\n
      </span><span style="color:#323232;">    Create new subvolume, now being sibling of 'rootfs'\n
      </span><span style="color:#323232;">cp -a --reflink=always  /home/* /mnt/tmp/home/\n
      </span><span style="color:#323232;">    Copy old /home\n
      </span><span style="color:#323232;">umount /mnt/tmp/\n
      </span><span style="color:#323232;">    Don't need it anymore \n
      </span>\n
      ```\n
      \n
      Then go to `fstab`, and do something like\n
      \n
      ```\n
      \n
      <span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">-> change into\n
      </span><span style="color:#323232;">...\n
      </span><span style="color:#323232;">UUID=  / btrfs  subvol=rootfs bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">UUID=  /home btrfs  subvol=home bunch_of_options_and_stuff\n
      </span><span style="color:#323232;">...\n
      </span>\n
      ```\n
      \n
      Then just `rm -rf /home/*` (or just move to keep it as backup if something is fucked up) and reboot?\n
      \n
      Does this sound about right?\n
      \n
      Edit:\n
      \n
      Everything went smoothly. Well just don’t fuck up fstab like I did. Decided not to make `/var` into a subvolume because not sure if you can do it the same way, thinking that logs etc are being written all the time so the gap between me copying everything to the subvolume, and eventually booting might make weird things but dunno. Also added `compress=zstd` into `fstab` mount options to reduce writes on the ssd.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 0
    +favouriteCount: 1
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1698665174 {#1574
      date: 2023-10-30 12:26:14.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1702 …}
    +votes: Doctrine\ORM\PersistentCollection {#1683 …}
    +reports: Doctrine\ORM\PersistentCollection {#1689 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1724 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1727 …}
    +badges: Doctrine\ORM\PersistentCollection {#2464 …}
    +children: []
    -id: 9460
    -titleTs: "'/home':4 'btrfs':1 'check':12 'move':3 'need':8 'saniti':11 'subvolum':6"
    -bodyTs: "'/dev/sdxx':197 '/home':23,78,89,110,232,236,273,286 '/home_old':79,88 '/mnt/tmp':187,198,205,238 '/mnt/tmp/home':233 '/var':30,325 '12':5 '5':149,196 'actual':120,132,145,201 'ad':370 'also':369 'alway':87,231 'anymor':243 'appar':9 'automat':113 'backup':294 'boot':362 'btrfs':7,80,216,253,264,274 'bunch':256,267,277 'cd':76,150,204 'chang':261 'check':64 'comment':67 'compress':371 'copi':158,234,355 'correct':215 'cp':84,228 'creat':82,94,154,218,220 'current':162 'debian':4 'decid':321 'delet':174 'directori':164 'dunno':368 'edit':307 'entir':56 'etc':343 'eventu':361 'everyth':159,308,356 'feel':51 'figur':42 'first':140 'flat':37,96,135 'folder':190 'fstab':107,169,247,317,374 'fuck':298,315 'gap':352 'go':245 'guess':33,181 'home':83,156,163,172,219,276 'instal':3 'keep':291 'like':19,52,73,184,251,318 'log':342 'lot':65 'ls':207 'm':54 'make':188,324,364 'method':75 'might':363 'mkdir':186 'modifi':106,168 'mount':114,143,171,192,193,199,375 'move':289 'mv':77 'need':61,104,141,241 'new':221 'o':194 'old':176,235 'onlin':68 'option':258,269,279,376 'output':210 'parent':127,146,202 'possibl':29 'reboot':179,301 'reduc':378 'reflink':86,230 'resid':117 'rf':285 'right':99,306 'rm':284 'rootf':16,119,123,211,227,255,266 'saniti':63 'seem':69 'separ':26 'sibl':225 'singl':14 'smooth':310 'someth':72,183,250,296 'soo':182 'sound':304 'ssd':382 'start':41 'structur':39,98,136 'stuff':177,260,271,281 'subvol':254,265,275 'subvolid':195 'subvolum':15,27,38,81,97,147,157,203,217,222,328,359 'subvolumeid':148 'sure':57,331 'thing':366 'think':340 'time':349 'umount':237 'understood':214 'unmount':167 'use':12,71 'uuid':252,263,272 'want':130 'way':339 'weird':365 'well':311 'went':309 'woul':102 'would':18,92,111,139,209 'write':379 'written':346 'yet':58 'zstd':372"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1698665174
    +visibility: "visible             "
    +apId: "https://sopuli.xyz/post/5276014"
    +editedAt: null
    +createdAt: DateTimeImmutable @1698665174 {#1409
      date: 2023-10-30 12:26:14.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
settings_row_enum App\Twig\Components\SettingsRowEnumComponent 14.0 MiB 0.20 ms
Input props
[
  "label" => "Sidebar position"
  "settingsKey" => "KBIN_GENERAL_SIDEBAR_POSITION"
  "values" => [
    [
      "name" => "Left"
      "value" => "LEFT"
    ]
    [
      "name" => "Right"
      "value" => "RIGHT"
    ]
  ]
  "defaultValue" => "RIGHT"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowEnumComponent {#3205
  +label: "Sidebar position"
  +help: ""
  +settingsKey: "KBIN_GENERAL_SIDEBAR_POSITION"
  +values: [
    [
      "name" => "Left"
      "value" => "LEFT"
    ]
    [
      "name" => "Right"
      "value" => "RIGHT"
    ]
  ]
  +defaultValue: "RIGHT"
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.17 ms
Input props
[
  "label" => "Dynamic lists"
  "settingsKey" => "KBIN_GENERAL_DYNAMIC_LISTS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3263
  +label: "Dynamic lists"
  +help: ""
  +settingsKey: "KBIN_GENERAL_DYNAMIC_LISTS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 1.59 ms
Input props
[
  "label" => "Rounded edges"
  "settingsKey" => "KBIN_GENERAL_ROUNDED_EDGES"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3325
  +label: "Rounded edges"
  +help: ""
  +settingsKey: "KBIN_GENERAL_ROUNDED_EDGES"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.12 ms
Input props
[
  "label" => "Infinite scrolling"
  "help" => "Automatically load more content when you reach the bottom of the page."
  "settingsKey" => "KBIN_GENERAL_INFINITE_SCROLL"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3381
  +label: "Infinite scrolling"
  +help: "Automatically load more content when you reach the bottom of the page."
  +settingsKey: "KBIN_GENERAL_INFINITE_SCROLL"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.12 ms
Input props
[
  "label" => "Sticky navbar"
  "help" => "The navbar will stick to the top of the page when you scroll down."
  "settingsKey" => "KBIN_GENERAL_FIXED_NAVBAR"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3440
  +label: "Sticky navbar"
  +help: "The navbar will stick to the top of the page when you scroll down."
  +settingsKey: "KBIN_GENERAL_FIXED_NAVBAR"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.12 ms
Input props
[
  "label" => "Show top bar"
  "settingsKey" => "KBIN_GENERAL_TOPBAR"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3496
  +label: "Show top bar"
  +help: ""
  +settingsKey: "KBIN_GENERAL_TOPBAR"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.11 ms
Input props
[
  "label" => "Turbo mode (experimental)"
  "settingsKey" => "KBIN_GENERAL_TURBO"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3552
  +label: "Turbo mode (experimental)"
  +help: ""
  +settingsKey: "KBIN_GENERAL_TURBO"
  +defaultValue: false
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 14.0 MiB 0.21 ms
Input props
[
  "label" => "Mark new comments"
  "settingsKey" => "KBIN_MARK_NEW_COMMENTS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#3610
  +label: "Mark new comments"
  +help: ""
  +settingsKey: "KBIN_MARK_NEW_COMMENTS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.12 ms
Input props
[
  "label" => "Show "Support Us" block"
  "settingsKey" => "KBIN_GENERAL_SUPPORT_US_BLOCK"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3673
  +label: "Show "Support Us" block"
  +help: ""
  +settingsKey: "KBIN_GENERAL_SUPPORT_US_BLOCK"
  +defaultValue: true
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 14.0 MiB 0.13 ms
Input props
[
  "label" => "Show subscribed users"
  "settingsKey" => "KBIN_SUB_CHANNEL_USERS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#3731
  +label: "Show subscribed users"
  +help: ""
  +settingsKey: "KBIN_SUB_CHANNEL_USERS"
  +defaultValue: false
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 14.0 MiB 0.14 ms
Input props
[
  "label" => "Show subscribed magazines"
  "settingsKey" => "KBIN_SUB_CHANNEL_MAGAZINES"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#3787
  +label: "Show subscribed magazines"
  +help: ""
  +settingsKey: "KBIN_SUB_CHANNEL_MAGAZINES"
  +defaultValue: false
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 14.0 MiB 0.16 ms
Input props
[
  "label" => "Show subscribed domains"
  "settingsKey" => "KBIN_SUB_CHANNEL_DOMAINS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#3843
  +label: "Show subscribed domains"
  +help: ""
  +settingsKey: "KBIN_SUB_CHANNEL_DOMAINS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.12 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_ENTRIES_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3899
  +label: "Auto media preview"
  +help: "Automatically expand media previews."
  +settingsKey: "KBIN_ENTRIES_SHOW_PREVIEW"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.11 ms
Input props
[
  "label" => "Compact view"
  "settingsKey" => "KBIN_ENTRIES_COMPACT"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#3955
  +label: "Compact view"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_COMPACT"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.11 ms
Input props
[
  "label" => "Show users’ avatars"
  "settingsKey" => "KBIN_ENTRIES_SHOW_USERS_AVATARS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4011
  +label: "Show users’ avatars"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_USERS_AVATARS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.12 ms
Input props
[
  "label" => "Show magazines’ icons"
  "settingsKey" => "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4067
  +label: "Show magazines’ icons"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.11 ms
Input props
[
  "label" => "Show thumbnails"
  "settingsKey" => "KBIN_ENTRIES_SHOW_THUMBNAILS"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4123
  +label: "Show thumbnails"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_THUMBNAILS"
  +defaultValue: true
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.13 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_POSTS_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4179
  +label: "Auto media preview"
  +help: "Automatically expand media previews."
  +settingsKey: "KBIN_POSTS_SHOW_PREVIEW"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.12 ms
Input props
[
  "label" => "Show users’ avatars"
  "settingsKey" => "KBIN_POSTS_SHOW_USERS_AVATARS"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4235
  +label: "Show users’ avatars"
  +help: ""
  +settingsKey: "KBIN_POSTS_SHOW_USERS_AVATARS"
  +defaultValue: true
  +reloadRequired: true
}
settings_row_enum App\Twig\Components\SettingsRowEnumComponent 14.0 MiB 0.14 ms
Input props
[
  "label" => "Comment reply position"
  "help" => "Display the comment reply form either at the top or bottom of the page. When 'infinite scroll' is enabled the position will always appear at the top."
  "settingsKey" => "KBIN_COMMENTS_REPLY_POSITION"
  "values" => [
    [
      "name" => "top"
      "value" => "TOP"
    ]
    [
      "name" => "bottom"
      "value" => "BOTTOM"
    ]
  ]
  "defaultValue" => "TOP"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowEnumComponent {#4291
  +label: "Comment reply position"
  +help: "Display the comment reply form either at the top or bottom of the page. When 'infinite scroll' is enabled the position will always appear at the top."
  +settingsKey: "KBIN_COMMENTS_REPLY_POSITION"
  +values: [
    [
      "name" => "top"
      "value" => "TOP"
    ]
    [
      "name" => "bottom"
      "value" => "BOTTOM"
    ]
  ]
  +defaultValue: "TOP"
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 14.0 MiB 0.12 ms
Input props
[
  "label" => "Show Comment Avatars"
  "help" => "Display/hide user avatars when viewing comments on a single thread or post."
  "settingsKey" => "KBIN_COMMENTS_SHOW_USER_AVATAR"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4349
  +label: "Show Comment Avatars"
  +help: "Display/hide user avatars when viewing comments on a single thread or post."
  +settingsKey: "KBIN_COMMENTS_SHOW_USER_AVATAR"
  +defaultValue: true
  +reloadRequired: true
}
user_actions App\Twig\Components\UserActionsComponent 14.0 MiB 0.41 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "AnonStoleMyPants@sopuli.xyz"
    +username: "@AnonStoleMyPants@sopuli.xyz"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1728559488 {#273
      date: 2024-10-10 13:24:48.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 2300
    -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "AnonStoleMyPants@sopuli.xyz"
    +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
    +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
    +apFollowersUrl: null
    +apInboxUrl: "https://sopuli.xyz/inbox"
    +apDomain: "sopuli.xyz"
    +apPreferredUsername: "AnonStoleMyPants"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728411254 {#274
      date: 2024-10-08 20:14:14.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687022122 {#268
      date: 2023-06-17 19:15:22.0 +02:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\UserActionsComponent {#4425
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "AnonStoleMyPants@sopuli.xyz"
    +username: "@AnonStoleMyPants@sopuli.xyz"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1728559488 {#273
      date: 2024-10-10 13:24:48.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 2300
    -password: "$2y$13$eyW3iYOS7vAOM.ek06NfE.WHpiDiFS4NKjlpylvgxbH/h5eHA6STC"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "AnonStoleMyPants@sopuli.xyz"
    +apProfileId: "https://sopuli.xyz/u/AnonStoleMyPants"
    +apPublicUrl: "https://sopuli.xyz/u/AnonStoleMyPants"
    +apFollowersUrl: null
    +apInboxUrl: "https://sopuli.xyz/inbox"
    +apDomain: "sopuli.xyz"
    +apPreferredUsername: "AnonStoleMyPants"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728411254 {#274
      date: 2024-10-08 20:14:14.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687022122 {#268
      date: 2023-06-17 19:15:22.0 +02:00
    }
  }
}
date App\Twig\Components\DateComponent 14.0 MiB 0.12 ms
Input props
[
  "date" => DateTimeImmutable @1687022122 {#268
    date: 2023-06-17 19:15:22.0 +02:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#4486
  +date: DateTimeImmutable @1687022122 {#268
    date: 2023-06-17 19:15:22.0 +02:00
  }
}
related_magazines App\Twig\Components\RelatedMagazinesComponent 14.0 MiB 2.15 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedMagazinesComponent {#4573
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +title: "random_magazines"
  +refreshedRandom: false
  -repository: App\Repository\MagazineRepository {#1370 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
active_users App\Twig\Components\ActiveUsersComponent 14.0 MiB 0.27 ms
Input props
[
  "magazine" => null
]
Attributes
[]
Component
App\Twig\Components\ActiveUsersComponent {#4638
  +magazine: null
  -userRepository: App\Repository\UserRepository {#603 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
related_categories App\Twig\Components\RelatedCategoriesComponent 14.0 MiB 1.18 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedCategoriesComponent {#4697
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +title: "random_categories"
  +refreshedRandom: false
  -repository: App\Repository\CategoryRepository {#4698 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
related_posts App\Twig\Components\RelatedPostsComponent 14.0 MiB 1.25 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedPostsComponent {#4768
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +post: null
  +title: "random_posts"
  +refreshedRandom: false
  -repository: App\Repository\PostRepository {#4767 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#1504 …}
}
related_entries App\Twig\Components\RelatedEntriesComponent 14.0 MiB 1.31 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedEntriesComponent {#4837
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +entry: null
  +title: "random_entries"
  +refreshedRandom: false
  -repository: App\Repository\EntryRepository {#1704 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#1504 …}
}
support_us_block App\Twig\Components\SupportUsBlock 14.0 MiB 0.22 ms
Input props
[]
Attributes
[]
Component
App\Twig\Components\SupportUsBlock {#4906
  +subject: ? App\Entity\Contracts\VotableInterface
  +url: ? string
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -partnerBlockRepository: App\Repository\PartnerBlockRepository {#4907 …}
}
featured_magazines App\Twig\Components\FeaturedMagazinesComponent 14.0 MiB 0.90 ms
Input props
[
  "magazine" => null
]
Attributes
[]
Component
App\Twig\Components\FeaturedMagazinesComponent {#4999
  +magazine: null
  -twig: Twig\Environment {#1252 …}
  -repository: App\Repository\MagazineRepository {#1370 …}
}