Security

Token

There is no security token.

Firewall

main Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.app_user_provider
context main
entry_point App\Security\KbinAuthenticator
user_checker App\Security\UserChecker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "two_factor"
  "remember_me"
  "App\Security\KbinAuthenticator"
  "App\Security\FacebookAuthenticator"
  "App\Security\GoogleAuthenticator"
  "App\Security\GithubAuthenticator"
  "App\Security\KeycloakAuthenticator"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#723
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
  -logger: Monolog\Logger {#783 …}
  -httpPort: 80
  -httpsPort: 443
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\ContextListener {#706
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#1017 …}
  -sessionKey: "_security_main"
  -logger: Monolog\Logger {#783 …}
  -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#705 …}
  -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
  -registered: false
  -trustResolver: Scheb\TwoFactorBundle\Security\Authentication\AuthenticationTrustResolver {#780 …}
  -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#703 …}
}
0.15 ms (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#584
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#595 …}
}
0.00 ms (none)
Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener {#582
  -twoFactorFirewallConfig: Scheb\TwoFactorBundle\Security\TwoFactor\TwoFactorFirewallConfig {#842 …}
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -twoFactorAccessDecider: Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider {#581 …}
}
0.03 ms (none)
Symfony\Component\Security\Http\Firewall\AccessListener {#579
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#937 …}
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\LogoutListener {#786
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -options: [
    "csrf_parameter" => "_csrf_token"
    "csrf_token_id" => "logout"
    "logout_path" => "app_logout"
  ]
  -httpUtils: Symfony\Component\Security\Http\HttpUtils {#841 …}
  -csrfTokenManager: Symfony\Component\Security\Csrf\CsrfTokenManager {#1015 …}
  -eventDispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
}
0.00 ms (none)

Authenticators

No authenticators have been recorded. Check previous profiles on your authentication endpoint.

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
4
"Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter"
5
"App\Security\Voter\EntryCommentVoter"
6
"App\Security\Voter\EntryVoter"
7
"App\Security\Voter\MagazineVoter"
8
"App\Security\Voter\MessageThreadVoter"
9
"App\Security\Voter\MessageVoter"
10
"App\Security\Voter\NotificationVoter"
11
"App\Security\Voter\OAuth2UserConsentVoter"
12
"App\Security\Voter\PostCommentVoter"
13
"App\Security\Voter\PostVoter"
14
"App\Security\Voter\UserVoter"

Access decision log

# Result Attributes Object
1 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
2 DENIED moderate
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +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 {#276
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -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 {#270
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
  +title: "FOUND file in device by hex content using wxHexEditor"
  +url: null
  +body: """
    Just having a play around, this turned out to be not as clear cut as expected.\n
    \n
    so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
    \n
    I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
    \n
    What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
    \n
    Ok, I managed to do it with dd:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">hello\n
    </span>\n
    ```\n
    \n
    but why can I not find it using wxhexeditor??\n
    \n
    EDIT:\n
    \n
    Duh, I didn’t click that offset needed to be multiplied by the block size.\n
    \n
    If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
    \n
    ![](https://files.catbox.moe/6zvhx0.png)\n
    \n
    Final conclusion:\n
    \n
    After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
    \n
    I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
    \n
    Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 11
  +favouriteCount: 37
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1701250420 {#2410
    date: 2023-11-29 10:33:40.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 17506
  -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
  -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1701203579
  +visibility: "visible             "
  +apId: "https://lemmy.nz/post/3824501"
  +editedAt: DateTimeImmutable @1701860652 {#1850
    date: 2023-12-06 12:04:12.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701117179 {#2420
    date: 2023-11-27 21:32:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
3 DENIED edit
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +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 {#276
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -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 {#270
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
  +title: "FOUND file in device by hex content using wxHexEditor"
  +url: null
  +body: """
    Just having a play around, this turned out to be not as clear cut as expected.\n
    \n
    so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
    \n
    I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
    \n
    What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
    \n
    Ok, I managed to do it with dd:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">hello\n
    </span>\n
    ```\n
    \n
    but why can I not find it using wxhexeditor??\n
    \n
    EDIT:\n
    \n
    Duh, I didn’t click that offset needed to be multiplied by the block size.\n
    \n
    If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
    \n
    ![](https://files.catbox.moe/6zvhx0.png)\n
    \n
    Final conclusion:\n
    \n
    After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
    \n
    I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
    \n
    Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 11
  +favouriteCount: 37
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1701250420 {#2410
    date: 2023-11-29 10:33:40.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 17506
  -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
  -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1701203579
  +visibility: "visible             "
  +apId: "https://lemmy.nz/post/3824501"
  +editedAt: DateTimeImmutable @1701860652 {#1850
    date: 2023-12-06 12:04:12.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701117179 {#2420
    date: 2023-11-27 21:32:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
4 DENIED moderate
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +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 {#276
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -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 {#270
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
  +title: "FOUND file in device by hex content using wxHexEditor"
  +url: null
  +body: """
    Just having a play around, this turned out to be not as clear cut as expected.\n
    \n
    so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
    \n
    I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
    \n
    What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
    \n
    Ok, I managed to do it with dd:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">hello\n
    </span>\n
    ```\n
    \n
    but why can I not find it using wxhexeditor??\n
    \n
    EDIT:\n
    \n
    Duh, I didn’t click that offset needed to be multiplied by the block size.\n
    \n
    If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
    \n
    ![](https://files.catbox.moe/6zvhx0.png)\n
    \n
    Final conclusion:\n
    \n
    After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
    \n
    I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
    \n
    Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 11
  +favouriteCount: 37
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1701250420 {#2410
    date: 2023-11-29 10:33:40.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 17506
  -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
  -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1701203579
  +visibility: "visible             "
  +apId: "https://lemmy.nz/post/3824501"
  +editedAt: DateTimeImmutable @1701860652 {#1850
    date: 2023-12-06 12:04:12.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701117179 {#2420
    date: 2023-11-27 21:32:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
5 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
6 DENIED moderate
App\Entity\EntryComment {#4066
  +user: App\Entity\User {#4014 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Not much related, but I want to chime in to express my gratitude for what I consider the most underrated piece of software in the FOSS ecosystem. Better known hex editors pale in comparison to wxHexEditor in terms of features and user interface. I suggest you to tweak the colors for better viewing (I can share my configuration file) and to upgrade to the latest unstable revision because many important fixes landed since the last stable version."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702111183 {#4075
    date: 2023-12-09 09:39:43.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4064 …}
  +nested: Doctrine\ORM\PersistentCollection {#4062 …}
  +votes: Doctrine\ORM\PersistentCollection {#4060 …}
  +reports: Doctrine\ORM\PersistentCollection {#4058 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4026 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4030 …}
  -id: 175660
  -bodyTs: "'better':28,52 'chime':8 'color':50 'comparison':34 'configur':58 'consid':17 'ecosystem':27 'editor':31 'express':11 'featur':40 'file':59 'fix':71 'foss':26 'gratitud':13 'hex':30 'import':70 'interfac':43 'known':29 'land':72 'last':75 'latest':65 'mani':69 'much':2 'pale':32 'piec':21 'relat':3 'revis':67 'share':56 'sinc':73 'softwar':23 'stabl':76 'suggest':45 'term':38 'tweak':48 'underr':20 'unstabl':66 'upgrad':62 'user':42 'version':77 'view':53 'want':6 'wxhexeditor':36"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.it/comment/4084700"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701223008 {#4011
    date: 2023-11-29 02:56:48.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
7 DENIED edit
App\Entity\EntryComment {#4066
  +user: App\Entity\User {#4014 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Not much related, but I want to chime in to express my gratitude for what I consider the most underrated piece of software in the FOSS ecosystem. Better known hex editors pale in comparison to wxHexEditor in terms of features and user interface. I suggest you to tweak the colors for better viewing (I can share my configuration file) and to upgrade to the latest unstable revision because many important fixes landed since the last stable version."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702111183 {#4075
    date: 2023-12-09 09:39:43.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4064 …}
  +nested: Doctrine\ORM\PersistentCollection {#4062 …}
  +votes: Doctrine\ORM\PersistentCollection {#4060 …}
  +reports: Doctrine\ORM\PersistentCollection {#4058 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4026 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4030 …}
  -id: 175660
  -bodyTs: "'better':28,52 'chime':8 'color':50 'comparison':34 'configur':58 'consid':17 'ecosystem':27 'editor':31 'express':11 'featur':40 'file':59 'fix':71 'foss':26 'gratitud':13 'hex':30 'import':70 'interfac':43 'known':29 'land':72 'last':75 'latest':65 'mani':69 'much':2 'pale':32 'piec':21 'relat':3 'revis':67 'share':56 'sinc':73 'softwar':23 'stabl':76 'suggest':45 'term':38 'tweak':48 'underr':20 'unstabl':66 'upgrad':62 'user':42 'version':77 'view':53 'want':6 'wxhexeditor':36"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.it/comment/4084700"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701223008 {#4011
    date: 2023-11-29 02:56:48.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
8 DENIED moderate
App\Entity\EntryComment {#4066
  +user: App\Entity\User {#4014 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Not much related, but I want to chime in to express my gratitude for what I consider the most underrated piece of software in the FOSS ecosystem. Better known hex editors pale in comparison to wxHexEditor in terms of features and user interface. I suggest you to tweak the colors for better viewing (I can share my configuration file) and to upgrade to the latest unstable revision because many important fixes landed since the last stable version."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1702111183 {#4075
    date: 2023-12-09 09:39:43.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4064 …}
  +nested: Doctrine\ORM\PersistentCollection {#4062 …}
  +votes: Doctrine\ORM\PersistentCollection {#4060 …}
  +reports: Doctrine\ORM\PersistentCollection {#4058 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4026 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4030 …}
  -id: 175660
  -bodyTs: "'better':28,52 'chime':8 'color':50 'comparison':34 'configur':58 'consid':17 'ecosystem':27 'editor':31 'express':11 'featur':40 'file':59 'fix':71 'foss':26 'gratitud':13 'hex':30 'import':70 'interfac':43 'known':29 'land':72 'last':75 'latest':65 'mani':69 'much':2 'pale':32 'piec':21 'relat':3 'revis':67 'share':56 'sinc':73 'softwar':23 'stabl':76 'suggest':45 'term':38 'tweak':48 'underr':20 'unstabl':66 'upgrad':62 'user':42 'version':77 'view':53 'want':6 'wxhexeditor':36"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.it/comment/4084700"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701223008 {#4011
    date: 2023-11-29 02:56:48.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
9 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
10 DENIED moderate
App\Entity\EntryComment {#4474
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4066
    +user: App\Entity\User {#4014 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Not much related, but I want to chime in to express my gratitude for what I consider the most underrated piece of software in the FOSS ecosystem. Better known hex editors pale in comparison to wxHexEditor in terms of features and user interface. I suggest you to tweak the colors for better viewing (I can share my configuration file) and to upgrade to the latest unstable revision because many important fixes landed since the last stable version."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1702111183 {#4075
      date: 2023-12-09 09:39:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4064 …}
    +nested: Doctrine\ORM\PersistentCollection {#4062 …}
    +votes: Doctrine\ORM\PersistentCollection {#4060 …}
    +reports: Doctrine\ORM\PersistentCollection {#4058 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4026 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4030 …}
    -id: 175660
    -bodyTs: "'better':28,52 'chime':8 'color':50 'comparison':34 'configur':58 'consid':17 'ecosystem':27 'editor':31 'express':11 'featur':40 'file':59 'fix':71 'foss':26 'gratitud':13 'hex':30 'import':70 'interfac':43 'known':29 'land':72 'last':75 'latest':65 'mani':69 'much':2 'pale':32 'piec':21 'relat':3 'revis':67 'share':56 'sinc':73 'softwar':23 'stabl':76 'suggest':45 'term':38 'tweak':48 'underr':20 'unstabl':66 'upgrad':62 'user':42 'version':77 'view':53 'want':6 'wxhexeditor':36"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.it/comment/4084700"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701223008 {#4011
      date: 2023-11-29 02:56:48.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4066}
  +body: "Yeah definitely share your config! I’ve only just scratched the surface with wxHexEditor"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1701223767 {#4472
    date: 2023-11-29 03:09:27.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@dario@feddit.it"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4475 …}
  +nested: Doctrine\ORM\PersistentCollection {#4477 …}
  +votes: Doctrine\ORM\PersistentCollection {#4479 …}
  +reports: Doctrine\ORM\PersistentCollection {#4481 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4483 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4485 …}
  -id: 175683
  -bodyTs: "'config':5 'definit':2 'scratch':10 'share':3 'surfac':12 've':7 'wxhexeditor':14 'yeah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4082731"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701223767 {#4473
    date: 2023-11-29 03:09:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
11 DENIED edit
App\Entity\EntryComment {#4474
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4066
    +user: App\Entity\User {#4014 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Not much related, but I want to chime in to express my gratitude for what I consider the most underrated piece of software in the FOSS ecosystem. Better known hex editors pale in comparison to wxHexEditor in terms of features and user interface. I suggest you to tweak the colors for better viewing (I can share my configuration file) and to upgrade to the latest unstable revision because many important fixes landed since the last stable version."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1702111183 {#4075
      date: 2023-12-09 09:39:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4064 …}
    +nested: Doctrine\ORM\PersistentCollection {#4062 …}
    +votes: Doctrine\ORM\PersistentCollection {#4060 …}
    +reports: Doctrine\ORM\PersistentCollection {#4058 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4026 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4030 …}
    -id: 175660
    -bodyTs: "'better':28,52 'chime':8 'color':50 'comparison':34 'configur':58 'consid':17 'ecosystem':27 'editor':31 'express':11 'featur':40 'file':59 'fix':71 'foss':26 'gratitud':13 'hex':30 'import':70 'interfac':43 'known':29 'land':72 'last':75 'latest':65 'mani':69 'much':2 'pale':32 'piec':21 'relat':3 'revis':67 'share':56 'sinc':73 'softwar':23 'stabl':76 'suggest':45 'term':38 'tweak':48 'underr':20 'unstabl':66 'upgrad':62 'user':42 'version':77 'view':53 'want':6 'wxhexeditor':36"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.it/comment/4084700"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701223008 {#4011
      date: 2023-11-29 02:56:48.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4066}
  +body: "Yeah definitely share your config! I’ve only just scratched the surface with wxHexEditor"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1701223767 {#4472
    date: 2023-11-29 03:09:27.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@dario@feddit.it"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4475 …}
  +nested: Doctrine\ORM\PersistentCollection {#4477 …}
  +votes: Doctrine\ORM\PersistentCollection {#4479 …}
  +reports: Doctrine\ORM\PersistentCollection {#4481 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4483 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4485 …}
  -id: 175683
  -bodyTs: "'config':5 'definit':2 'scratch':10 'share':3 'surfac':12 've':7 'wxhexeditor':14 'yeah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4082731"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701223767 {#4473
    date: 2023-11-29 03:09:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
12 DENIED moderate
App\Entity\EntryComment {#4474
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4066
    +user: App\Entity\User {#4014 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Not much related, but I want to chime in to express my gratitude for what I consider the most underrated piece of software in the FOSS ecosystem. Better known hex editors pale in comparison to wxHexEditor in terms of features and user interface. I suggest you to tweak the colors for better viewing (I can share my configuration file) and to upgrade to the latest unstable revision because many important fixes landed since the last stable version."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1702111183 {#4075
      date: 2023-12-09 09:39:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4064 …}
    +nested: Doctrine\ORM\PersistentCollection {#4062 …}
    +votes: Doctrine\ORM\PersistentCollection {#4060 …}
    +reports: Doctrine\ORM\PersistentCollection {#4058 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4026 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4030 …}
    -id: 175660
    -bodyTs: "'better':28,52 'chime':8 'color':50 'comparison':34 'configur':58 'consid':17 'ecosystem':27 'editor':31 'express':11 'featur':40 'file':59 'fix':71 'foss':26 'gratitud':13 'hex':30 'import':70 'interfac':43 'known':29 'land':72 'last':75 'latest':65 'mani':69 'much':2 'pale':32 'piec':21 'relat':3 'revis':67 'share':56 'sinc':73 'softwar':23 'stabl':76 'suggest':45 'term':38 'tweak':48 'underr':20 'unstabl':66 'upgrad':62 'user':42 'version':77 'view':53 'want':6 'wxhexeditor':36"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.it/comment/4084700"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701223008 {#4011
      date: 2023-11-29 02:56:48.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4066}
  +body: "Yeah definitely share your config! I’ve only just scratched the surface with wxHexEditor"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1701223767 {#4472
    date: 2023-11-29 03:09:27.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@dario@feddit.it"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4475 …}
  +nested: Doctrine\ORM\PersistentCollection {#4477 …}
  +votes: Doctrine\ORM\PersistentCollection {#4479 …}
  +reports: Doctrine\ORM\PersistentCollection {#4481 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4483 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4485 …}
  -id: 175683
  -bodyTs: "'config':5 'definit':2 'scratch':10 'share':3 'surfac':12 've':7 'wxhexeditor':14 'yeah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4082731"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701223767 {#4473
    date: 2023-11-29 03:09:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
13 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
14 DENIED moderate
App\Entity\EntryComment {#4496
  +user: App\Entity\User {#4014 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4474
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4066
      +user: App\Entity\User {#4014 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Not much related, but I want to chime in to express my gratitude for what I consider the most underrated piece of software in the FOSS ecosystem. Better known hex editors pale in comparison to wxHexEditor in terms of features and user interface. I suggest you to tweak the colors for better viewing (I can share my configuration file) and to upgrade to the latest unstable revision because many important fixes landed since the last stable version."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1702111183 {#4075
        date: 2023-12-09 09:39:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4064 …}
      +nested: Doctrine\ORM\PersistentCollection {#4062 …}
      +votes: Doctrine\ORM\PersistentCollection {#4060 …}
      +reports: Doctrine\ORM\PersistentCollection {#4058 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4026 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4030 …}
      -id: 175660
      -bodyTs: "'better':28,52 'chime':8 'color':50 'comparison':34 'configur':58 'consid':17 'ecosystem':27 'editor':31 'express':11 'featur':40 'file':59 'fix':71 'foss':26 'gratitud':13 'hex':30 'import':70 'interfac':43 'known':29 'land':72 'last':75 'latest':65 'mani':69 'much':2 'pale':32 'piec':21 'relat':3 'revis':67 'share':56 'sinc':73 'softwar':23 'stabl':76 'suggest':45 'term':38 'tweak':48 'underr':20 'unstabl':66 'upgrad':62 'user':42 'version':77 'view':53 'want':6 'wxhexeditor':36"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://feddit.it/comment/4084700"
      +editedAt: null
      +createdAt: DateTimeImmutable @1701223008 {#4011
        date: 2023-11-29 02:56:48.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4066}
    +body: "Yeah definitely share your config! I’ve only just scratched the surface with wxHexEditor"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1701223767 {#4472
      date: 2023-11-29 03:09:27.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@dario@feddit.it"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4475 …}
    +nested: Doctrine\ORM\PersistentCollection {#4477 …}
    +votes: Doctrine\ORM\PersistentCollection {#4479 …}
    +reports: Doctrine\ORM\PersistentCollection {#4481 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4483 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4485 …}
    -id: 175683
    -bodyTs: "'config':5 'definit':2 'scratch':10 'share':3 'surfac':12 've':7 'wxhexeditor':14 'yeah':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/4082731"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701223767 {#4473
      date: 2023-11-29 03:09:27.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4066}
  +body: """
    ```\n
    \n
    <span style="color:#323232;">Language=English\n
    </span><span style="color:#323232;">UpdateCheck=1\n
    </span><span style="color:#323232;">LastUpdateCheckTime=1.698e+09\n
    </span><span style="color:#323232;">ColourHexForeground=#DEDDDA\n
    </span><span style="color:#323232;">ColourHexBackground=#000000\n
    </span><span style="color:#323232;">ColourHexBackgroundZebra=#3D3846\n
    </span><span style="color:#323232;">ColourHexSelectionForeground=#000000\n
    </span><span style="color:#323232;">ColourHexSelectionBackground=#613583\n
    </span><span style="color:#323232;">UseCustomHexFormat=0\n
    </span><span style="color:#323232;">CustomHexFormat=xx \n
    </span><span style="color:#323232;">UseBytesPerLineLimit=1\n
    </span><span style="color:#323232;">BytesPerLineLimit=16\n
    </span><span style="color:#323232;">CharacterEncodingFamily=DOS\n
    </span><span style="color:#323232;">CharacterEncoding=OEM - IBM PC/DOS CP437 - MS-DOS Latin US\n
    </span><span style="color:#323232;">FontSize=10\n
    </span><span style="color:#323232;">AutoShowTagPanel=1\n
    </span><span style="color:#323232;">ScreenX=26\n
    </span><span style="color:#323232;">ScreenY=23\n
    </span><span style="color:#323232;">ScreenW=618\n
    </span><span style="color:#323232;">ScreenH=716\n
    </span><span style="color:#323232;">ScreenFullScreen=0\n
    </span><span style="color:#323232;">FakeBlockLines=0\n
    </span><span style="color:#323232;">FakeBlockSize=8k\n
    </span><span style="color:#323232;">SingleInstance=0\n
    </span><span style="color:#323232;">ZebraStriping=1\n
    </span><span style="color:#323232;">SelectedChecksumFunctions=32648\n
    </span><span style="color:#323232;">CompareOptions=0\n
    </span><span style="color:#323232;">CompareOptionStopAfter=0\n
    </span><span style="color:#323232;">CompareOptionMergeSection=0\n
    </span>\n
    ```
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1701250420 {#4492
    date: 2023-11-29 10:33:40.0 +01:00
  }
  +ip: null
  +tags: [
    0 => "323232"
    4 => "deddda"
    6 => "000000"
    8 => "3d3846"
    12 => "613583"
  ]
  +mentions: [
    "@luthis@lemmy.nz"
    "@dario@feddit.it"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4500 …}
  +nested: Doctrine\ORM\PersistentCollection {#4502 …}
  +votes: Doctrine\ORM\PersistentCollection {#4498 …}
  +reports: Doctrine\ORM\PersistentCollection {#4504 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
  -id: 176304
  -bodyTs: "'0':18,50,52,56,62,64,66 '000000':10,14 '1':4,22,40,58 '1.698e+09':6 '10':38 '16':24 '23':44 '26':42 '32648':60 '3d3846':12 '613583':16 '618':46 '716':48 '8k':54 'autoshowtagpanel':39 'bytesperlinelimit':23 'characterencod':27 'characterencodingfamili':25 'colourhexbackground':9 'colourhexbackgroundzebra':11 'colourhexforeground':7 'colourhexselectionbackground':15 'colourhexselectionforeground':13 'compareopt':61 'compareoptionmergesect':65 'compareoptionstopaft':63 'cp437':31 'customhexformat':19 'deddda':8 'dos':26,34 'english':2 'fakeblocklin':51 'fakeblocks':53 'fontsiz':37 'ibm':29 'languag':1 'lastupdatechecktim':5 'latin':35 'ms':33 'ms-dos':32 'oem':28 'pc/dos':30 'screenfullscreen':49 'screenh':47 'screeni':43 'screenw':45 'screenx':41 'selectedchecksumfunct':59 'singleinst':55 'updatecheck':3 'us':36 'usebytesperlinelimit':21 'usecustomhexformat':17 'xx':20 'zebrastrip':57"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.it/comment/4089426"
  +editedAt: DateTimeImmutable @1702111245 {#4489
    date: 2023-12-09 09:40:45.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701250420 {#4493
    date: 2023-11-29 10:33:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
15 DENIED edit
App\Entity\EntryComment {#4496
  +user: App\Entity\User {#4014 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4474
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4066
      +user: App\Entity\User {#4014 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Not much related, but I want to chime in to express my gratitude for what I consider the most underrated piece of software in the FOSS ecosystem. Better known hex editors pale in comparison to wxHexEditor in terms of features and user interface. I suggest you to tweak the colors for better viewing (I can share my configuration file) and to upgrade to the latest unstable revision because many important fixes landed since the last stable version."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1702111183 {#4075
        date: 2023-12-09 09:39:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4064 …}
      +nested: Doctrine\ORM\PersistentCollection {#4062 …}
      +votes: Doctrine\ORM\PersistentCollection {#4060 …}
      +reports: Doctrine\ORM\PersistentCollection {#4058 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4026 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4030 …}
      -id: 175660
      -bodyTs: "'better':28,52 'chime':8 'color':50 'comparison':34 'configur':58 'consid':17 'ecosystem':27 'editor':31 'express':11 'featur':40 'file':59 'fix':71 'foss':26 'gratitud':13 'hex':30 'import':70 'interfac':43 'known':29 'land':72 'last':75 'latest':65 'mani':69 'much':2 'pale':32 'piec':21 'relat':3 'revis':67 'share':56 'sinc':73 'softwar':23 'stabl':76 'suggest':45 'term':38 'tweak':48 'underr':20 'unstabl':66 'upgrad':62 'user':42 'version':77 'view':53 'want':6 'wxhexeditor':36"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://feddit.it/comment/4084700"
      +editedAt: null
      +createdAt: DateTimeImmutable @1701223008 {#4011
        date: 2023-11-29 02:56:48.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4066}
    +body: "Yeah definitely share your config! I’ve only just scratched the surface with wxHexEditor"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1701223767 {#4472
      date: 2023-11-29 03:09:27.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@dario@feddit.it"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4475 …}
    +nested: Doctrine\ORM\PersistentCollection {#4477 …}
    +votes: Doctrine\ORM\PersistentCollection {#4479 …}
    +reports: Doctrine\ORM\PersistentCollection {#4481 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4483 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4485 …}
    -id: 175683
    -bodyTs: "'config':5 'definit':2 'scratch':10 'share':3 'surfac':12 've':7 'wxhexeditor':14 'yeah':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/4082731"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701223767 {#4473
      date: 2023-11-29 03:09:27.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4066}
  +body: """
    ```\n
    \n
    <span style="color:#323232;">Language=English\n
    </span><span style="color:#323232;">UpdateCheck=1\n
    </span><span style="color:#323232;">LastUpdateCheckTime=1.698e+09\n
    </span><span style="color:#323232;">ColourHexForeground=#DEDDDA\n
    </span><span style="color:#323232;">ColourHexBackground=#000000\n
    </span><span style="color:#323232;">ColourHexBackgroundZebra=#3D3846\n
    </span><span style="color:#323232;">ColourHexSelectionForeground=#000000\n
    </span><span style="color:#323232;">ColourHexSelectionBackground=#613583\n
    </span><span style="color:#323232;">UseCustomHexFormat=0\n
    </span><span style="color:#323232;">CustomHexFormat=xx \n
    </span><span style="color:#323232;">UseBytesPerLineLimit=1\n
    </span><span style="color:#323232;">BytesPerLineLimit=16\n
    </span><span style="color:#323232;">CharacterEncodingFamily=DOS\n
    </span><span style="color:#323232;">CharacterEncoding=OEM - IBM PC/DOS CP437 - MS-DOS Latin US\n
    </span><span style="color:#323232;">FontSize=10\n
    </span><span style="color:#323232;">AutoShowTagPanel=1\n
    </span><span style="color:#323232;">ScreenX=26\n
    </span><span style="color:#323232;">ScreenY=23\n
    </span><span style="color:#323232;">ScreenW=618\n
    </span><span style="color:#323232;">ScreenH=716\n
    </span><span style="color:#323232;">ScreenFullScreen=0\n
    </span><span style="color:#323232;">FakeBlockLines=0\n
    </span><span style="color:#323232;">FakeBlockSize=8k\n
    </span><span style="color:#323232;">SingleInstance=0\n
    </span><span style="color:#323232;">ZebraStriping=1\n
    </span><span style="color:#323232;">SelectedChecksumFunctions=32648\n
    </span><span style="color:#323232;">CompareOptions=0\n
    </span><span style="color:#323232;">CompareOptionStopAfter=0\n
    </span><span style="color:#323232;">CompareOptionMergeSection=0\n
    </span>\n
    ```
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1701250420 {#4492
    date: 2023-11-29 10:33:40.0 +01:00
  }
  +ip: null
  +tags: [
    0 => "323232"
    4 => "deddda"
    6 => "000000"
    8 => "3d3846"
    12 => "613583"
  ]
  +mentions: [
    "@luthis@lemmy.nz"
    "@dario@feddit.it"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4500 …}
  +nested: Doctrine\ORM\PersistentCollection {#4502 …}
  +votes: Doctrine\ORM\PersistentCollection {#4498 …}
  +reports: Doctrine\ORM\PersistentCollection {#4504 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
  -id: 176304
  -bodyTs: "'0':18,50,52,56,62,64,66 '000000':10,14 '1':4,22,40,58 '1.698e+09':6 '10':38 '16':24 '23':44 '26':42 '32648':60 '3d3846':12 '613583':16 '618':46 '716':48 '8k':54 'autoshowtagpanel':39 'bytesperlinelimit':23 'characterencod':27 'characterencodingfamili':25 'colourhexbackground':9 'colourhexbackgroundzebra':11 'colourhexforeground':7 'colourhexselectionbackground':15 'colourhexselectionforeground':13 'compareopt':61 'compareoptionmergesect':65 'compareoptionstopaft':63 'cp437':31 'customhexformat':19 'deddda':8 'dos':26,34 'english':2 'fakeblocklin':51 'fakeblocks':53 'fontsiz':37 'ibm':29 'languag':1 'lastupdatechecktim':5 'latin':35 'ms':33 'ms-dos':32 'oem':28 'pc/dos':30 'screenfullscreen':49 'screenh':47 'screeni':43 'screenw':45 'screenx':41 'selectedchecksumfunct':59 'singleinst':55 'updatecheck':3 'us':36 'usebytesperlinelimit':21 'usecustomhexformat':17 'xx':20 'zebrastrip':57"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.it/comment/4089426"
  +editedAt: DateTimeImmutable @1702111245 {#4489
    date: 2023-12-09 09:40:45.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701250420 {#4493
    date: 2023-11-29 10:33:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
16 DENIED moderate
App\Entity\EntryComment {#4496
  +user: App\Entity\User {#4014 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4474
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4066
      +user: App\Entity\User {#4014 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Not much related, but I want to chime in to express my gratitude for what I consider the most underrated piece of software in the FOSS ecosystem. Better known hex editors pale in comparison to wxHexEditor in terms of features and user interface. I suggest you to tweak the colors for better viewing (I can share my configuration file) and to upgrade to the latest unstable revision because many important fixes landed since the last stable version."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1702111183 {#4075
        date: 2023-12-09 09:39:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4064 …}
      +nested: Doctrine\ORM\PersistentCollection {#4062 …}
      +votes: Doctrine\ORM\PersistentCollection {#4060 …}
      +reports: Doctrine\ORM\PersistentCollection {#4058 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4026 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4030 …}
      -id: 175660
      -bodyTs: "'better':28,52 'chime':8 'color':50 'comparison':34 'configur':58 'consid':17 'ecosystem':27 'editor':31 'express':11 'featur':40 'file':59 'fix':71 'foss':26 'gratitud':13 'hex':30 'import':70 'interfac':43 'known':29 'land':72 'last':75 'latest':65 'mani':69 'much':2 'pale':32 'piec':21 'relat':3 'revis':67 'share':56 'sinc':73 'softwar':23 'stabl':76 'suggest':45 'term':38 'tweak':48 'underr':20 'unstabl':66 'upgrad':62 'user':42 'version':77 'view':53 'want':6 'wxhexeditor':36"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://feddit.it/comment/4084700"
      +editedAt: null
      +createdAt: DateTimeImmutable @1701223008 {#4011
        date: 2023-11-29 02:56:48.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4066}
    +body: "Yeah definitely share your config! I’ve only just scratched the surface with wxHexEditor"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1701223767 {#4472
      date: 2023-11-29 03:09:27.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@dario@feddit.it"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4475 …}
    +nested: Doctrine\ORM\PersistentCollection {#4477 …}
    +votes: Doctrine\ORM\PersistentCollection {#4479 …}
    +reports: Doctrine\ORM\PersistentCollection {#4481 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4483 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4485 …}
    -id: 175683
    -bodyTs: "'config':5 'definit':2 'scratch':10 'share':3 'surfac':12 've':7 'wxhexeditor':14 'yeah':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/4082731"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701223767 {#4473
      date: 2023-11-29 03:09:27.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4066}
  +body: """
    ```\n
    \n
    <span style="color:#323232;">Language=English\n
    </span><span style="color:#323232;">UpdateCheck=1\n
    </span><span style="color:#323232;">LastUpdateCheckTime=1.698e+09\n
    </span><span style="color:#323232;">ColourHexForeground=#DEDDDA\n
    </span><span style="color:#323232;">ColourHexBackground=#000000\n
    </span><span style="color:#323232;">ColourHexBackgroundZebra=#3D3846\n
    </span><span style="color:#323232;">ColourHexSelectionForeground=#000000\n
    </span><span style="color:#323232;">ColourHexSelectionBackground=#613583\n
    </span><span style="color:#323232;">UseCustomHexFormat=0\n
    </span><span style="color:#323232;">CustomHexFormat=xx \n
    </span><span style="color:#323232;">UseBytesPerLineLimit=1\n
    </span><span style="color:#323232;">BytesPerLineLimit=16\n
    </span><span style="color:#323232;">CharacterEncodingFamily=DOS\n
    </span><span style="color:#323232;">CharacterEncoding=OEM - IBM PC/DOS CP437 - MS-DOS Latin US\n
    </span><span style="color:#323232;">FontSize=10\n
    </span><span style="color:#323232;">AutoShowTagPanel=1\n
    </span><span style="color:#323232;">ScreenX=26\n
    </span><span style="color:#323232;">ScreenY=23\n
    </span><span style="color:#323232;">ScreenW=618\n
    </span><span style="color:#323232;">ScreenH=716\n
    </span><span style="color:#323232;">ScreenFullScreen=0\n
    </span><span style="color:#323232;">FakeBlockLines=0\n
    </span><span style="color:#323232;">FakeBlockSize=8k\n
    </span><span style="color:#323232;">SingleInstance=0\n
    </span><span style="color:#323232;">ZebraStriping=1\n
    </span><span style="color:#323232;">SelectedChecksumFunctions=32648\n
    </span><span style="color:#323232;">CompareOptions=0\n
    </span><span style="color:#323232;">CompareOptionStopAfter=0\n
    </span><span style="color:#323232;">CompareOptionMergeSection=0\n
    </span>\n
    ```
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1701250420 {#4492
    date: 2023-11-29 10:33:40.0 +01:00
  }
  +ip: null
  +tags: [
    0 => "323232"
    4 => "deddda"
    6 => "000000"
    8 => "3d3846"
    12 => "613583"
  ]
  +mentions: [
    "@luthis@lemmy.nz"
    "@dario@feddit.it"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4500 …}
  +nested: Doctrine\ORM\PersistentCollection {#4502 …}
  +votes: Doctrine\ORM\PersistentCollection {#4498 …}
  +reports: Doctrine\ORM\PersistentCollection {#4504 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
  -id: 176304
  -bodyTs: "'0':18,50,52,56,62,64,66 '000000':10,14 '1':4,22,40,58 '1.698e+09':6 '10':38 '16':24 '23':44 '26':42 '32648':60 '3d3846':12 '613583':16 '618':46 '716':48 '8k':54 'autoshowtagpanel':39 'bytesperlinelimit':23 'characterencod':27 'characterencodingfamili':25 'colourhexbackground':9 'colourhexbackgroundzebra':11 'colourhexforeground':7 'colourhexselectionbackground':15 'colourhexselectionforeground':13 'compareopt':61 'compareoptionmergesect':65 'compareoptionstopaft':63 'cp437':31 'customhexformat':19 'deddda':8 'dos':26,34 'english':2 'fakeblocklin':51 'fakeblocks':53 'fontsiz':37 'ibm':29 'languag':1 'lastupdatechecktim':5 'latin':35 'ms':33 'ms-dos':32 'oem':28 'pc/dos':30 'screenfullscreen':49 'screenh':47 'screeni':43 'screenw':45 'screenx':41 'selectedchecksumfunct':59 'singleinst':55 'updatecheck':3 'us':36 'usebytesperlinelimit':21 'usecustomhexformat':17 'xx':20 'zebrastrip':57"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.it/comment/4089426"
  +editedAt: DateTimeImmutable @1702111245 {#4489
    date: 2023-12-09 09:40:45.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701250420 {#4493
    date: 2023-11-29 10:33:40.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
17 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
18 DENIED moderate
App\Entity\EntryComment {#4098
  +user: App\Entity\User {#4087 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Luthis, you’re doing God’s work here. You are learning by experimentation and then, importantly, *documenting and sharing* what you’ve learned. There is absolutely zero wrong and only good to be had in either of those and in combining them, you’re doing service to our entire community."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 10
  +score: 0
  +lastActive: DateTime @1702001241 {#4104
    date: 2023-12-08 03:07:21.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4103 …}
  +nested: Doctrine\ORM\PersistentCollection {#4102 …}
  +votes: Doctrine\ORM\PersistentCollection {#4093 …}
  +reports: Doctrine\ORM\PersistentCollection {#4096 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4089 …}
  -id: 172913
  -bodyTs: "'absolut':26 'combin':41 'communiti':50 'document':17 'either':36 'entir':49 'experiment':13 'god':5 'good':31 'import':16 'learn':11,23 'luthi':1 're':3,44 'servic':46 'share':19 've':22 'work':7 'wrong':28 'zero':27"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6187348"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701160113 {#4109
    date: 2023-11-28 09:28:33.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
19 DENIED edit
App\Entity\EntryComment {#4098
  +user: App\Entity\User {#4087 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Luthis, you’re doing God’s work here. You are learning by experimentation and then, importantly, *documenting and sharing* what you’ve learned. There is absolutely zero wrong and only good to be had in either of those and in combining them, you’re doing service to our entire community."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 10
  +score: 0
  +lastActive: DateTime @1702001241 {#4104
    date: 2023-12-08 03:07:21.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4103 …}
  +nested: Doctrine\ORM\PersistentCollection {#4102 …}
  +votes: Doctrine\ORM\PersistentCollection {#4093 …}
  +reports: Doctrine\ORM\PersistentCollection {#4096 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4089 …}
  -id: 172913
  -bodyTs: "'absolut':26 'combin':41 'communiti':50 'document':17 'either':36 'entir':49 'experiment':13 'god':5 'good':31 'import':16 'learn':11,23 'luthi':1 're':3,44 'servic':46 'share':19 've':22 'work':7 'wrong':28 'zero':27"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6187348"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701160113 {#4109
    date: 2023-11-28 09:28:33.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
20 DENIED moderate
App\Entity\EntryComment {#4098
  +user: App\Entity\User {#4087 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Luthis, you’re doing God’s work here. You are learning by experimentation and then, importantly, *documenting and sharing* what you’ve learned. There is absolutely zero wrong and only good to be had in either of those and in combining them, you’re doing service to our entire community."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 10
  +score: 0
  +lastActive: DateTime @1702001241 {#4104
    date: 2023-12-08 03:07:21.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4103 …}
  +nested: Doctrine\ORM\PersistentCollection {#4102 …}
  +votes: Doctrine\ORM\PersistentCollection {#4093 …}
  +reports: Doctrine\ORM\PersistentCollection {#4096 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4089 …}
  -id: 172913
  -bodyTs: "'absolut':26 'combin':41 'communiti':50 'document':17 'either':36 'entir':49 'experiment':13 'god':5 'good':31 'import':16 'learn':11,23 'luthi':1 're':3,44 'servic':46 'share':19 've':22 'work':7 'wrong':28 'zero':27"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6187348"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701160113 {#4109
    date: 2023-11-28 09:28:33.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
21 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
22 DENIED moderate
App\Entity\EntryComment {#4459
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4098
    +user: App\Entity\User {#4087 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Luthis, you’re doing God’s work here. You are learning by experimentation and then, importantly, *documenting and sharing* what you’ve learned. There is absolutely zero wrong and only good to be had in either of those and in combining them, you’re doing service to our entire community."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 10
    +score: 0
    +lastActive: DateTime @1702001241 {#4104
      date: 2023-12-08 03:07:21.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4103 …}
    +nested: Doctrine\ORM\PersistentCollection {#4102 …}
    +votes: Doctrine\ORM\PersistentCollection {#4093 …}
    +reports: Doctrine\ORM\PersistentCollection {#4096 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4089 …}
    -id: 172913
    -bodyTs: "'absolut':26 'combin':41 'communiti':50 'document':17 'either':36 'entir':49 'experiment':13 'god':5 'good':31 'import':16 'learn':11,23 'luthi':1 're':3,44 'servic':46 'share':19 've':22 'work':7 'wrong':28 'zero':27"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/6187348"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701160113 {#4109
      date: 2023-11-28 09:28:33.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4098}
  +body: "Thanks! I will keep it up!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1701198096 {#4457
    date: 2023-11-28 20:01:36.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@chunkyhairball@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4460 …}
  +nested: Doctrine\ORM\PersistentCollection {#4462 …}
  +votes: Doctrine\ORM\PersistentCollection {#4464 …}
  +reports: Doctrine\ORM\PersistentCollection {#4466 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4468 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4470 …}
  -id: 174472
  -bodyTs: "'keep':4 'thank':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4075058"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701198096 {#4458
    date: 2023-11-28 20:01:36.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
23 DENIED edit
App\Entity\EntryComment {#4459
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4098
    +user: App\Entity\User {#4087 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Luthis, you’re doing God’s work here. You are learning by experimentation and then, importantly, *documenting and sharing* what you’ve learned. There is absolutely zero wrong and only good to be had in either of those and in combining them, you’re doing service to our entire community."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 10
    +score: 0
    +lastActive: DateTime @1702001241 {#4104
      date: 2023-12-08 03:07:21.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4103 …}
    +nested: Doctrine\ORM\PersistentCollection {#4102 …}
    +votes: Doctrine\ORM\PersistentCollection {#4093 …}
    +reports: Doctrine\ORM\PersistentCollection {#4096 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4089 …}
    -id: 172913
    -bodyTs: "'absolut':26 'combin':41 'communiti':50 'document':17 'either':36 'entir':49 'experiment':13 'god':5 'good':31 'import':16 'learn':11,23 'luthi':1 're':3,44 'servic':46 'share':19 've':22 'work':7 'wrong':28 'zero':27"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/6187348"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701160113 {#4109
      date: 2023-11-28 09:28:33.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4098}
  +body: "Thanks! I will keep it up!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1701198096 {#4457
    date: 2023-11-28 20:01:36.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@chunkyhairball@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4460 …}
  +nested: Doctrine\ORM\PersistentCollection {#4462 …}
  +votes: Doctrine\ORM\PersistentCollection {#4464 …}
  +reports: Doctrine\ORM\PersistentCollection {#4466 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4468 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4470 …}
  -id: 174472
  -bodyTs: "'keep':4 'thank':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4075058"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701198096 {#4458
    date: 2023-11-28 20:01:36.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
24 DENIED moderate
App\Entity\EntryComment {#4459
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4098
    +user: App\Entity\User {#4087 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Luthis, you’re doing God’s work here. You are learning by experimentation and then, importantly, *documenting and sharing* what you’ve learned. There is absolutely zero wrong and only good to be had in either of those and in combining them, you’re doing service to our entire community."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 10
    +score: 0
    +lastActive: DateTime @1702001241 {#4104
      date: 2023-12-08 03:07:21.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4103 …}
    +nested: Doctrine\ORM\PersistentCollection {#4102 …}
    +votes: Doctrine\ORM\PersistentCollection {#4093 …}
    +reports: Doctrine\ORM\PersistentCollection {#4096 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4089 …}
    -id: 172913
    -bodyTs: "'absolut':26 'combin':41 'communiti':50 'document':17 'either':36 'entir':49 'experiment':13 'god':5 'good':31 'import':16 'learn':11,23 'luthi':1 're':3,44 'servic':46 'share':19 've':22 'work':7 'wrong':28 'zero':27"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/6187348"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701160113 {#4109
      date: 2023-11-28 09:28:33.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4098}
  +body: "Thanks! I will keep it up!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1701198096 {#4457
    date: 2023-11-28 20:01:36.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@chunkyhairball@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4460 …}
  +nested: Doctrine\ORM\PersistentCollection {#4462 …}
  +votes: Doctrine\ORM\PersistentCollection {#4464 …}
  +reports: Doctrine\ORM\PersistentCollection {#4466 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4468 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4470 …}
  -id: 174472
  -bodyTs: "'keep':4 'thank':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4075058"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701198096 {#4458
    date: 2023-11-28 20:01:36.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
25 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
26 DENIED moderate
App\Entity\EntryComment {#4183
  +user: App\Entity\User {#4196 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Of course that was worth 3 hours. Every tinkering/experimenting is worth it. In the worst case you gain experience"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1701917806 {#4178
    date: 2023-12-07 03:56:46.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4184 …}
  +nested: Doctrine\ORM\PersistentCollection {#4186 …}
  +votes: Doctrine\ORM\PersistentCollection {#4188 …}
  +reports: Doctrine\ORM\PersistentCollection {#4190 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4192 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4194 …}
  -id: 172779
  -bodyTs: "'3':6 'case':16 'cours':2 'everi':8 'experi':19 'gain':18 'hour':7 'tinkering/experimenting':9 'worst':15 'worth':5,11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6186168"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701154565 {#4179
    date: 2023-11-28 07:56:05.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
27 DENIED edit
App\Entity\EntryComment {#4183
  +user: App\Entity\User {#4196 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Of course that was worth 3 hours. Every tinkering/experimenting is worth it. In the worst case you gain experience"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1701917806 {#4178
    date: 2023-12-07 03:56:46.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4184 …}
  +nested: Doctrine\ORM\PersistentCollection {#4186 …}
  +votes: Doctrine\ORM\PersistentCollection {#4188 …}
  +reports: Doctrine\ORM\PersistentCollection {#4190 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4192 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4194 …}
  -id: 172779
  -bodyTs: "'3':6 'case':16 'cours':2 'everi':8 'experi':19 'gain':18 'hour':7 'tinkering/experimenting':9 'worst':15 'worth':5,11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6186168"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701154565 {#4179
    date: 2023-11-28 07:56:05.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
28 DENIED moderate
App\Entity\EntryComment {#4183
  +user: App\Entity\User {#4196 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Of course that was worth 3 hours. Every tinkering/experimenting is worth it. In the worst case you gain experience"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1701917806 {#4178
    date: 2023-12-07 03:56:46.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4184 …}
  +nested: Doctrine\ORM\PersistentCollection {#4186 …}
  +votes: Doctrine\ORM\PersistentCollection {#4188 …}
  +reports: Doctrine\ORM\PersistentCollection {#4190 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4192 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4194 …}
  -id: 172779
  -bodyTs: "'3':6 'case':16 'cours':2 'everi':8 'experi':19 'gain':18 'hour':7 'tinkering/experimenting':9 'worst':15 'worth':5,11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/6186168"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701154565 {#4179
    date: 2023-11-28 07:56:05.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
29 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
30 DENIED moderate
App\Entity\EntryComment {#4425
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4183
    +user: App\Entity\User {#4196 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Of course that was worth 3 hours. Every tinkering/experimenting is worth it. In the worst case you gain experience"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1701917806 {#4178
      date: 2023-12-07 03:56:46.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4184 …}
    +nested: Doctrine\ORM\PersistentCollection {#4186 …}
    +votes: Doctrine\ORM\PersistentCollection {#4188 …}
    +reports: Doctrine\ORM\PersistentCollection {#4190 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4192 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4194 …}
    -id: 172779
    -bodyTs: "'3':6 'case':16 'cours':2 'everi':8 'experi':19 'gain':18 'hour':7 'tinkering/experimenting':9 'worst':15 'worth':5,11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/6186168"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701154565 {#4179
      date: 2023-11-28 07:56:05.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4183}
  +body: "Yeah now I stand a better chance of recovering files if something catastrophic happens"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1701157279 {#4424
    date: 2023-11-28 08:41:19.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@SaltyIceteaMaker@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4429 …}
  +nested: Doctrine\ORM\PersistentCollection {#4435 …}
  +votes: Doctrine\ORM\PersistentCollection {#4431 …}
  +reports: Doctrine\ORM\PersistentCollection {#4436 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4438 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4440 …}
  -id: 172842
  -bodyTs: "'better':6 'catastroph':13 'chanc':7 'file':10 'happen':14 'recov':9 'someth':12 'stand':4 'yeah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4064967"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701157279 {#4421
    date: 2023-11-28 08:41:19.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
31 DENIED edit
App\Entity\EntryComment {#4425
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4183
    +user: App\Entity\User {#4196 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Of course that was worth 3 hours. Every tinkering/experimenting is worth it. In the worst case you gain experience"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1701917806 {#4178
      date: 2023-12-07 03:56:46.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4184 …}
    +nested: Doctrine\ORM\PersistentCollection {#4186 …}
    +votes: Doctrine\ORM\PersistentCollection {#4188 …}
    +reports: Doctrine\ORM\PersistentCollection {#4190 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4192 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4194 …}
    -id: 172779
    -bodyTs: "'3':6 'case':16 'cours':2 'everi':8 'experi':19 'gain':18 'hour':7 'tinkering/experimenting':9 'worst':15 'worth':5,11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/6186168"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701154565 {#4179
      date: 2023-11-28 07:56:05.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4183}
  +body: "Yeah now I stand a better chance of recovering files if something catastrophic happens"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1701157279 {#4424
    date: 2023-11-28 08:41:19.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@SaltyIceteaMaker@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4429 …}
  +nested: Doctrine\ORM\PersistentCollection {#4435 …}
  +votes: Doctrine\ORM\PersistentCollection {#4431 …}
  +reports: Doctrine\ORM\PersistentCollection {#4436 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4438 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4440 …}
  -id: 172842
  -bodyTs: "'better':6 'catastroph':13 'chanc':7 'file':10 'happen':14 'recov':9 'someth':12 'stand':4 'yeah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4064967"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701157279 {#4421
    date: 2023-11-28 08:41:19.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
32 DENIED moderate
App\Entity\EntryComment {#4425
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4183
    +user: App\Entity\User {#4196 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Of course that was worth 3 hours. Every tinkering/experimenting is worth it. In the worst case you gain experience"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1701917806 {#4178
      date: 2023-12-07 03:56:46.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4184 …}
    +nested: Doctrine\ORM\PersistentCollection {#4186 …}
    +votes: Doctrine\ORM\PersistentCollection {#4188 …}
    +reports: Doctrine\ORM\PersistentCollection {#4190 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4192 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4194 …}
    -id: 172779
    -bodyTs: "'3':6 'case':16 'cours':2 'everi':8 'experi':19 'gain':18 'hour':7 'tinkering/experimenting':9 'worst':15 'worth':5,11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/6186168"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701154565 {#4179
      date: 2023-11-28 07:56:05.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4183}
  +body: "Yeah now I stand a better chance of recovering files if something catastrophic happens"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1701157279 {#4424
    date: 2023-11-28 08:41:19.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@SaltyIceteaMaker@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4429 …}
  +nested: Doctrine\ORM\PersistentCollection {#4435 …}
  +votes: Doctrine\ORM\PersistentCollection {#4431 …}
  +reports: Doctrine\ORM\PersistentCollection {#4436 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4438 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4440 …}
  -id: 172842
  -bodyTs: "'better':6 'catastroph':13 'chanc':7 'file':10 'happen':14 'recov':9 'someth':12 'stand':4 'yeah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4064967"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701157279 {#4421
    date: 2023-11-28 08:41:19.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
33 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
34 DENIED moderate
App\Entity\EntryComment {#4256
  +user: App\Entity\User {#4269 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "You wasted three hours so you can share this knowledge :D"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1701917777 {#4251
    date: 2023-12-07 03:56:17.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4257 …}
  +nested: Doctrine\ORM\PersistentCollection {#4259 …}
  +votes: Doctrine\ORM\PersistentCollection {#4261 …}
  +reports: Doctrine\ORM\PersistentCollection {#4263 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4265 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4267 …}
  -id: 172807
  -bodyTs: "'d':11 'hour':4 'knowledg':10 'share':8 'three':3 'wast':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.nl/comment/4933087"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701155533 {#4252
    date: 2023-11-28 08:12:13.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
35 DENIED edit
App\Entity\EntryComment {#4256
  +user: App\Entity\User {#4269 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "You wasted three hours so you can share this knowledge :D"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1701917777 {#4251
    date: 2023-12-07 03:56:17.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4257 …}
  +nested: Doctrine\ORM\PersistentCollection {#4259 …}
  +votes: Doctrine\ORM\PersistentCollection {#4261 …}
  +reports: Doctrine\ORM\PersistentCollection {#4263 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4265 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4267 …}
  -id: 172807
  -bodyTs: "'d':11 'hour':4 'knowledg':10 'share':8 'three':3 'wast':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.nl/comment/4933087"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701155533 {#4252
    date: 2023-11-28 08:12:13.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
36 DENIED moderate
App\Entity\EntryComment {#4256
  +user: App\Entity\User {#4269 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "You wasted three hours so you can share this knowledge :D"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1701917777 {#4251
    date: 2023-12-07 03:56:17.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4257 …}
  +nested: Doctrine\ORM\PersistentCollection {#4259 …}
  +votes: Doctrine\ORM\PersistentCollection {#4261 …}
  +reports: Doctrine\ORM\PersistentCollection {#4263 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4265 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4267 …}
  -id: 172807
  -bodyTs: "'d':11 'hour':4 'knowledg':10 'share':8 'three':3 'wast':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.nl/comment/4933087"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701155533 {#4252
    date: 2023-11-28 08:12:13.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
37 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
38 DENIED moderate
App\Entity\EntryComment {#4444
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4256
    +user: App\Entity\User {#4269 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "You wasted three hours so you can share this knowledge :D"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1701917777 {#4251
      date: 2023-12-07 03:56:17.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4257 …}
    +nested: Doctrine\ORM\PersistentCollection {#4259 …}
    +votes: Doctrine\ORM\PersistentCollection {#4261 …}
    +reports: Doctrine\ORM\PersistentCollection {#4263 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4265 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4267 …}
    -id: 172807
    -bodyTs: "'d':11 'hour':4 'knowledg':10 'share':8 'three':3 'wast':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4933087"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701155533 {#4252
      date: 2023-11-28 08:12:13.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4256}
  +body: "True, now *you* have the power to find your files manually!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1701157228 {#4442
    date: 2023-11-28 08:40:28.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Azzk1kr@feddit.nl"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4445 …}
  +nested: Doctrine\ORM\PersistentCollection {#4447 …}
  +votes: Doctrine\ORM\PersistentCollection {#4449 …}
  +reports: Doctrine\ORM\PersistentCollection {#4451 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4453 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4455 …}
  -id: 172839
  -bodyTs: "'file':10 'find':8 'manual':11 'power':6 'true':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4064957"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701157228 {#4443
    date: 2023-11-28 08:40:28.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
39 DENIED edit
App\Entity\EntryComment {#4444
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4256
    +user: App\Entity\User {#4269 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "You wasted three hours so you can share this knowledge :D"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1701917777 {#4251
      date: 2023-12-07 03:56:17.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4257 …}
    +nested: Doctrine\ORM\PersistentCollection {#4259 …}
    +votes: Doctrine\ORM\PersistentCollection {#4261 …}
    +reports: Doctrine\ORM\PersistentCollection {#4263 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4265 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4267 …}
    -id: 172807
    -bodyTs: "'d':11 'hour':4 'knowledg':10 'share':8 'three':3 'wast':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4933087"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701155533 {#4252
      date: 2023-11-28 08:12:13.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4256}
  +body: "True, now *you* have the power to find your files manually!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1701157228 {#4442
    date: 2023-11-28 08:40:28.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Azzk1kr@feddit.nl"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4445 …}
  +nested: Doctrine\ORM\PersistentCollection {#4447 …}
  +votes: Doctrine\ORM\PersistentCollection {#4449 …}
  +reports: Doctrine\ORM\PersistentCollection {#4451 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4453 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4455 …}
  -id: 172839
  -bodyTs: "'file':10 'find':8 'manual':11 'power':6 'true':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4064957"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701157228 {#4443
    date: 2023-11-28 08:40:28.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
40 DENIED moderate
App\Entity\EntryComment {#4444
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4256
    +user: App\Entity\User {#4269 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "You wasted three hours so you can share this knowledge :D"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1701917777 {#4251
      date: 2023-12-07 03:56:17.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4257 …}
    +nested: Doctrine\ORM\PersistentCollection {#4259 …}
    +votes: Doctrine\ORM\PersistentCollection {#4261 …}
    +reports: Doctrine\ORM\PersistentCollection {#4263 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4265 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4267 …}
    -id: 172807
    -bodyTs: "'d':11 'hour':4 'knowledg':10 'share':8 'three':3 'wast':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nl/comment/4933087"
    +editedAt: null
    +createdAt: DateTimeImmutable @1701155533 {#4252
      date: 2023-11-28 08:12:13.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4256}
  +body: "True, now *you* have the power to find your files manually!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1701157228 {#4442
    date: 2023-11-28 08:40:28.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Azzk1kr@feddit.nl"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4445 …}
  +nested: Doctrine\ORM\PersistentCollection {#4447 …}
  +votes: Doctrine\ORM\PersistentCollection {#4449 …}
  +reports: Doctrine\ORM\PersistentCollection {#4451 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4453 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4455 …}
  -id: 172839
  -bodyTs: "'file':10 'find':8 'manual':11 'power':6 'true':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4064957"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701157228 {#4443
    date: 2023-11-28 08:40:28.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
41 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
42 DENIED moderate
App\Entity\EntryComment {#4330
  +user: App\Entity\User {#4343 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Sounds like a good time to me!! Hey and look at all that wasted space you found 😹"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 5
  +score: 0
  +lastActive: DateTime @1701131889 {#4325
    date: 2023-11-28 01:38:09.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4331 …}
  +nested: Doctrine\ORM\PersistentCollection {#4333 …}
  +votes: Doctrine\ORM\PersistentCollection {#4335 …}
  +reports: Doctrine\ORM\PersistentCollection {#4337 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4339 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4341 …}
  -id: 172098
  -bodyTs: "'found':17 'good':4 'hey':8 'like':2 'look':10 'sound':1 'space':15 'time':5 'wast':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5634494"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701131889 {#4326
    date: 2023-11-28 01:38:09.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
43 DENIED edit
App\Entity\EntryComment {#4330
  +user: App\Entity\User {#4343 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Sounds like a good time to me!! Hey and look at all that wasted space you found 😹"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 5
  +score: 0
  +lastActive: DateTime @1701131889 {#4325
    date: 2023-11-28 01:38:09.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4331 …}
  +nested: Doctrine\ORM\PersistentCollection {#4333 …}
  +votes: Doctrine\ORM\PersistentCollection {#4335 …}
  +reports: Doctrine\ORM\PersistentCollection {#4337 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4339 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4341 …}
  -id: 172098
  -bodyTs: "'found':17 'good':4 'hey':8 'like':2 'look':10 'sound':1 'space':15 'time':5 'wast':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5634494"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701131889 {#4326
    date: 2023-11-28 01:38:09.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
44 DENIED moderate
App\Entity\EntryComment {#4330
  +user: App\Entity\User {#4343 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Sounds like a good time to me!! Hey and look at all that wasted space you found 😹"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 5
  +score: 0
  +lastActive: DateTime @1701131889 {#4325
    date: 2023-11-28 01:38:09.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4331 …}
  +nested: Doctrine\ORM\PersistentCollection {#4333 …}
  +votes: Doctrine\ORM\PersistentCollection {#4335 …}
  +reports: Doctrine\ORM\PersistentCollection {#4337 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4339 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4341 …}
  -id: 172098
  -bodyTs: "'found':17 'good':4 'hey':8 'like':2 'look':10 'sound':1 'space':15 'time':5 'wast':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5634494"
  +editedAt: null
  +createdAt: DateTimeImmutable @1701131889 {#4326
    date: 2023-11-28 01:38:09.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
45 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
46 DENIED moderate
App\Entity\EntryComment {#4404
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Tried a different way:\n
    \n
    ```\n
    \n
    <span style="color:#323232;"> filefrag -v testfile \n
    </span><span style="color:#323232;">Filesystem type is: ef53\n
    </span><span style="color:#323232;">File size of testfile is 6 (1 block of 4096 bytes)\n
    </span><span style="color:#323232;"> ext:     logical_offset:        physical_offset: length:   expected: flags:\n
    </span><span style="color:#323232;">   0:        0..       0:    4660742..   4660742:      1:             last,eof\n
    </span>\n
    ```\n
    \n
    Went to offset 4660742 in wxhexeditor, but still when I copy out the hex and convert to ascii, it’s nonsense
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1701118421 {#4398
    date: 2023-11-27 21:53:41.0 +01:00
  }
  +ip: null
  +tags: [
    "323232"
  ]
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4405 …}
  +nested: Doctrine\ORM\PersistentCollection {#4407 …}
  +votes: Doctrine\ORM\PersistentCollection {#4409 …}
  +reports: Doctrine\ORM\PersistentCollection {#4411 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4413 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4415 …}
  -id: 171414
  -bodyTs: "'..':33,36 '0':31,32,34 '1':18,38 '4096':21 '4660742':35,37,44 '6':17 'ascii':58 'block':19 'byte':22 'convert':56 'copi':51 'differ':3 'ef53':11 'eof':40 'expect':29 'ext':23 'file':12 'filefrag':5 'filesystem':8 'flag':30 'hex':54 'last':39 'length':28 'logic':24 'nonsens':61 'offset':25,27,43 'physic':26 'size':13 'still':48 'testfil':7,15 'tri':1 'type':9 'v':6 'way':4 'went':41 'wxhexeditor':46"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4055140"
  +editedAt: DateTimeImmutable @1701853023 {#4399
    date: 2023-12-06 09:57:03.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701118421 {#4400
    date: 2023-11-27 21:53:41.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
47 DENIED edit
App\Entity\EntryComment {#4404
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Tried a different way:\n
    \n
    ```\n
    \n
    <span style="color:#323232;"> filefrag -v testfile \n
    </span><span style="color:#323232;">Filesystem type is: ef53\n
    </span><span style="color:#323232;">File size of testfile is 6 (1 block of 4096 bytes)\n
    </span><span style="color:#323232;"> ext:     logical_offset:        physical_offset: length:   expected: flags:\n
    </span><span style="color:#323232;">   0:        0..       0:    4660742..   4660742:      1:             last,eof\n
    </span>\n
    ```\n
    \n
    Went to offset 4660742 in wxhexeditor, but still when I copy out the hex and convert to ascii, it’s nonsense
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1701118421 {#4398
    date: 2023-11-27 21:53:41.0 +01:00
  }
  +ip: null
  +tags: [
    "323232"
  ]
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4405 …}
  +nested: Doctrine\ORM\PersistentCollection {#4407 …}
  +votes: Doctrine\ORM\PersistentCollection {#4409 …}
  +reports: Doctrine\ORM\PersistentCollection {#4411 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4413 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4415 …}
  -id: 171414
  -bodyTs: "'..':33,36 '0':31,32,34 '1':18,38 '4096':21 '4660742':35,37,44 '6':17 'ascii':58 'block':19 'byte':22 'convert':56 'copi':51 'differ':3 'ef53':11 'eof':40 'expect':29 'ext':23 'file':12 'filefrag':5 'filesystem':8 'flag':30 'hex':54 'last':39 'length':28 'logic':24 'nonsens':61 'offset':25,27,43 'physic':26 'size':13 'still':48 'testfil':7,15 'tri':1 'type':9 'v':6 'way':4 'went':41 'wxhexeditor':46"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4055140"
  +editedAt: DateTimeImmutable @1701853023 {#4399
    date: 2023-12-06 09:57:03.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701118421 {#4400
    date: 2023-11-27 21:53:41.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
48 DENIED moderate
App\Entity\EntryComment {#4404
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
    +title: "FOUND file in device by hex content using wxHexEditor"
    +url: null
    +body: """
      Just having a play around, this turned out to be not as clear cut as expected.\n
      \n
      so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
      \n
      I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
      \n
      What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
      \n
      Ok, I managed to do it with dd:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">hello\n
      </span>\n
      ```\n
      \n
      but why can I not find it using wxhexeditor??\n
      \n
      EDIT:\n
      \n
      Duh, I didn’t click that offset needed to be multiplied by the block size.\n
      \n
      If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
      \n
      ![](https://files.catbox.moe/6zvhx0.png)\n
      \n
      Final conclusion:\n
      \n
      After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
      \n
      I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
      \n
      Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 11
    +favouriteCount: 37
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1701250420 {#2410
      date: 2023-11-29 10:33:40.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 17506
    -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
    -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1701203579
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3824501"
    +editedAt: DateTimeImmutable @1701860652 {#1850
      date: 2023-12-06 12:04:12.0 +01:00
    }
    +createdAt: DateTimeImmutable @1701117179 {#2420
      date: 2023-11-27 21:32:59.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    Tried a different way:\n
    \n
    ```\n
    \n
    <span style="color:#323232;"> filefrag -v testfile \n
    </span><span style="color:#323232;">Filesystem type is: ef53\n
    </span><span style="color:#323232;">File size of testfile is 6 (1 block of 4096 bytes)\n
    </span><span style="color:#323232;"> ext:     logical_offset:        physical_offset: length:   expected: flags:\n
    </span><span style="color:#323232;">   0:        0..       0:    4660742..   4660742:      1:             last,eof\n
    </span>\n
    ```\n
    \n
    Went to offset 4660742 in wxhexeditor, but still when I copy out the hex and convert to ascii, it’s nonsense
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1701118421 {#4398
    date: 2023-11-27 21:53:41.0 +01:00
  }
  +ip: null
  +tags: [
    "323232"
  ]
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4405 …}
  +nested: Doctrine\ORM\PersistentCollection {#4407 …}
  +votes: Doctrine\ORM\PersistentCollection {#4409 …}
  +reports: Doctrine\ORM\PersistentCollection {#4411 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4413 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4415 …}
  -id: 171414
  -bodyTs: "'..':33,36 '0':31,32,34 '1':18,38 '4096':21 '4660742':35,37,44 '6':17 'ascii':58 'block':19 'byte':22 'convert':56 'copi':51 'differ':3 'ef53':11 'eof':40 'expect':29 'ext':23 'file':12 'filefrag':5 'filesystem':8 'flag':30 'hex':54 'last':39 'length':28 'logic':24 'nonsens':61 'offset':25,27,43 'physic':26 'size':13 'still':48 'testfil':7,15 'tri':1 'type':9 'v':6 'way':4 'went':41 'wxhexeditor':46"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/4055140"
  +editedAt: DateTimeImmutable @1701853023 {#4399
    date: 2023-12-06 09:57:03.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701118421 {#4400
    date: 2023-11-27 21:53:41.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
49 DENIED edit
App\Entity\Magazine {#266
  +icon: Proxies\__CG__\App\Entity\Image {#247 …}
  +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 {#276
    date: 2024-10-22 09:52:22.0 +02:00
  }
  +markedForDeletionAt: null
  +tags: null
  +moderators: Doctrine\ORM\PersistentCollection {#238 …}
  +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
  +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
  +entries: Doctrine\ORM\PersistentCollection {#181 …}
  +posts: Doctrine\ORM\PersistentCollection {#139 …}
  +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
  +bans: Doctrine\ORM\PersistentCollection {#118 …}
  +reports: Doctrine\ORM\PersistentCollection {#104 …}
  +badges: Doctrine\ORM\PersistentCollection {#82 …}
  +logs: Doctrine\ORM\PersistentCollection {#72 …}
  +awards: Doctrine\ORM\PersistentCollection {#61 …}
  +categories: Doctrine\ORM\PersistentCollection {#1820 …}
  -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 {#270
    date: 2024-10-22 09:53:16.0 +02:00
  }
  +apDeletedAt: null
  +apTimeoutAt: null
  +visibility: "visible             "
  +createdAt: DateTimeImmutable @1698929468 {#272
    date: 2023-11-02 13:51:08.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS DENIED
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details