GET https://kbin.spritesserver.nl/index.php/m/linux@lemmy.ml/t/33413/Help-with-external-4TB-drive/top

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 …}
}
7.25 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.07 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 {#2413
  +user: Proxies\__CG__\App\Entity\User {#1973 …}
  +magazine: App\Entity\Magazine {#264
    +icon: Proxies\__CG__\App\Entity\Image {#245 …}
    +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 {#274
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#236 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
    +entries: Doctrine\ORM\PersistentCollection {#179 …}
    +posts: Doctrine\ORM\PersistentCollection {#137 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
    +bans: Doctrine\ORM\PersistentCollection {#116 …}
    +reports: Doctrine\ORM\PersistentCollection {#102 …}
    +badges: Doctrine\ORM\PersistentCollection {#80 …}
    +logs: Doctrine\ORM\PersistentCollection {#70 …}
    +awards: Doctrine\ORM\PersistentCollection {#1360 …}
    +categories: Doctrine\ORM\PersistentCollection {#1792 …}
    -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 {#268
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#270
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
  +slug: "Help-with-external-4TB-drive"
  +title: "Help with external 4TB drive"
  +url: null
  +body: """
    Hi All,\n
    \n
    I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
    \n
    On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
    </span>\n
    ```\n
    \n
    The output of `fdisk -l` is as follows:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
    </span><span style="color:#323232;">Disk model: Expansion Desk\n
    </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
    </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
    </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
    </span><span style="color:#323232;">Disklabel type: dos\n
    </span><span style="color:#323232;">Disk identifier: 0x00000000\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
    </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
    </span>\n
    ```\n
    \n
    As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
    \n
    I tried overcoming this by mounting as follows:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
    </span>\n
    ```\n
    \n
    however now I have a new error:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
    </span>\n
    ```\n
    \n
    Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
    \n
    ```\n
    \n
    <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
    </span>\n
    ```\n
    \n
    I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
    \n
    Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
    \n
    ```\n
    \n
    <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
    </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
    </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
    </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
    </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
    </span><span style="color:#323232;">Disklabel type: gpt\n
    </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
    </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
    </span>\n
    ```
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 18
  +favouriteCount: 45
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1729101953 {#2418
    date: 2024-10-16 20:05:53.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1408 …}
  +votes: Doctrine\ORM\PersistentCollection {#1961 …}
  +reports: Doctrine\ORM\PersistentCollection {#1972 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
  +badges: Doctrine\ORM\PersistentCollection {#2436 …}
  +children: []
  -id: 33413
  -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
  -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1706441575
  +visibility: "visible             "
  +apId: "https://aussie.zone/post/6328537"
  +editedAt: DateTimeImmutable @1729027145 {#1858
    date: 2024-10-15 23:19:05.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706355175 {#2388
    date: 2024-01-27 12:32:55.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 {#2413
  +user: Proxies\__CG__\App\Entity\User {#1973 …}
  +magazine: App\Entity\Magazine {#264
    +icon: Proxies\__CG__\App\Entity\Image {#245 …}
    +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 {#274
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#236 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
    +entries: Doctrine\ORM\PersistentCollection {#179 …}
    +posts: Doctrine\ORM\PersistentCollection {#137 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
    +bans: Doctrine\ORM\PersistentCollection {#116 …}
    +reports: Doctrine\ORM\PersistentCollection {#102 …}
    +badges: Doctrine\ORM\PersistentCollection {#80 …}
    +logs: Doctrine\ORM\PersistentCollection {#70 …}
    +awards: Doctrine\ORM\PersistentCollection {#1360 …}
    +categories: Doctrine\ORM\PersistentCollection {#1792 …}
    -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 {#268
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#270
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
  +slug: "Help-with-external-4TB-drive"
  +title: "Help with external 4TB drive"
  +url: null
  +body: """
    Hi All,\n
    \n
    I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
    \n
    On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
    </span>\n
    ```\n
    \n
    The output of `fdisk -l` is as follows:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
    </span><span style="color:#323232;">Disk model: Expansion Desk\n
    </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
    </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
    </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
    </span><span style="color:#323232;">Disklabel type: dos\n
    </span><span style="color:#323232;">Disk identifier: 0x00000000\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
    </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
    </span>\n
    ```\n
    \n
    As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
    \n
    I tried overcoming this by mounting as follows:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
    </span>\n
    ```\n
    \n
    however now I have a new error:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
    </span>\n
    ```\n
    \n
    Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
    \n
    ```\n
    \n
    <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
    </span>\n
    ```\n
    \n
    I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
    \n
    Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
    \n
    ```\n
    \n
    <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
    </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
    </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
    </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
    </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
    </span><span style="color:#323232;">Disklabel type: gpt\n
    </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
    </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
    </span>\n
    ```
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 18
  +favouriteCount: 45
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1729101953 {#2418
    date: 2024-10-16 20:05:53.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1408 …}
  +votes: Doctrine\ORM\PersistentCollection {#1961 …}
  +reports: Doctrine\ORM\PersistentCollection {#1972 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
  +badges: Doctrine\ORM\PersistentCollection {#2436 …}
  +children: []
  -id: 33413
  -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
  -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1706441575
  +visibility: "visible             "
  +apId: "https://aussie.zone/post/6328537"
  +editedAt: DateTimeImmutable @1729027145 {#1858
    date: 2024-10-15 23:19:05.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706355175 {#2388
    date: 2024-01-27 12:32:55.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 {#2413
  +user: Proxies\__CG__\App\Entity\User {#1973 …}
  +magazine: App\Entity\Magazine {#264
    +icon: Proxies\__CG__\App\Entity\Image {#245 …}
    +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 {#274
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#236 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
    +entries: Doctrine\ORM\PersistentCollection {#179 …}
    +posts: Doctrine\ORM\PersistentCollection {#137 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
    +bans: Doctrine\ORM\PersistentCollection {#116 …}
    +reports: Doctrine\ORM\PersistentCollection {#102 …}
    +badges: Doctrine\ORM\PersistentCollection {#80 …}
    +logs: Doctrine\ORM\PersistentCollection {#70 …}
    +awards: Doctrine\ORM\PersistentCollection {#1360 …}
    +categories: Doctrine\ORM\PersistentCollection {#1792 …}
    -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 {#268
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#270
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
  +slug: "Help-with-external-4TB-drive"
  +title: "Help with external 4TB drive"
  +url: null
  +body: """
    Hi All,\n
    \n
    I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
    \n
    On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
    </span>\n
    ```\n
    \n
    The output of `fdisk -l` is as follows:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
    </span><span style="color:#323232;">Disk model: Expansion Desk\n
    </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
    </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
    </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
    </span><span style="color:#323232;">Disklabel type: dos\n
    </span><span style="color:#323232;">Disk identifier: 0x00000000\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
    </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
    </span>\n
    ```\n
    \n
    As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
    \n
    I tried overcoming this by mounting as follows:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
    </span>\n
    ```\n
    \n
    however now I have a new error:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
    </span>\n
    ```\n
    \n
    Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
    \n
    ```\n
    \n
    <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
    </span>\n
    ```\n
    \n
    I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
    \n
    Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
    \n
    ```\n
    \n
    <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
    </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
    </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
    </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
    </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
    </span><span style="color:#323232;">Disklabel type: gpt\n
    </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
    </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
    </span>\n
    ```
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 18
  +favouriteCount: 45
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1729101953 {#2418
    date: 2024-10-16 20:05:53.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1408 …}
  +votes: Doctrine\ORM\PersistentCollection {#1961 …}
  +reports: Doctrine\ORM\PersistentCollection {#1972 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
  +badges: Doctrine\ORM\PersistentCollection {#2436 …}
  +children: []
  -id: 33413
  -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
  -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1706441575
  +visibility: "visible             "
  +apId: "https://aussie.zone/post/6328537"
  +editedAt: DateTimeImmutable @1729027145 {#1858
    date: 2024-10-15 23:19:05.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706355175 {#2388
    date: 2024-01-27 12:32:55.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 {#4069
  +user: App\Entity\User {#4018 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Your fdisk output shows a single partition of type ee which according to [en.wikipedia.org/wiki/GUID_Partition_Table](https://en.wikipedia.org/wiki/GUID_Partition_Table) is the type for the protective MBR partition shown by MBR tools when looking at GPT partition tables.\n
    \n
    Try using `gdisk -l` instead of show the GPT partition table.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 8
  +score: 0
  +lastActive: DateTime @1706366835 {#4078
    date: 2024-01-27 15:47:15.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4067 …}
  +nested: Doctrine\ORM\PersistentCollection {#4065 …}
  +votes: Doctrine\ORM\PersistentCollection {#4063 …}
  +reports: Doctrine\ORM\PersistentCollection {#4061 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4029 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4033 …}
  -id: 344756
  -bodyTs: "'/wiki/guid_partition_table](https://en.wikipedia.org/wiki/guid_partition_table)':16 'accord':12 'ee':10 'en.wikipedia.org':15 'en.wikipedia.org/wiki/guid_partition_table](https://en.wikipedia.org/wiki/guid_partition_table)':14 'fdisk':2 'gdisk':37 'gpt':32,43 'instead':39 'l':38 'look':30 'mbr':23,27 'output':3 'partit':7,24,33,44 'protect':22 'show':4,41 'shown':25 'singl':6 'tabl':34,45 'tool':28 'tri':35 'type':9,19 'use':36"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://sh.itjust.works/comment/8128958"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706366835 {#4010
    date: 2024-01-27 15:47:15.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 {#4069
  +user: App\Entity\User {#4018 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Your fdisk output shows a single partition of type ee which according to [en.wikipedia.org/wiki/GUID_Partition_Table](https://en.wikipedia.org/wiki/GUID_Partition_Table) is the type for the protective MBR partition shown by MBR tools when looking at GPT partition tables.\n
    \n
    Try using `gdisk -l` instead of show the GPT partition table.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 8
  +score: 0
  +lastActive: DateTime @1706366835 {#4078
    date: 2024-01-27 15:47:15.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4067 …}
  +nested: Doctrine\ORM\PersistentCollection {#4065 …}
  +votes: Doctrine\ORM\PersistentCollection {#4063 …}
  +reports: Doctrine\ORM\PersistentCollection {#4061 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4029 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4033 …}
  -id: 344756
  -bodyTs: "'/wiki/guid_partition_table](https://en.wikipedia.org/wiki/guid_partition_table)':16 'accord':12 'ee':10 'en.wikipedia.org':15 'en.wikipedia.org/wiki/guid_partition_table](https://en.wikipedia.org/wiki/guid_partition_table)':14 'fdisk':2 'gdisk':37 'gpt':32,43 'instead':39 'l':38 'look':30 'mbr':23,27 'output':3 'partit':7,24,33,44 'protect':22 'show':4,41 'shown':25 'singl':6 'tabl':34,45 'tool':28 'tri':35 'type':9,19 'use':36"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://sh.itjust.works/comment/8128958"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706366835 {#4010
    date: 2024-01-27 15:47:15.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 {#4069
  +user: App\Entity\User {#4018 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Your fdisk output shows a single partition of type ee which according to [en.wikipedia.org/wiki/GUID_Partition_Table](https://en.wikipedia.org/wiki/GUID_Partition_Table) is the type for the protective MBR partition shown by MBR tools when looking at GPT partition tables.\n
    \n
    Try using `gdisk -l` instead of show the GPT partition table.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 8
  +score: 0
  +lastActive: DateTime @1706366835 {#4078
    date: 2024-01-27 15:47:15.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4067 …}
  +nested: Doctrine\ORM\PersistentCollection {#4065 …}
  +votes: Doctrine\ORM\PersistentCollection {#4063 …}
  +reports: Doctrine\ORM\PersistentCollection {#4061 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4029 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4033 …}
  -id: 344756
  -bodyTs: "'/wiki/guid_partition_table](https://en.wikipedia.org/wiki/guid_partition_table)':16 'accord':12 'ee':10 'en.wikipedia.org':15 'en.wikipedia.org/wiki/guid_partition_table](https://en.wikipedia.org/wiki/guid_partition_table)':14 'fdisk':2 'gdisk':37 'gpt':32,43 'instead':39 'l':38 'look':30 'mbr':23,27 'output':3 'partit':7,24,33,44 'protect':22 'show':4,41 'shown':25 'singl':6 'tabl':34,45 'tool':28 'tri':35 'type':9,19 'use':36"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://sh.itjust.works/comment/8128958"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706366835 {#4010
    date: 2024-01-27 15:47:15.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 {#4107
  +user: App\Entity\User {#4097 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    I think the first time you are trying to mount the drive and not the partition “sudo mount /dev/sdc /mnt” and on the second and third attempt have the sdc1 right, but need to make a folder under mnt to mount the drive onto. Make a folder like ‘tempdrive’ under /mnt and then try it with this since you said it was an ext4 filesystem. Note, you can name it whatever you want I just picked that as an example:\n
    \n
    cd /mnt\n
    \n
    sudo mkdir tempdrive\n
    \n
    sudo mount /dev/sdc1 /mnt/tempdrive\n
    \n
    If it doesn’t recognize the filesystem then use -t\n
    \n
    sudo mount -t ext4 /dev/sdc1 /mnt/tempdrive\n
    \n
    And yes, once you get it down, an fstab entry will make this mount every time, but I would use the uuid in the fstab. I have two mounted on a machine like this in my /etc/fstab:\n
    \n
    UUID=“6a95603a-2112-4c4d-ad4d-e146e646a74a” /media/largedrive ext4 auto,nofail,noatime,rw,user 0 0\n
    \n
    UUID=“3E31-540B” /media/new4tbdrive exfat auto,nofail,noatime,rw,user 0 0
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1706369958 {#4121
    date: 2024-01-27 16:39:18.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4112 …}
  +nested: Doctrine\ORM\PersistentCollection {#4111 …}
  +votes: Doctrine\ORM\PersistentCollection {#4101 …}
  +reports: Doctrine\ORM\PersistentCollection {#4104 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4102 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4100 …}
  -id: 344848
  -bodyTs: "'-2112':145 '-4':146 '-540':162 '/dev/sdc':19 '/dev/sdc1':88,104 '/etc/fstab':142 '/media/largedrive':151 '/media/new4tbdrive':164 '/mnt':20,51,82 '/mnt/tempdrive':89,105 '0':158,159,171,172 '3e31':161 '6a95603a':144 'ad4d':149 'attempt':27 'auto':153,166 'b':163 'c4d':148 'c4d-ad4d-e146e646a74a':147 'cd':81 'doesn':92 'drive':12,43 'e146e646a74a':150 'entri':115 'everi':120 'exampl':80 'exfat':165 'ext4':64,103,152 'filesystem':65,96 'first':4 'folder':37,47 'fstab':114,130 'get':110 'like':48,138 'machin':137 'make':35,45,117 'mkdir':84 'mnt':39 'mount':10,18,41,87,101,119,134 'name':69 'need':33 'noatim':155,168 'nofail':154,167 'note':66 'onto':44 'partit':16 'pick':76 'recogn':94 'right':31 'rw':156,169 'said':60 'sdc1':30 'second':24 'sinc':58 'sudo':17,83,86,100 'tempdriv':49,85 'think':2 'third':26 'time':5,121 'tri':8,54 'two':133 'use':98,125 'user':157,170 'uuid':127,143,160 'want':73 'whatev':71 'would':124 'yes':107"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://sh.itjust.works/comment/8130372"
  +editedAt: DateTimeImmutable @1728972899 {#4119
    date: 2024-10-15 08:14:59.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706369958 {#4120
    date: 2024-01-27 16:39:18.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 {#4107
  +user: App\Entity\User {#4097 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    I think the first time you are trying to mount the drive and not the partition “sudo mount /dev/sdc /mnt” and on the second and third attempt have the sdc1 right, but need to make a folder under mnt to mount the drive onto. Make a folder like ‘tempdrive’ under /mnt and then try it with this since you said it was an ext4 filesystem. Note, you can name it whatever you want I just picked that as an example:\n
    \n
    cd /mnt\n
    \n
    sudo mkdir tempdrive\n
    \n
    sudo mount /dev/sdc1 /mnt/tempdrive\n
    \n
    If it doesn’t recognize the filesystem then use -t\n
    \n
    sudo mount -t ext4 /dev/sdc1 /mnt/tempdrive\n
    \n
    And yes, once you get it down, an fstab entry will make this mount every time, but I would use the uuid in the fstab. I have two mounted on a machine like this in my /etc/fstab:\n
    \n
    UUID=“6a95603a-2112-4c4d-ad4d-e146e646a74a” /media/largedrive ext4 auto,nofail,noatime,rw,user 0 0\n
    \n
    UUID=“3E31-540B” /media/new4tbdrive exfat auto,nofail,noatime,rw,user 0 0
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1706369958 {#4121
    date: 2024-01-27 16:39:18.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4112 …}
  +nested: Doctrine\ORM\PersistentCollection {#4111 …}
  +votes: Doctrine\ORM\PersistentCollection {#4101 …}
  +reports: Doctrine\ORM\PersistentCollection {#4104 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4102 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4100 …}
  -id: 344848
  -bodyTs: "'-2112':145 '-4':146 '-540':162 '/dev/sdc':19 '/dev/sdc1':88,104 '/etc/fstab':142 '/media/largedrive':151 '/media/new4tbdrive':164 '/mnt':20,51,82 '/mnt/tempdrive':89,105 '0':158,159,171,172 '3e31':161 '6a95603a':144 'ad4d':149 'attempt':27 'auto':153,166 'b':163 'c4d':148 'c4d-ad4d-e146e646a74a':147 'cd':81 'doesn':92 'drive':12,43 'e146e646a74a':150 'entri':115 'everi':120 'exampl':80 'exfat':165 'ext4':64,103,152 'filesystem':65,96 'first':4 'folder':37,47 'fstab':114,130 'get':110 'like':48,138 'machin':137 'make':35,45,117 'mkdir':84 'mnt':39 'mount':10,18,41,87,101,119,134 'name':69 'need':33 'noatim':155,168 'nofail':154,167 'note':66 'onto':44 'partit':16 'pick':76 'recogn':94 'right':31 'rw':156,169 'said':60 'sdc1':30 'second':24 'sinc':58 'sudo':17,83,86,100 'tempdriv':49,85 'think':2 'third':26 'time':5,121 'tri':8,54 'two':133 'use':98,125 'user':157,170 'uuid':127,143,160 'want':73 'whatev':71 'would':124 'yes':107"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://sh.itjust.works/comment/8130372"
  +editedAt: DateTimeImmutable @1728972899 {#4119
    date: 2024-10-15 08:14:59.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706369958 {#4120
    date: 2024-01-27 16:39:18.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 {#4107
  +user: App\Entity\User {#4097 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    I think the first time you are trying to mount the drive and not the partition “sudo mount /dev/sdc /mnt” and on the second and third attempt have the sdc1 right, but need to make a folder under mnt to mount the drive onto. Make a folder like ‘tempdrive’ under /mnt and then try it with this since you said it was an ext4 filesystem. Note, you can name it whatever you want I just picked that as an example:\n
    \n
    cd /mnt\n
    \n
    sudo mkdir tempdrive\n
    \n
    sudo mount /dev/sdc1 /mnt/tempdrive\n
    \n
    If it doesn’t recognize the filesystem then use -t\n
    \n
    sudo mount -t ext4 /dev/sdc1 /mnt/tempdrive\n
    \n
    And yes, once you get it down, an fstab entry will make this mount every time, but I would use the uuid in the fstab. I have two mounted on a machine like this in my /etc/fstab:\n
    \n
    UUID=“6a95603a-2112-4c4d-ad4d-e146e646a74a” /media/largedrive ext4 auto,nofail,noatime,rw,user 0 0\n
    \n
    UUID=“3E31-540B” /media/new4tbdrive exfat auto,nofail,noatime,rw,user 0 0
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1706369958 {#4121
    date: 2024-01-27 16:39:18.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4112 …}
  +nested: Doctrine\ORM\PersistentCollection {#4111 …}
  +votes: Doctrine\ORM\PersistentCollection {#4101 …}
  +reports: Doctrine\ORM\PersistentCollection {#4104 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4102 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4100 …}
  -id: 344848
  -bodyTs: "'-2112':145 '-4':146 '-540':162 '/dev/sdc':19 '/dev/sdc1':88,104 '/etc/fstab':142 '/media/largedrive':151 '/media/new4tbdrive':164 '/mnt':20,51,82 '/mnt/tempdrive':89,105 '0':158,159,171,172 '3e31':161 '6a95603a':144 'ad4d':149 'attempt':27 'auto':153,166 'b':163 'c4d':148 'c4d-ad4d-e146e646a74a':147 'cd':81 'doesn':92 'drive':12,43 'e146e646a74a':150 'entri':115 'everi':120 'exampl':80 'exfat':165 'ext4':64,103,152 'filesystem':65,96 'first':4 'folder':37,47 'fstab':114,130 'get':110 'like':48,138 'machin':137 'make':35,45,117 'mkdir':84 'mnt':39 'mount':10,18,41,87,101,119,134 'name':69 'need':33 'noatim':155,168 'nofail':154,167 'note':66 'onto':44 'partit':16 'pick':76 'recogn':94 'right':31 'rw':156,169 'said':60 'sdc1':30 'second':24 'sinc':58 'sudo':17,83,86,100 'tempdriv':49,85 'think':2 'third':26 'time':5,121 'tri':8,54 'two':133 'use':98,125 'user':157,170 'uuid':127,143,160 'want':73 'whatev':71 'would':124 'yes':107"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://sh.itjust.works/comment/8130372"
  +editedAt: DateTimeImmutable @1728972899 {#4119
    date: 2024-10-15 08:14:59.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706369958 {#4120
    date: 2024-01-27 16:39:18.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 {#4183
  +user: App\Entity\User {#4196 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Commenting because id also like to know.\n
    \n
    In my case I resorted to using another enclosure/ adapter
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1728956465 {#4178
    date: 2024-10-15 03:41:05.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +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: 344510
  -bodyTs: "'adapt':17 'also':4 'anoth':15 'case':10 'comment':1 'enclosur':16 'id':3 'know':7 'like':5 'resort':12 'use':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/7062516"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706357387 {#4179
    date: 2024-01-27 13:09:47.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 {#4183
  +user: App\Entity\User {#4196 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Commenting because id also like to know.\n
    \n
    In my case I resorted to using another enclosure/ adapter
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1728956465 {#4178
    date: 2024-10-15 03:41:05.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +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: 344510
  -bodyTs: "'adapt':17 'also':4 'anoth':15 'case':10 'comment':1 'enclosur':16 'id':3 'know':7 'like':5 'resort':12 'use':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/7062516"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706357387 {#4179
    date: 2024-01-27 13:09:47.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 {#4183
  +user: App\Entity\User {#4196 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Commenting because id also like to know.\n
    \n
    In my case I resorted to using another enclosure/ adapter
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1728956465 {#4178
    date: 2024-10-15 03:41:05.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +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: 344510
  -bodyTs: "'adapt':17 'also':4 'anoth':15 'case':10 'comment':1 'enclosur':16 'id':3 'know':7 'like':5 'resort':12 'use':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/7062516"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706357387 {#4179
    date: 2024-01-27 13:09:47.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 {#4256
  +user: App\Entity\User {#4269 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "I have no experience in this specific matter, but you could look up [how to switch the sector size from 512 bytes to 4096](https://unix.stackexchange.com/questions/562571/switching-hdd-sector-size-to-4096-bytes) and, you know, just do the opposite."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1706362330 {#4251
    date: 2024-01-27 14:32:10.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +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: 344639
  -bodyTs: "'/questions/562571/switching-hdd-sector-size-to-4096-bytes)':27 '4096':24 '512':21 'byte':22 'could':11 'experi':4 'know':30 'look':12 'matter':8 'opposit':34 'sector':18 'size':19 'specif':7 'switch':16 'unix.stackexchange.com':26 'unix.stackexchange.com/questions/562571/switching-hdd-sector-size-to-4096-bytes)':25"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ca/comment/6767101"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706362330 {#4252
    date: 2024-01-27 14:32:10.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 {#4256
  +user: App\Entity\User {#4269 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "I have no experience in this specific matter, but you could look up [how to switch the sector size from 512 bytes to 4096](https://unix.stackexchange.com/questions/562571/switching-hdd-sector-size-to-4096-bytes) and, you know, just do the opposite."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1706362330 {#4251
    date: 2024-01-27 14:32:10.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +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: 344639
  -bodyTs: "'/questions/562571/switching-hdd-sector-size-to-4096-bytes)':27 '4096':24 '512':21 'byte':22 'could':11 'experi':4 'know':30 'look':12 'matter':8 'opposit':34 'sector':18 'size':19 'specif':7 'switch':16 'unix.stackexchange.com':26 'unix.stackexchange.com/questions/562571/switching-hdd-sector-size-to-4096-bytes)':25"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ca/comment/6767101"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706362330 {#4252
    date: 2024-01-27 14:32:10.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 {#4256
  +user: App\Entity\User {#4269 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "I have no experience in this specific matter, but you could look up [how to switch the sector size from 512 bytes to 4096](https://unix.stackexchange.com/questions/562571/switching-hdd-sector-size-to-4096-bytes) and, you know, just do the opposite."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1706362330 {#4251
    date: 2024-01-27 14:32:10.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +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: 344639
  -bodyTs: "'/questions/562571/switching-hdd-sector-size-to-4096-bytes)':27 '4096':24 '512':21 'byte':22 'could':11 'experi':4 'know':30 'look':12 'matter':8 'opposit':34 'sector':18 'size':19 'specif':7 'switch':16 'unix.stackexchange.com':26 'unix.stackexchange.com/questions/562571/switching-hdd-sector-size-to-4096-bytes)':25"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ca/comment/6767101"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706362330 {#4252
    date: 2024-01-27 14:32:10.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 {#4329
  +user: App\Entity\User {#4342 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Have you tried any GUI tools, e.g. Gnome Disks?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1728982406 {#4324
    date: 2024-10-15 10:53:26.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4330 …}
  +nested: Doctrine\ORM\PersistentCollection {#4332 …}
  +votes: Doctrine\ORM\PersistentCollection {#4334 …}
  +reports: Doctrine\ORM\PersistentCollection {#4336 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4338 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4340 …}
  -id: 344519
  -bodyTs: "'disk':9 'e.g':7 'gnome':8 'gui':5 'tool':6 'tri':3"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/7781016"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706357609 {#4325
    date: 2024-01-27 13:13:29.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 {#4329
  +user: App\Entity\User {#4342 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Have you tried any GUI tools, e.g. Gnome Disks?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1728982406 {#4324
    date: 2024-10-15 10:53:26.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4330 …}
  +nested: Doctrine\ORM\PersistentCollection {#4332 …}
  +votes: Doctrine\ORM\PersistentCollection {#4334 …}
  +reports: Doctrine\ORM\PersistentCollection {#4336 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4338 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4340 …}
  -id: 344519
  -bodyTs: "'disk':9 'e.g':7 'gnome':8 'gui':5 'tool':6 'tri':3"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/7781016"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706357609 {#4325
    date: 2024-01-27 13:13:29.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 {#4329
  +user: App\Entity\User {#4342 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Have you tried any GUI tools, e.g. Gnome Disks?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1728982406 {#4324
    date: 2024-10-15 10:53:26.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4330 …}
  +nested: Doctrine\ORM\PersistentCollection {#4332 …}
  +votes: Doctrine\ORM\PersistentCollection {#4334 …}
  +reports: Doctrine\ORM\PersistentCollection {#4336 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4338 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4340 …}
  -id: 344519
  -bodyTs: "'disk':9 'e.g':7 'gnome':8 'gui':5 'tool':6 'tri':3"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/7781016"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706357609 {#4325
    date: 2024-01-27 13:13:29.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 {#4402
  +user: App\Entity\User {#4415 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Why were you using Windows XP? I don’t think it was even optimized for such large drives"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1729101953 {#4397
    date: 2024-10-16 20:05:53.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4403 …}
  +nested: Doctrine\ORM\PersistentCollection {#4405 …}
  +votes: Doctrine\ORM\PersistentCollection {#4407 …}
  +reports: Doctrine\ORM\PersistentCollection {#4409 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4411 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4413 …}
  -id: 345710
  -bodyTs: "'drive':18 'even':13 'larg':17 'optim':14 'think':10 'use':4 'window':5 'xp':6"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/6750337"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706391340 {#4398
    date: 2024-01-27 22:35: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
27 DENIED edit
App\Entity\EntryComment {#4402
  +user: App\Entity\User {#4415 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Why were you using Windows XP? I don’t think it was even optimized for such large drives"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1729101953 {#4397
    date: 2024-10-16 20:05:53.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4403 …}
  +nested: Doctrine\ORM\PersistentCollection {#4405 …}
  +votes: Doctrine\ORM\PersistentCollection {#4407 …}
  +reports: Doctrine\ORM\PersistentCollection {#4409 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4411 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4413 …}
  -id: 345710
  -bodyTs: "'drive':18 'even':13 'larg':17 'optim':14 'think':10 'use':4 'window':5 'xp':6"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/6750337"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706391340 {#4398
    date: 2024-01-27 22:35: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
28 DENIED moderate
App\Entity\EntryComment {#4402
  +user: App\Entity\User {#4415 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Why were you using Windows XP? I don’t think it was even optimized for such large drives"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1729101953 {#4397
    date: 2024-10-16 20:05:53.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4403 …}
  +nested: Doctrine\ORM\PersistentCollection {#4405 …}
  +votes: Doctrine\ORM\PersistentCollection {#4407 …}
  +reports: Doctrine\ORM\PersistentCollection {#4409 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4411 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4413 …}
  -id: 345710
  -bodyTs: "'drive':18 'even':13 'larg':17 'optim':14 'think':10 'use':4 'window':5 'xp':6"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/6750337"
  +editedAt: null
  +createdAt: DateTimeImmutable @1706391340 {#4398
    date: 2024-01-27 22:35: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
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 {#4476
  +user: App\Entity\User {#4489 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Looks like ee is legacy mbr type with an EFI entry right after it, it could be that somebody has solved mounting this if you deep dive. And maybe an additional package is needed. Buy are you able to remount to sata and just transfer data? becuase you would want to reformat this to a modern GPT and filesystem at some point. Or see if you can pass it through to an XP VM for data transfer."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1706383640 {#4470
    date: 2024-01-27 20:27:20.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4477 …}
  +nested: Doctrine\ORM\PersistentCollection {#4479 …}
  +votes: Doctrine\ORM\PersistentCollection {#4481 …}
  +reports: Doctrine\ORM\PersistentCollection {#4483 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4485 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4487 …}
  -id: 345379
  -bodyTs: "'abl':38 'addit':31 'becuas':47 'buy':35 'could':16 'data':46,76 'deep':26 'dive':27 'ee':3 'efi':10 'entri':11 'filesystem':59 'gpt':57 'legaci':5 'like':2 'look':1 'mayb':29 'mbr':6 'modern':56 'mount':22 'need':34 'packag':32 'pass':68 'point':62 'reformat':52 'remount':40 'right':12 'sata':42 'see':64 'solv':21 'somebodi':19 'transfer':45,77 'type':7 'vm':74 'want':50 'would':49 'xp':73"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ca/comment/6774292"
  +editedAt: DateTimeImmutable @1729017450 {#4471
    date: 2024-10-15 20:37:30.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706383640 {#4472
    date: 2024-01-27 20:27:20.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 {#4476
  +user: App\Entity\User {#4489 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Looks like ee is legacy mbr type with an EFI entry right after it, it could be that somebody has solved mounting this if you deep dive. And maybe an additional package is needed. Buy are you able to remount to sata and just transfer data? becuase you would want to reformat this to a modern GPT and filesystem at some point. Or see if you can pass it through to an XP VM for data transfer."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1706383640 {#4470
    date: 2024-01-27 20:27:20.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4477 …}
  +nested: Doctrine\ORM\PersistentCollection {#4479 …}
  +votes: Doctrine\ORM\PersistentCollection {#4481 …}
  +reports: Doctrine\ORM\PersistentCollection {#4483 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4485 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4487 …}
  -id: 345379
  -bodyTs: "'abl':38 'addit':31 'becuas':47 'buy':35 'could':16 'data':46,76 'deep':26 'dive':27 'ee':3 'efi':10 'entri':11 'filesystem':59 'gpt':57 'legaci':5 'like':2 'look':1 'mayb':29 'mbr':6 'modern':56 'mount':22 'need':34 'packag':32 'pass':68 'point':62 'reformat':52 'remount':40 'right':12 'sata':42 'see':64 'solv':21 'somebodi':19 'transfer':45,77 'type':7 'vm':74 'want':50 'would':49 'xp':73"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ca/comment/6774292"
  +editedAt: DateTimeImmutable @1729017450 {#4471
    date: 2024-10-15 20:37:30.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706383640 {#4472
    date: 2024-01-27 20:27:20.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 {#4476
  +user: App\Entity\User {#4489 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Looks like ee is legacy mbr type with an EFI entry right after it, it could be that somebody has solved mounting this if you deep dive. And maybe an additional package is needed. Buy are you able to remount to sata and just transfer data? becuase you would want to reformat this to a modern GPT and filesystem at some point. Or see if you can pass it through to an XP VM for data transfer."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1706383640 {#4470
    date: 2024-01-27 20:27:20.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4477 …}
  +nested: Doctrine\ORM\PersistentCollection {#4479 …}
  +votes: Doctrine\ORM\PersistentCollection {#4481 …}
  +reports: Doctrine\ORM\PersistentCollection {#4483 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4485 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4487 …}
  -id: 345379
  -bodyTs: "'abl':38 'addit':31 'becuas':47 'buy':35 'could':16 'data':46,76 'deep':26 'dive':27 'ee':3 'efi':10 'entri':11 'filesystem':59 'gpt':57 'legaci':5 'like':2 'look':1 'mayb':29 'mbr':6 'modern':56 'mount':22 'need':34 'packag':32 'pass':68 'point':62 'reformat':52 'remount':40 'right':12 'sata':42 'see':64 'solv':21 'somebodi':19 'transfer':45,77 'type':7 'vm':74 'want':50 'would':49 'xp':73"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ca/comment/6774292"
  +editedAt: DateTimeImmutable @1729017450 {#4471
    date: 2024-10-15 20:37:30.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706383640 {#4472
    date: 2024-01-27 20:27:20.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 {#4550
  +user: App\Entity\User {#4563 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Few years ago I had a collection of maybe fifteen old disks, which I wanted to get rid of, by means of recycling. First I wanted to check the content and then format all so I put them in an external enclosure. It turned out that some disks were unusable. A closer inspection showed that these were all a certain brand and type (Forgot whether it was Seagate or Maxtor or WD). These disks would probably still do fine in a desktop or server computer (Which I no longer had at home) but not with the external enclosure. Perhaps your enclosure is the bottleneck here as well."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1706360695 {#4544
    date: 2024-01-27 14:04:55.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4551 …}
  +nested: Doctrine\ORM\PersistentCollection {#4553 …}
  +votes: Doctrine\ORM\PersistentCollection {#4555 …}
  +reports: Doctrine\ORM\PersistentCollection {#4557 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4559 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4561 …}
  -id: 344605
  -bodyTs: "'ago':3 'bottleneck':104 'brand':61 'certain':60 'check':28 'closer':52 'collect':7 'comput':85 'content':30 'desktop':82 'disk':12,48,74 'enclosur':42,98,101 'extern':41,97 'fifteen':10 'fine':79 'first':24 'forgot':64 'format':33 'get':17 'home':92 'inspect':53 'longer':89 'maxtor':70 'mayb':9 'mean':21 'old':11 'perhap':99 'probabl':76 'put':37 'recycl':23 'rid':18 'seagat':68 'server':84 'show':54 'still':77 'turn':44 'type':63 'unus':50 'want':15,26 'wd':72 'well':107 'whether':65 'would':75 'year':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/7781710"
  +editedAt: DateTimeImmutable @1728952289 {#4545
    date: 2024-10-15 02:31:29.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706360695 {#4546
    date: 2024-01-27 14:04:55.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 {#4550
  +user: App\Entity\User {#4563 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Few years ago I had a collection of maybe fifteen old disks, which I wanted to get rid of, by means of recycling. First I wanted to check the content and then format all so I put them in an external enclosure. It turned out that some disks were unusable. A closer inspection showed that these were all a certain brand and type (Forgot whether it was Seagate or Maxtor or WD). These disks would probably still do fine in a desktop or server computer (Which I no longer had at home) but not with the external enclosure. Perhaps your enclosure is the bottleneck here as well."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1706360695 {#4544
    date: 2024-01-27 14:04:55.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4551 …}
  +nested: Doctrine\ORM\PersistentCollection {#4553 …}
  +votes: Doctrine\ORM\PersistentCollection {#4555 …}
  +reports: Doctrine\ORM\PersistentCollection {#4557 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4559 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4561 …}
  -id: 344605
  -bodyTs: "'ago':3 'bottleneck':104 'brand':61 'certain':60 'check':28 'closer':52 'collect':7 'comput':85 'content':30 'desktop':82 'disk':12,48,74 'enclosur':42,98,101 'extern':41,97 'fifteen':10 'fine':79 'first':24 'forgot':64 'format':33 'get':17 'home':92 'inspect':53 'longer':89 'maxtor':70 'mayb':9 'mean':21 'old':11 'perhap':99 'probabl':76 'put':37 'recycl':23 'rid':18 'seagat':68 'server':84 'show':54 'still':77 'turn':44 'type':63 'unus':50 'want':15,26 'wd':72 'well':107 'whether':65 'would':75 'year':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/7781710"
  +editedAt: DateTimeImmutable @1728952289 {#4545
    date: 2024-10-15 02:31:29.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706360695 {#4546
    date: 2024-01-27 14:04:55.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 {#4550
  +user: App\Entity\User {#4563 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: "Few years ago I had a collection of maybe fifteen old disks, which I wanted to get rid of, by means of recycling. First I wanted to check the content and then format all so I put them in an external enclosure. It turned out that some disks were unusable. A closer inspection showed that these were all a certain brand and type (Forgot whether it was Seagate or Maxtor or WD). These disks would probably still do fine in a desktop or server computer (Which I no longer had at home) but not with the external enclosure. Perhaps your enclosure is the bottleneck here as well."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1706360695 {#4544
    date: 2024-01-27 14:04:55.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4551 …}
  +nested: Doctrine\ORM\PersistentCollection {#4553 …}
  +votes: Doctrine\ORM\PersistentCollection {#4555 …}
  +reports: Doctrine\ORM\PersistentCollection {#4557 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4559 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4561 …}
  -id: 344605
  -bodyTs: "'ago':3 'bottleneck':104 'brand':61 'certain':60 'check':28 'closer':52 'collect':7 'comput':85 'content':30 'desktop':82 'disk':12,48,74 'enclosur':42,98,101 'extern':41,97 'fifteen':10 'fine':79 'first':24 'forgot':64 'format':33 'get':17 'home':92 'inspect':53 'longer':89 'maxtor':70 'mayb':9 'mean':21 'old':11 'perhap':99 'probabl':76 'put':37 'recycl':23 'rid':18 'seagat':68 'server':84 'show':54 'still':77 'turn':44 'type':63 'unus':50 'want':15,26 'wd':72 'well':107 'whether':65 'would':75 'year':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/7781710"
  +editedAt: DateTimeImmutable @1728952289 {#4545
    date: 2024-10-15 02:31:29.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706360695 {#4546
    date: 2024-01-27 14:04:55.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 {#4624
  +user: App\Entity\User {#4637 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Did you try simply mounting /dev/sdc1 without the extra arguments? You also need to make a mount folder in /mnt, so\n
    \n
    sudo mkdir /mnt/mydrive\n
    \n
    Then\n
    \n
    sudo mount /dev/sdc1 /mnt/mydrive
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1728949340 {#4618
    date: 2024-10-15 01:42:20.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4625 …}
  +nested: Doctrine\ORM\PersistentCollection {#4627 …}
  +votes: Doctrine\ORM\PersistentCollection {#4629 …}
  +reports: Doctrine\ORM\PersistentCollection {#4631 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4633 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4635 …}
  -id: 344517
  -bodyTs: "'/dev/sdc1':6,28 '/mnt':20 '/mnt/mydrive':24,29 'also':12 'argument':10 'extra':9 'folder':18 'make':15 'mkdir':23 'mount':5,17,27 'need':13 'simpli':4 'sudo':22,26 'tri':3 'without':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/7062541"
  +editedAt: DateTimeImmutable @1728945144 {#4619
    date: 2024-10-15 00:32:24.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706357573 {#4620
    date: 2024-01-27 13:12:53.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 {#4624
  +user: App\Entity\User {#4637 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Did you try simply mounting /dev/sdc1 without the extra arguments? You also need to make a mount folder in /mnt, so\n
    \n
    sudo mkdir /mnt/mydrive\n
    \n
    Then\n
    \n
    sudo mount /dev/sdc1 /mnt/mydrive
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1728949340 {#4618
    date: 2024-10-15 01:42:20.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4625 …}
  +nested: Doctrine\ORM\PersistentCollection {#4627 …}
  +votes: Doctrine\ORM\PersistentCollection {#4629 …}
  +reports: Doctrine\ORM\PersistentCollection {#4631 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4633 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4635 …}
  -id: 344517
  -bodyTs: "'/dev/sdc1':6,28 '/mnt':20 '/mnt/mydrive':24,29 'also':12 'argument':10 'extra':9 'folder':18 'make':15 'mkdir':23 'mount':5,17,27 'need':13 'simpli':4 'sudo':22,26 'tri':3 'without':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/7062541"
  +editedAt: DateTimeImmutable @1728945144 {#4619
    date: 2024-10-15 00:32:24.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706357573 {#4620
    date: 2024-01-27 13:12:53.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 {#4624
  +user: App\Entity\User {#4637 …}
  +entry: App\Entity\Entry {#2413
    +user: Proxies\__CG__\App\Entity\User {#1973 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +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 {#274
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -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 {#268
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#270
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
    +slug: "Help-with-external-4TB-drive"
    +title: "Help with external 4TB drive"
    +url: null
    +body: """
      Hi All,\n
      \n
      I have a 4TB drive that was originally in a PC connected via SATA. I now wish to put it in an external enclosure and connect it via USB, however this is proving more difficult than I expected, and from what I understand it’s Windows XP’s fault.\n
      \n
      On attempting to mount the drive with `sudo mount /dev/sdc /mnt`, I receive the following error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.\n
      </span>\n
      ```\n
      \n
      The output of `fdisk -l` is as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdc: 3.64 TiB, 4000787025920 bytes, 976754645 sectors\n
      </span><span style="color:#323232;">Disk model: Expansion Desk\n
      </span><span style="color:#323232;">Units: sectors of 1 * 4096 = 4096 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: dos\n
      </span><span style="color:#323232;">Disk identifier: 0x00000000\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Boot Start        End    Sectors Size Id Type\n
      </span><span style="color:#323232;">/dev/sdc1           1 4294967295 4294967295  16T ee GPT\n
      </span>\n
      ```\n
      \n
      As can be seen, the disk is detected correctly as a 3.64TiB drive, but there is a partition that’s read as 16TB. This, AFAIK, is because the sectors are incorrectly read as 4096 bytes long when they should be 512 bytes, and this is a thing that external enclosures do to ensure MBR compatibility with Windows XP.\n
      \n
      I tried overcoming this by mounting as follows:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">$ sudo mount -o ro,offset=$((1*512)) /dev/sdc1 /mnt\n
      </span>\n
      ```\n
      \n
      however now I have a new error:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: failed to setup loop device for /dev/sdc1.\n
      </span>\n
      ```\n
      \n
      Trying to mount with `sudo mount /dev/sdc1 /mnt` only yields\n
      \n
      ```\n
      \n
      <span style="color:#323232;">mount: /mnt: special device /dev/sdc1 does not exist.\n
      </span>\n
      ```\n
      \n
      I’m at a loss as to how to mount this drive - at least, without reformatting it. Is it at all possible? Once I’ve cracked the code, can I configure `/etc/fstab` to do it automatically for me, or am I stuck in this limbo-land where I have data on my disk that’s only readable with a hacky workaround? As a last resort, I think I can plug it back in via SATA, copy all 4TB off, plug it in via USB, reformat it and copy everything back on, but I want to avoid that hassle.\n
      \n
      Edit: Output of `fdisk -l` when connected via SATA. Note the sector size is now 512 and the drive mounts happily.\n
      \n
      ```\n
      \n
      <span style="color:#323232;">Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors\n
      </span><span style="color:#323232;">Disk model: HGST HDN724040AL\n
      </span><span style="color:#323232;">Units: sectors of 1 * 512 = 512 bytes\n
      </span><span style="color:#323232;">Sector size (logical/physical): 512 bytes / 4096 bytes\n
      </span><span style="color:#323232;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes\n
      </span><span style="color:#323232;">Disklabel type: gpt\n
      </span><span style="color:#323232;">Disk identifier: 5852E3A7-A2E4-4589-9D93-F8020C2D7E54\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">Device     Start        End    Sectors  Size Type\n
      </span><span style="color:#323232;">/dev/sdb1   2048 7814035455 7814033408  3.7T Linux filesystem\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 18
    +favouriteCount: 45
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729101953 {#2418
      date: 2024-10-16 20:05:53.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1408 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1972 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 33413
    -titleTs: "'4tb':4 'drive':5 'extern':3 'help':1"
    -bodyTs: "'-9':422 '/dev/sdb':380 '/dev/sdb1':432 '/dev/sdc':61,78,96 '/dev/sdc1':142,223,240,247,255 '/etc/fstab':290 '/mnt':62,69,224,233,248,252 '0x00000000':133 '1':110,143,221,394 '16t':146 '16tb':172 '2048':433 '3.64':97,160 '3.7':381,436 '4000787025920':99 '4000787030016':383 '4096':111,112,117,119,124,126,183,403,408,410 '4294967295':144,145 '4589':421 '4tb':6,337 '512':190,222,373,395,396,401 '5852e3':417 '7814033408':435 '7814035455':434 '7814037168':385 '976754645':101 'a2e4':420 'a7':419 'a7-a2e4':418 'afaik':174 'attempt':53 'automat':294 'avoid':355 'back':331,349 'bad':73,75 'boot':135 'byte':100,113,118,120,125,127,184,191,384,397,402,404,409,411 'code':286 'codepag':80 'compat':204 'configur':289 'connect':14,28,364 'copi':335,347 'correct':157 'crack':284 'd93':424 'd93-f8020c2d7e54':423 'data':309 'desk':106 'detect':156 'devic':134,238,254,426 'difficult':37 'disk':95,103,131,154,312,379,387,415 'disklabel':128,412 'dos':130 'drive':7,57,162,270,376 'edit':358 'ee':147 'enclosur':26,199 'end':137,428 'ensur':202 'error':67,86,231 'everyth':348 'exist':258 'expans':105 'expect':40 'extern':25,198 'f8020c2d7e54':425 'fail':234 'fault':51 'fdisk':90,361 'filesystem':439 'follow':66,94,215 'fs':71 'gpt':148,414 'hacki':319 'happili':378 'hassl':357 'hdn724040al':390 'helper':82 'hgst':389 'hi':1 'howev':32,225 'i/o':121,405 'id':140 'identifi':132,416 'incorrect':180 'l':91,362 'land':305 'last':323 'least':272 'limbo':304 'limbo-land':303 'linux':438 'logical/physical':116,400 'long':185 'loop':237 'loss':263 'm':260 'mbr':203 'minimum/optimal':123,407 'miss':79 'model':104,388 'mount':55,60,68,213,217,232,243,246,251,268,377 'new':230 'note':367 'o':218 'offset':220 'option':74 'origin':10 'output':88,359 'overcom':210 'partit':167 'pc':13 'plug':329,339 'possibl':280 'program':83 'prove':35 'put':21 'read':170,181 'readabl':316 'receiv':64 'reformat':274,344 'resort':324 'ro':219 'sata':16,334,366 'sector':102,108,114,138,178,369,386,392,398,429 'seen':152 'setup':236 'size':115,122,139,370,399,406,430 'special':253 'start':136,427 'stuck':300 'sudo':59,216,245 'superblock':76 'thing':196 'think':326 'tib':98,161,382 'tri':209,241 'type':72,129,141,413,431 'understand':45 'unit':107,391 'usb':31,343 've':283 'via':15,30,333,342,365 'want':353 'window':48,206 'wish':19 'without':273 'workaround':320 'wrong':70 'xp':49,207 'yield':250"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706441575
    +visibility: "visible             "
    +apId: "https://aussie.zone/post/6328537"
    +editedAt: DateTimeImmutable @1729027145 {#1858
      date: 2024-10-15 23:19:05.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706355175 {#2388
      date: 2024-01-27 12:32:55.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Did you try simply mounting /dev/sdc1 without the extra arguments? You also need to make a mount folder in /mnt, so\n
    \n
    sudo mkdir /mnt/mydrive\n
    \n
    Then\n
    \n
    sudo mount /dev/sdc1 /mnt/mydrive
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1728949340 {#4618
    date: 2024-10-15 01:42:20.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
    "@i_am_hiding@aussie.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4625 …}
  +nested: Doctrine\ORM\PersistentCollection {#4627 …}
  +votes: Doctrine\ORM\PersistentCollection {#4629 …}
  +reports: Doctrine\ORM\PersistentCollection {#4631 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4633 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4635 …}
  -id: 344517
  -bodyTs: "'/dev/sdc1':6,28 '/mnt':20 '/mnt/mydrive':24,29 'also':12 'argument':10 'extra':9 'folder':18 'make':15 'mkdir':23 'mount':5,17,27 'need':13 'simpli':4 'sudo':22,26 'tri':3 'without':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/7062541"
  +editedAt: DateTimeImmutable @1728945144 {#4619
    date: 2024-10-15 00:32:24.0 +02:00
  }
  +createdAt: DateTimeImmutable @1706357573 {#4620
    date: 2024-01-27 13:12:53.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 edit
App\Entity\Magazine {#264
  +icon: Proxies\__CG__\App\Entity\Image {#245 …}
  +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 {#274
    date: 2024-10-22 09:52:22.0 +02:00
  }
  +markedForDeletionAt: null
  +tags: null
  +moderators: Doctrine\ORM\PersistentCollection {#236 …}
  +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
  +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
  +entries: Doctrine\ORM\PersistentCollection {#179 …}
  +posts: Doctrine\ORM\PersistentCollection {#137 …}
  +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
  +bans: Doctrine\ORM\PersistentCollection {#116 …}
  +reports: Doctrine\ORM\PersistentCollection {#102 …}
  +badges: Doctrine\ORM\PersistentCollection {#80 …}
  +logs: Doctrine\ORM\PersistentCollection {#70 …}
  +awards: Doctrine\ORM\PersistentCollection {#1360 …}
  +categories: Doctrine\ORM\PersistentCollection {#1792 …}
  -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 {#268
    date: 2024-10-22 09:53:16.0 +02:00
  }
  +apDeletedAt: null
  +apTimeoutAt: null
  +visibility: "visible             "
  +createdAt: DateTimeImmutable @1698929468 {#270
    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