1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4821
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "Do you really need 512 byte sectors for any specific reason? If not, just drop it back into the PC, backup contents, reformat, copy data back then put it back in the enclosure. Job done."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706408320 {#4819
date: 2024-01-28 03:18:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 346190
-bodyTs: "'512':5 'back':17,26,30 'backup':21 'byte':6 'content':22 'copi':24 'data':25 'done':35 'drop':15 'enclosur':33 'job':34 'need':4 'pc':20 'put':28 'realli':3 'reason':11 'reformat':23 'sector':7 'specif':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7081305"
+editedAt: null
+createdAt: DateTimeImmutable @1706408320 {#4820
date: 2024-01-28 03:18:40.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4821
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "Do you really need 512 byte sectors for any specific reason? If not, just drop it back into the PC, backup contents, reformat, copy data back then put it back in the enclosure. Job done."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706408320 {#4819
date: 2024-01-28 03:18:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 346190
-bodyTs: "'512':5 'back':17,26,30 'backup':21 'byte':6 'content':22 'copi':24 'data':25 'done':35 'drop':15 'enclosur':33 'job':34 'need':4 'pc':20 'put':28 'realli':3 'reason':11 'reformat':23 'sector':7 'specif':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7081305"
+editedAt: null
+createdAt: DateTimeImmutable @1706408320 {#4820
date: 2024-01-28 03:18:40.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4821
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "Do you really need 512 byte sectors for any specific reason? If not, just drop it back into the PC, backup contents, reformat, copy data back then put it back in the enclosure. Job done."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706408320 {#4819
date: 2024-01-28 03:18:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 346190
-bodyTs: "'512':5 'back':17,26,30 'backup':21 'byte':6 'content':22 'copi':24 'data':25 'done':35 'drop':15 'enclosur':33 'job':34 'need':4 'pc':20 'put':28 'realli':3 'reason':11 'reformat':23 'sector':7 'specif':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7081305"
+editedAt: null
+createdAt: DateTimeImmutable @1706408320 {#4820
date: 2024-01-28 03:18:40.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4845
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4821
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "Do you really need 512 byte sectors for any specific reason? If not, just drop it back into the PC, backup contents, reformat, copy data back then put it back in the enclosure. Job done."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706408320 {#4819
date: 2024-01-28 03:18:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 346190
-bodyTs: "'512':5 'back':17,26,30 'backup':21 'byte':6 'content':22 'copi':24 'data':25 'done':35 'drop':15 'enclosur':33 'job':34 'need':4 'pc':20 'put':28 'realli':3 'reason':11 'reformat':23 'sector':7 'specif':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7081305"
+editedAt: null
+createdAt: DateTimeImmutable @1706408320 {#4820
date: 2024-01-28 03:18:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "I suspect this is what I’ll have to do. I was hoping to avoid it as that’ll take a weekend of copying, but I might just have to bite the bullet."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706417303 {#4846
date: 2024-01-28 05:48:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
"@z00s@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4842 …}
+nested: Doctrine\ORM\PersistentCollection {#4838 …}
+votes: Doctrine\ORM\PersistentCollection {#4836 …}
+reports: Doctrine\ORM\PersistentCollection {#4851 …}
+favourites: Doctrine\ORM\PersistentCollection {#4853 …}
+notifications: Doctrine\ORM\PersistentCollection {#4855 …}
-id: 346444
-bodyTs: "'avoid':15 'bite':31 'bullet':33 'copi':24 'hope':13 'll':7,19 'might':27 'suspect':2 'take':20 'weekend':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6198124"
+editedAt: null
+createdAt: DateTimeImmutable @1706417303 {#4849
date: 2024-01-28 05:48:23.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\EntryComment {#4845
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4821
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "Do you really need 512 byte sectors for any specific reason? If not, just drop it back into the PC, backup contents, reformat, copy data back then put it back in the enclosure. Job done."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706408320 {#4819
date: 2024-01-28 03:18:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 346190
-bodyTs: "'512':5 'back':17,26,30 'backup':21 'byte':6 'content':22 'copi':24 'data':25 'done':35 'drop':15 'enclosur':33 'job':34 'need':4 'pc':20 'put':28 'realli':3 'reason':11 'reformat':23 'sector':7 'specif':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7081305"
+editedAt: null
+createdAt: DateTimeImmutable @1706408320 {#4820
date: 2024-01-28 03:18:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "I suspect this is what I’ll have to do. I was hoping to avoid it as that’ll take a weekend of copying, but I might just have to bite the bullet."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706417303 {#4846
date: 2024-01-28 05:48:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
"@z00s@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4842 …}
+nested: Doctrine\ORM\PersistentCollection {#4838 …}
+votes: Doctrine\ORM\PersistentCollection {#4836 …}
+reports: Doctrine\ORM\PersistentCollection {#4851 …}
+favourites: Doctrine\ORM\PersistentCollection {#4853 …}
+notifications: Doctrine\ORM\PersistentCollection {#4855 …}
-id: 346444
-bodyTs: "'avoid':15 'bite':31 'bullet':33 'copi':24 'hope':13 'll':7,19 'might':27 'suspect':2 'take':20 'weekend':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6198124"
+editedAt: null
+createdAt: DateTimeImmutable @1706417303 {#4849
date: 2024-01-28 05:48:23.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4845
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4821
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "Do you really need 512 byte sectors for any specific reason? If not, just drop it back into the PC, backup contents, reformat, copy data back then put it back in the enclosure. Job done."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706408320 {#4819
date: 2024-01-28 03:18:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 346190
-bodyTs: "'512':5 'back':17,26,30 'backup':21 'byte':6 'content':22 'copi':24 'data':25 'done':35 'drop':15 'enclosur':33 'job':34 'need':4 'pc':20 'put':28 'realli':3 'reason':11 'reformat':23 'sector':7 'specif':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7081305"
+editedAt: null
+createdAt: DateTimeImmutable @1706408320 {#4820
date: 2024-01-28 03:18:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "I suspect this is what I’ll have to do. I was hoping to avoid it as that’ll take a weekend of copying, but I might just have to bite the bullet."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706417303 {#4846
date: 2024-01-28 05:48:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
"@z00s@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4842 …}
+nested: Doctrine\ORM\PersistentCollection {#4838 …}
+votes: Doctrine\ORM\PersistentCollection {#4836 …}
+reports: Doctrine\ORM\PersistentCollection {#4851 …}
+favourites: Doctrine\ORM\PersistentCollection {#4853 …}
+notifications: Doctrine\ORM\PersistentCollection {#4855 …}
-id: 346444
-bodyTs: "'avoid':15 'bite':31 'bullet':33 'copi':24 'hope':13 'll':7,19 'might':27 'suspect':2 'take':20 'weekend':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6198124"
+editedAt: null
+createdAt: DateTimeImmutable @1706417303 {#4849
date: 2024-01-28 05:48:23.0 +01:00
}
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4872
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4845
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4821
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "Do you really need 512 byte sectors for any specific reason? If not, just drop it back into the PC, backup contents, reformat, copy data back then put it back in the enclosure. Job done."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706408320 {#4819
date: 2024-01-28 03:18:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 346190
-bodyTs: "'512':5 'back':17,26,30 'backup':21 'byte':6 'content':22 'copi':24 'data':25 'done':35 'drop':15 'enclosur':33 'job':34 'need':4 'pc':20 'put':28 'realli':3 'reason':11 'reformat':23 'sector':7 'specif':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7081305"
+editedAt: null
+createdAt: DateTimeImmutable @1706408320 {#4820
date: 2024-01-28 03:18:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "I suspect this is what I’ll have to do. I was hoping to avoid it as that’ll take a weekend of copying, but I might just have to bite the bullet."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706417303 {#4846
date: 2024-01-28 05:48:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
"@z00s@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4842 …}
+nested: Doctrine\ORM\PersistentCollection {#4838 …}
+votes: Doctrine\ORM\PersistentCollection {#4836 …}
+reports: Doctrine\ORM\PersistentCollection {#4851 …}
+favourites: Doctrine\ORM\PersistentCollection {#4853 …}
+notifications: Doctrine\ORM\PersistentCollection {#4855 …}
-id: 346444
-bodyTs: "'avoid':15 'bite':31 'bullet':33 'copi':24 'hope':13 'll':7,19 'might':27 'suspect':2 'take':20 'weekend':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6198124"
+editedAt: null
+createdAt: DateTimeImmutable @1706417303 {#4849
date: 2024-01-28 05:48:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "An entire weekend just to copy 4 TB?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706426151 {#4867
date: 2024-01-28 08:15:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
"@z00s@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4864 …}
+nested: Doctrine\ORM\PersistentCollection {#4861 …}
+votes: Doctrine\ORM\PersistentCollection {#4859 …}
+reports: Doctrine\ORM\PersistentCollection {#4873 …}
+favourites: Doctrine\ORM\PersistentCollection {#4875 …}
+notifications: Doctrine\ORM\PersistentCollection {#4877 …}
-id: 346624
-bodyTs: "'4':7 'copi':6 'entir':2 'tb':8 'weekend':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7091201"
+editedAt: null
+createdAt: DateTimeImmutable @1706426151 {#4870
date: 2024-01-28 08:15:51.0 +01:00
}
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\EntryComment {#4872
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4845
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4821
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "Do you really need 512 byte sectors for any specific reason? If not, just drop it back into the PC, backup contents, reformat, copy data back then put it back in the enclosure. Job done."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706408320 {#4819
date: 2024-01-28 03:18:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 346190
-bodyTs: "'512':5 'back':17,26,30 'backup':21 'byte':6 'content':22 'copi':24 'data':25 'done':35 'drop':15 'enclosur':33 'job':34 'need':4 'pc':20 'put':28 'realli':3 'reason':11 'reformat':23 'sector':7 'specif':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7081305"
+editedAt: null
+createdAt: DateTimeImmutable @1706408320 {#4820
date: 2024-01-28 03:18:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "I suspect this is what I’ll have to do. I was hoping to avoid it as that’ll take a weekend of copying, but I might just have to bite the bullet."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706417303 {#4846
date: 2024-01-28 05:48:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
"@z00s@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4842 …}
+nested: Doctrine\ORM\PersistentCollection {#4838 …}
+votes: Doctrine\ORM\PersistentCollection {#4836 …}
+reports: Doctrine\ORM\PersistentCollection {#4851 …}
+favourites: Doctrine\ORM\PersistentCollection {#4853 …}
+notifications: Doctrine\ORM\PersistentCollection {#4855 …}
-id: 346444
-bodyTs: "'avoid':15 'bite':31 'bullet':33 'copi':24 'hope':13 'll':7,19 'might':27 'suspect':2 'take':20 'weekend':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6198124"
+editedAt: null
+createdAt: DateTimeImmutable @1706417303 {#4849
date: 2024-01-28 05:48:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "An entire weekend just to copy 4 TB?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706426151 {#4867
date: 2024-01-28 08:15:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
"@z00s@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4864 …}
+nested: Doctrine\ORM\PersistentCollection {#4861 …}
+votes: Doctrine\ORM\PersistentCollection {#4859 …}
+reports: Doctrine\ORM\PersistentCollection {#4873 …}
+favourites: Doctrine\ORM\PersistentCollection {#4875 …}
+notifications: Doctrine\ORM\PersistentCollection {#4877 …}
-id: 346624
-bodyTs: "'4':7 'copi':6 'entir':2 'tb':8 'weekend':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7091201"
+editedAt: null
+createdAt: DateTimeImmutable @1706426151 {#4870
date: 2024-01-28 08:15:51.0 +01:00
}
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4872
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4845
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4821
+user: Proxies\__CG__\App\Entity\User {#4822 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4769
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4091
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-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 {#4027
date: 2024-01-27 22:35:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: """
I’m not using Windows. I run Debian on this server.\n
\n
The bulk of external enclosures that money can buy tell the computer they’re plugged into that the disks have logical sector sizes of 4096 bytes, apparently for compatibility with >2TB drives on Windows XP.\n
\n
I do not need compatibility with Windows XP as the current year is 2024. My disk has logical sectors 512 bytes in size, but the external enclosures don’t report that. I want to know how I can mount the disk anyway, despite the enclosure’s attempts to thwart me. I know the disk is fine, as it is detected with 512 byte sectors and mounts happily via SATA.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706392018 {#4767
date: 2024-01-27 22:46:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4770 …}
+nested: Doctrine\ORM\PersistentCollection {#4772 …}
+votes: Doctrine\ORM\PersistentCollection {#4774 …}
+reports: Doctrine\ORM\PersistentCollection {#4776 …}
+favourites: Doctrine\ORM\PersistentCollection {#4778 …}
+notifications: Doctrine\ORM\PersistentCollection {#4780 …}
-id: 345749
-bodyTs: "'2024':60 '2tb':42 '4096':36 '512':66,108 'anyway':88 'appar':38 'attempt':93 'bulk':13 'buy':20 'byte':37,67,109 'compat':40,51 'comput':23 'current':57 'debian':8 'despit':89 'detect':106 'disk':30,62,87,100 'drive':43 'enclosur':16,73,91 'extern':15,72 'fine':102 'happili':113 'know':81,98 'logic':32,64 'm':2 'money':18 'mount':85,112 'need':50 'plug':26 're':25 'report':76 'run':7 'sata':115 'sector':33,65,110 'server':11 'size':34,69 'tell':21 'thwart':95 'use':4 'via':114 'want':79 'window':5,45,53 'xp':46,54 'year':58"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6184303"
+editedAt: null
+createdAt: DateTimeImmutable @1706392018 {#4768
date: 2024-01-27 22:46:58.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "Do you really need 512 byte sectors for any specific reason? If not, just drop it back into the PC, backup contents, reformat, copy data back then put it back in the enclosure. Job done."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706408320 {#4819
date: 2024-01-28 03:18:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#4823 …}
+nested: Doctrine\ORM\PersistentCollection {#4825 …}
+votes: Doctrine\ORM\PersistentCollection {#4827 …}
+reports: Doctrine\ORM\PersistentCollection {#4829 …}
+favourites: Doctrine\ORM\PersistentCollection {#4831 …}
+notifications: Doctrine\ORM\PersistentCollection {#4833 …}
-id: 346190
-bodyTs: "'512':5 'back':17,26,30 'backup':21 'byte':6 'content':22 'copi':24 'data':25 'done':35 'drop':15 'enclosur':33 'job':34 'need':4 'pc':20 'put':28 'realli':3 'reason':11 'reformat':23 'sector':7 'specif':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7081305"
+editedAt: null
+createdAt: DateTimeImmutable @1706408320 {#4820
date: 2024-01-28 03:18:40.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "I suspect this is what I’ll have to do. I was hoping to avoid it as that’ll take a weekend of copying, but I might just have to bite the bullet."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706417303 {#4846
date: 2024-01-28 05:48:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
"@z00s@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4842 …}
+nested: Doctrine\ORM\PersistentCollection {#4838 …}
+votes: Doctrine\ORM\PersistentCollection {#4836 …}
+reports: Doctrine\ORM\PersistentCollection {#4851 …}
+favourites: Doctrine\ORM\PersistentCollection {#4853 …}
+notifications: Doctrine\ORM\PersistentCollection {#4855 …}
-id: 346444
-bodyTs: "'avoid':15 'bite':31 'bullet':33 'copi':24 'hope':13 'll':7,19 'might':27 'suspect':2 'take':20 'weekend':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6198124"
+editedAt: null
+createdAt: DateTimeImmutable @1706417303 {#4849
date: 2024-01-28 05:48:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4082}
+body: "An entire weekend just to copy 4 TB?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706426151 {#4867
date: 2024-01-28 08:15:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@possiblylinux127@lemmy.zip"
"@z00s@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4864 …}
+nested: Doctrine\ORM\PersistentCollection {#4861 …}
+votes: Doctrine\ORM\PersistentCollection {#4859 …}
+reports: Doctrine\ORM\PersistentCollection {#4873 …}
+favourites: Doctrine\ORM\PersistentCollection {#4875 …}
+notifications: Doctrine\ORM\PersistentCollection {#4877 …}
-id: 346624
-bodyTs: "'4':7 'copi':6 'entir':2 'tb':8 'weekend':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7091201"
+editedAt: null
+createdAt: DateTimeImmutable @1706426151 {#4870
date: 2024-01-28 08:15:51.0 +01:00
}
} |
|
Show voter details
|
25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
26 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4120
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 {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-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 {#4125
date: 2024-10-15 20:37:30.0 +02:00
}
+createdAt: DateTimeImmutable @1706383640 {#4123
date: 2024-01-27 20:27:20.0 +01:00
}
} |
|
Show voter details
|
27 |
DENIED
|
edit
|
App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4120
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 {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-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 {#4125
date: 2024-10-15 20:37:30.0 +02:00
}
+createdAt: DateTimeImmutable @1706383640 {#4123
date: 2024-01-27 20:27:20.0 +01:00
}
} |
|
Show voter details
|
28 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4120
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 {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-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 {#4125
date: 2024-10-15 20:37:30.0 +02:00
}
+createdAt: DateTimeImmutable @1706383640 {#4123
date: 2024-01-27 20:27:20.0 +01:00
}
} |
|
Show voter details
|
29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
30 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4201
+user: App\Entity\User {#4214 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4195
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 {#4202 …}
+nested: Doctrine\ORM\PersistentCollection {#4204 …}
+votes: Doctrine\ORM\PersistentCollection {#4206 …}
+reports: Doctrine\ORM\PersistentCollection {#4208 …}
+favourites: Doctrine\ORM\PersistentCollection {#4210 …}
+notifications: Doctrine\ORM\PersistentCollection {#4212 …}
-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 {#4196
date: 2024-10-15 08:14:59.0 +02:00
}
+createdAt: DateTimeImmutable @1706369958 {#4197
date: 2024-01-27 16:39:18.0 +01:00
}
} |
|
Show voter details
|
31 |
DENIED
|
edit
|
App\Entity\EntryComment {#4201
+user: App\Entity\User {#4214 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4195
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 {#4202 …}
+nested: Doctrine\ORM\PersistentCollection {#4204 …}
+votes: Doctrine\ORM\PersistentCollection {#4206 …}
+reports: Doctrine\ORM\PersistentCollection {#4208 …}
+favourites: Doctrine\ORM\PersistentCollection {#4210 …}
+notifications: Doctrine\ORM\PersistentCollection {#4212 …}
-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 {#4196
date: 2024-10-15 08:14:59.0 +02:00
}
+createdAt: DateTimeImmutable @1706369958 {#4197
date: 2024-01-27 16:39:18.0 +01:00
}
} |
|
Show voter details
|
32 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4201
+user: App\Entity\User {#4214 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4195
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 {#4202 …}
+nested: Doctrine\ORM\PersistentCollection {#4204 …}
+votes: Doctrine\ORM\PersistentCollection {#4206 …}
+reports: Doctrine\ORM\PersistentCollection {#4208 …}
+favourites: Doctrine\ORM\PersistentCollection {#4210 …}
+notifications: Doctrine\ORM\PersistentCollection {#4212 …}
-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 {#4196
date: 2024-10-15 08:14:59.0 +02:00
}
+createdAt: DateTimeImmutable @1706369958 {#4197
date: 2024-01-27 16:39:18.0 +01:00
}
} |
|
Show voter details
|
33 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
34 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4274
+user: App\Entity\User {#4287 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4269
date: 2024-01-27 15:47:15.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4275 …}
+nested: Doctrine\ORM\PersistentCollection {#4277 …}
+votes: Doctrine\ORM\PersistentCollection {#4279 …}
+reports: Doctrine\ORM\PersistentCollection {#4281 …}
+favourites: Doctrine\ORM\PersistentCollection {#4283 …}
+notifications: Doctrine\ORM\PersistentCollection {#4285 …}
-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 {#4270
date: 2024-01-27 15:47:15.0 +01:00
}
} |
|
Show voter details
|
35 |
DENIED
|
edit
|
App\Entity\EntryComment {#4274
+user: App\Entity\User {#4287 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4269
date: 2024-01-27 15:47:15.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4275 …}
+nested: Doctrine\ORM\PersistentCollection {#4277 …}
+votes: Doctrine\ORM\PersistentCollection {#4279 …}
+reports: Doctrine\ORM\PersistentCollection {#4281 …}
+favourites: Doctrine\ORM\PersistentCollection {#4283 …}
+notifications: Doctrine\ORM\PersistentCollection {#4285 …}
-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 {#4270
date: 2024-01-27 15:47:15.0 +01:00
}
} |
|
Show voter details
|
36 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4274
+user: App\Entity\User {#4287 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4269
date: 2024-01-27 15:47:15.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4275 …}
+nested: Doctrine\ORM\PersistentCollection {#4277 …}
+votes: Doctrine\ORM\PersistentCollection {#4279 …}
+reports: Doctrine\ORM\PersistentCollection {#4281 …}
+favourites: Doctrine\ORM\PersistentCollection {#4283 …}
+notifications: Doctrine\ORM\PersistentCollection {#4285 …}
-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 {#4270
date: 2024-01-27 15:47:15.0 +01:00
}
} |
|
Show voter details
|
37 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
38 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4347
+user: App\Entity\User {#4360 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4342
date: 2024-01-27 14:32:10.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4348 …}
+nested: Doctrine\ORM\PersistentCollection {#4350 …}
+votes: Doctrine\ORM\PersistentCollection {#4352 …}
+reports: Doctrine\ORM\PersistentCollection {#4354 …}
+favourites: Doctrine\ORM\PersistentCollection {#4356 …}
+notifications: Doctrine\ORM\PersistentCollection {#4358 …}
-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 {#4343
date: 2024-01-27 14:32:10.0 +01:00
}
} |
|
Show voter details
|
39 |
DENIED
|
edit
|
App\Entity\EntryComment {#4347
+user: App\Entity\User {#4360 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4342
date: 2024-01-27 14:32:10.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4348 …}
+nested: Doctrine\ORM\PersistentCollection {#4350 …}
+votes: Doctrine\ORM\PersistentCollection {#4352 …}
+reports: Doctrine\ORM\PersistentCollection {#4354 …}
+favourites: Doctrine\ORM\PersistentCollection {#4356 …}
+notifications: Doctrine\ORM\PersistentCollection {#4358 …}
-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 {#4343
date: 2024-01-27 14:32:10.0 +01:00
}
} |
|
Show voter details
|
40 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4347
+user: App\Entity\User {#4360 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4342
date: 2024-01-27 14:32:10.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4348 …}
+nested: Doctrine\ORM\PersistentCollection {#4350 …}
+votes: Doctrine\ORM\PersistentCollection {#4352 …}
+reports: Doctrine\ORM\PersistentCollection {#4354 …}
+favourites: Doctrine\ORM\PersistentCollection {#4356 …}
+notifications: Doctrine\ORM\PersistentCollection {#4358 …}
-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 {#4343
date: 2024-01-27 14:32:10.0 +01:00
}
} |
|
Show voter details
|
41 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
42 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4421
+user: App\Entity\User {#4434 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4415
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 {#4422 …}
+nested: Doctrine\ORM\PersistentCollection {#4424 …}
+votes: Doctrine\ORM\PersistentCollection {#4426 …}
+reports: Doctrine\ORM\PersistentCollection {#4428 …}
+favourites: Doctrine\ORM\PersistentCollection {#4430 …}
+notifications: Doctrine\ORM\PersistentCollection {#4432 …}
-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 {#4416
date: 2024-10-15 02:31:29.0 +02:00
}
+createdAt: DateTimeImmutable @1706360695 {#4417
date: 2024-01-27 14:04:55.0 +01:00
}
} |
|
Show voter details
|
43 |
DENIED
|
edit
|
App\Entity\EntryComment {#4421
+user: App\Entity\User {#4434 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4415
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 {#4422 …}
+nested: Doctrine\ORM\PersistentCollection {#4424 …}
+votes: Doctrine\ORM\PersistentCollection {#4426 …}
+reports: Doctrine\ORM\PersistentCollection {#4428 …}
+favourites: Doctrine\ORM\PersistentCollection {#4430 …}
+notifications: Doctrine\ORM\PersistentCollection {#4432 …}
-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 {#4416
date: 2024-10-15 02:31:29.0 +02:00
}
+createdAt: DateTimeImmutable @1706360695 {#4417
date: 2024-01-27 14:04:55.0 +01:00
}
} |
|
Show voter details
|
44 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4421
+user: App\Entity\User {#4434 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4415
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 {#4422 …}
+nested: Doctrine\ORM\PersistentCollection {#4424 …}
+votes: Doctrine\ORM\PersistentCollection {#4426 …}
+reports: Doctrine\ORM\PersistentCollection {#4428 …}
+favourites: Doctrine\ORM\PersistentCollection {#4430 …}
+notifications: Doctrine\ORM\PersistentCollection {#4432 …}
-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 {#4416
date: 2024-10-15 02:31:29.0 +02:00
}
+createdAt: DateTimeImmutable @1706360695 {#4417
date: 2024-01-27 14:04:55.0 +01:00
}
} |
|
Show voter details
|
45 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
46 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4494
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4489
date: 2024-10-15 10:53:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4495 …}
+nested: Doctrine\ORM\PersistentCollection {#4497 …}
+votes: Doctrine\ORM\PersistentCollection {#4499 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-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 {#4490
date: 2024-01-27 13:13:29.0 +01:00
}
} |
|
Show voter details
|
47 |
DENIED
|
edit
|
App\Entity\EntryComment {#4494
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4489
date: 2024-10-15 10:53:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4495 …}
+nested: Doctrine\ORM\PersistentCollection {#4497 …}
+votes: Doctrine\ORM\PersistentCollection {#4499 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-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 {#4490
date: 2024-01-27 13:13:29.0 +01:00
}
} |
|
Show voter details
|
48 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4494
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4489
date: 2024-10-15 10:53:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4495 …}
+nested: Doctrine\ORM\PersistentCollection {#4497 …}
+votes: Doctrine\ORM\PersistentCollection {#4499 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-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 {#4490
date: 2024-01-27 13:13:29.0 +01:00
}
} |
|
Show voter details
|
49 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
50 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4754
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4494
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4489
date: 2024-10-15 10:53:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4495 …}
+nested: Doctrine\ORM\PersistentCollection {#4497 …}
+votes: Doctrine\ORM\PersistentCollection {#4499 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-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 {#4490
date: 2024-01-27 13:13:29.0 +01:00
}
}
+root: App\Entity\EntryComment {#4494}
+body: "No - I’ve been working on a headless server, and ideally I need this thing to be written into `/etc/fstab` and work reliably from the command line. I could plug the drive into my laptop to have a look in some GUI tools if you think there’s one around that can circumvent the sector size mismatch, but in the end I’ll need a CLI method."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706359153 {#4752
date: 2024-01-27 13:39:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@yo_scottie_oh@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4755 …}
+nested: Doctrine\ORM\PersistentCollection {#4757 …}
+votes: Doctrine\ORM\PersistentCollection {#4759 …}
+reports: Doctrine\ORM\PersistentCollection {#4761 …}
+favourites: Doctrine\ORM\PersistentCollection {#4763 …}
+notifications: Doctrine\ORM\PersistentCollection {#4765 …}
-id: 344554
-bodyTs: "'/etc/fstab':20 'around':50 'circumv':53 'cli':66 'command':26 'could':29 'drive':32 'end':61 'gui':42 'headless':8 'ideal':11 'laptop':35 'line':27 'll':63 'look':39 'method':67 'mismatch':57 'need':13,64 'one':49 'plug':30 'reliabl':23 'sector':55 'server':9 'size':56 'thing':15 'think':46 'tool':43 've':3 'work':5,22 'written':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173557"
+editedAt: null
+createdAt: DateTimeImmutable @1706359153 {#4753
date: 2024-01-27 13:39:13.0 +01:00
}
} |
|
Show voter details
|
51 |
DENIED
|
edit
|
App\Entity\EntryComment {#4754
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4494
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4489
date: 2024-10-15 10:53:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4495 …}
+nested: Doctrine\ORM\PersistentCollection {#4497 …}
+votes: Doctrine\ORM\PersistentCollection {#4499 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-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 {#4490
date: 2024-01-27 13:13:29.0 +01:00
}
}
+root: App\Entity\EntryComment {#4494}
+body: "No - I’ve been working on a headless server, and ideally I need this thing to be written into `/etc/fstab` and work reliably from the command line. I could plug the drive into my laptop to have a look in some GUI tools if you think there’s one around that can circumvent the sector size mismatch, but in the end I’ll need a CLI method."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706359153 {#4752
date: 2024-01-27 13:39:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@yo_scottie_oh@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4755 …}
+nested: Doctrine\ORM\PersistentCollection {#4757 …}
+votes: Doctrine\ORM\PersistentCollection {#4759 …}
+reports: Doctrine\ORM\PersistentCollection {#4761 …}
+favourites: Doctrine\ORM\PersistentCollection {#4763 …}
+notifications: Doctrine\ORM\PersistentCollection {#4765 …}
-id: 344554
-bodyTs: "'/etc/fstab':20 'around':50 'circumv':53 'cli':66 'command':26 'could':29 'drive':32 'end':61 'gui':42 'headless':8 'ideal':11 'laptop':35 'line':27 'll':63 'look':39 'method':67 'mismatch':57 'need':13,64 'one':49 'plug':30 'reliabl':23 'sector':55 'server':9 'size':56 'thing':15 'think':46 'tool':43 've':3 'work':5,22 'written':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173557"
+editedAt: null
+createdAt: DateTimeImmutable @1706359153 {#4753
date: 2024-01-27 13:39:13.0 +01:00
}
} |
|
Show voter details
|
52 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4754
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4494
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4489
date: 2024-10-15 10:53:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4495 …}
+nested: Doctrine\ORM\PersistentCollection {#4497 …}
+votes: Doctrine\ORM\PersistentCollection {#4499 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-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 {#4490
date: 2024-01-27 13:13:29.0 +01:00
}
}
+root: App\Entity\EntryComment {#4494}
+body: "No - I’ve been working on a headless server, and ideally I need this thing to be written into `/etc/fstab` and work reliably from the command line. I could plug the drive into my laptop to have a look in some GUI tools if you think there’s one around that can circumvent the sector size mismatch, but in the end I’ll need a CLI method."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706359153 {#4752
date: 2024-01-27 13:39:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@yo_scottie_oh@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4755 …}
+nested: Doctrine\ORM\PersistentCollection {#4757 …}
+votes: Doctrine\ORM\PersistentCollection {#4759 …}
+reports: Doctrine\ORM\PersistentCollection {#4761 …}
+favourites: Doctrine\ORM\PersistentCollection {#4763 …}
+notifications: Doctrine\ORM\PersistentCollection {#4765 …}
-id: 344554
-bodyTs: "'/etc/fstab':20 'around':50 'circumv':53 'cli':66 'command':26 'could':29 'drive':32 'end':61 'gui':42 'headless':8 'ideal':11 'laptop':35 'line':27 'll':63 'look':39 'method':67 'mismatch':57 'need':13,64 'one':49 'plug':30 'reliabl':23 'sector':55 'server':9 'size':56 'thing':15 'think':46 'tool':43 've':3 'work':5,22 'written':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173557"
+editedAt: null
+createdAt: DateTimeImmutable @1706359153 {#4753
date: 2024-01-27 13:39:13.0 +01:00
}
} |
|
Show voter details
|
53 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
54 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4788
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4754
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4494
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4489
date: 2024-10-15 10:53:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4495 …}
+nested: Doctrine\ORM\PersistentCollection {#4497 …}
+votes: Doctrine\ORM\PersistentCollection {#4499 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-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 {#4490
date: 2024-01-27 13:13:29.0 +01:00
}
}
+root: App\Entity\EntryComment {#4494}
+body: "No - I’ve been working on a headless server, and ideally I need this thing to be written into `/etc/fstab` and work reliably from the command line. I could plug the drive into my laptop to have a look in some GUI tools if you think there’s one around that can circumvent the sector size mismatch, but in the end I’ll need a CLI method."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706359153 {#4752
date: 2024-01-27 13:39:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@yo_scottie_oh@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4755 …}
+nested: Doctrine\ORM\PersistentCollection {#4757 …}
+votes: Doctrine\ORM\PersistentCollection {#4759 …}
+reports: Doctrine\ORM\PersistentCollection {#4761 …}
+favourites: Doctrine\ORM\PersistentCollection {#4763 …}
+notifications: Doctrine\ORM\PersistentCollection {#4765 …}
-id: 344554
-bodyTs: "'/etc/fstab':20 'around':50 'circumv':53 'cli':66 'command':26 'could':29 'drive':32 'end':61 'gui':42 'headless':8 'ideal':11 'laptop':35 'line':27 'll':63 'look':39 'method':67 'mismatch':57 'need':13,64 'one':49 'plug':30 'reliabl':23 'sector':55 'server':9 'size':56 'thing':15 'think':46 'tool':43 've':3 'work':5,22 'written':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173557"
+editedAt: null
+createdAt: DateTimeImmutable @1706359153 {#4753
date: 2024-01-27 13:39:13.0 +01:00
}
}
+root: App\Entity\EntryComment {#4494}
+body: "Gotcha. Worst case, if you can mount it using any tool (GUI or CLI), then maybe you can copy its contents to another drive, reformat it, and copy the contents back."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706374526 {#4787
date: 2024-01-27 17:55:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@yo_scottie_oh@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4791 …}
+nested: Doctrine\ORM\PersistentCollection {#4796 …}
+votes: Doctrine\ORM\PersistentCollection {#4792 …}
+reports: Doctrine\ORM\PersistentCollection {#4798 …}
+favourites: Doctrine\ORM\PersistentCollection {#4800 …}
+notifications: Doctrine\ORM\PersistentCollection {#4802 …}
-id: 344996
-bodyTs: "'anoth':23 'back':31 'case':3 'cli':14 'content':21,30 'copi':19,28 'drive':24 'gotcha':1 'gui':12 'mayb':16 'mount':7 'reformat':25 'tool':11 'use':9 'worst':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7785865"
+editedAt: null
+createdAt: DateTimeImmutable @1706374526 {#4784
date: 2024-01-27 17:55:26.0 +01:00
}
} |
|
Show voter details
|
55 |
DENIED
|
edit
|
App\Entity\EntryComment {#4788
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4754
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4494
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4489
date: 2024-10-15 10:53:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4495 …}
+nested: Doctrine\ORM\PersistentCollection {#4497 …}
+votes: Doctrine\ORM\PersistentCollection {#4499 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-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 {#4490
date: 2024-01-27 13:13:29.0 +01:00
}
}
+root: App\Entity\EntryComment {#4494}
+body: "No - I’ve been working on a headless server, and ideally I need this thing to be written into `/etc/fstab` and work reliably from the command line. I could plug the drive into my laptop to have a look in some GUI tools if you think there’s one around that can circumvent the sector size mismatch, but in the end I’ll need a CLI method."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706359153 {#4752
date: 2024-01-27 13:39:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@yo_scottie_oh@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4755 …}
+nested: Doctrine\ORM\PersistentCollection {#4757 …}
+votes: Doctrine\ORM\PersistentCollection {#4759 …}
+reports: Doctrine\ORM\PersistentCollection {#4761 …}
+favourites: Doctrine\ORM\PersistentCollection {#4763 …}
+notifications: Doctrine\ORM\PersistentCollection {#4765 …}
-id: 344554
-bodyTs: "'/etc/fstab':20 'around':50 'circumv':53 'cli':66 'command':26 'could':29 'drive':32 'end':61 'gui':42 'headless':8 'ideal':11 'laptop':35 'line':27 'll':63 'look':39 'method':67 'mismatch':57 'need':13,64 'one':49 'plug':30 'reliabl':23 'sector':55 'server':9 'size':56 'thing':15 'think':46 'tool':43 've':3 'work':5,22 'written':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173557"
+editedAt: null
+createdAt: DateTimeImmutable @1706359153 {#4753
date: 2024-01-27 13:39:13.0 +01:00
}
}
+root: App\Entity\EntryComment {#4494}
+body: "Gotcha. Worst case, if you can mount it using any tool (GUI or CLI), then maybe you can copy its contents to another drive, reformat it, and copy the contents back."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706374526 {#4787
date: 2024-01-27 17:55:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@yo_scottie_oh@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4791 …}
+nested: Doctrine\ORM\PersistentCollection {#4796 …}
+votes: Doctrine\ORM\PersistentCollection {#4792 …}
+reports: Doctrine\ORM\PersistentCollection {#4798 …}
+favourites: Doctrine\ORM\PersistentCollection {#4800 …}
+notifications: Doctrine\ORM\PersistentCollection {#4802 …}
-id: 344996
-bodyTs: "'anoth':23 'back':31 'case':3 'cli':14 'content':21,30 'copi':19,28 'drive':24 'gotcha':1 'gui':12 'mayb':16 'mount':7 'reformat':25 'tool':11 'use':9 'worst':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7785865"
+editedAt: null
+createdAt: DateTimeImmutable @1706374526 {#4784
date: 2024-01-27 17:55:26.0 +01:00
}
} |
|
Show voter details
|
56 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4788
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4754
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4494
+user: App\Entity\User {#4507 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4489
date: 2024-10-15 10:53:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4495 …}
+nested: Doctrine\ORM\PersistentCollection {#4497 …}
+votes: Doctrine\ORM\PersistentCollection {#4499 …}
+reports: Doctrine\ORM\PersistentCollection {#4501 …}
+favourites: Doctrine\ORM\PersistentCollection {#4503 …}
+notifications: Doctrine\ORM\PersistentCollection {#4505 …}
-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 {#4490
date: 2024-01-27 13:13:29.0 +01:00
}
}
+root: App\Entity\EntryComment {#4494}
+body: "No - I’ve been working on a headless server, and ideally I need this thing to be written into `/etc/fstab` and work reliably from the command line. I could plug the drive into my laptop to have a look in some GUI tools if you think there’s one around that can circumvent the sector size mismatch, but in the end I’ll need a CLI method."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706359153 {#4752
date: 2024-01-27 13:39:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@yo_scottie_oh@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4755 …}
+nested: Doctrine\ORM\PersistentCollection {#4757 …}
+votes: Doctrine\ORM\PersistentCollection {#4759 …}
+reports: Doctrine\ORM\PersistentCollection {#4761 …}
+favourites: Doctrine\ORM\PersistentCollection {#4763 …}
+notifications: Doctrine\ORM\PersistentCollection {#4765 …}
-id: 344554
-bodyTs: "'/etc/fstab':20 'around':50 'circumv':53 'cli':66 'command':26 'could':29 'drive':32 'end':61 'gui':42 'headless':8 'ideal':11 'laptop':35 'line':27 'll':63 'look':39 'method':67 'mismatch':57 'need':13,64 'one':49 'plug':30 'reliabl':23 'sector':55 'server':9 'size':56 'thing':15 'think':46 'tool':43 've':3 'work':5,22 'written':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173557"
+editedAt: null
+createdAt: DateTimeImmutable @1706359153 {#4753
date: 2024-01-27 13:39:13.0 +01:00
}
}
+root: App\Entity\EntryComment {#4494}
+body: "Gotcha. Worst case, if you can mount it using any tool (GUI or CLI), then maybe you can copy its contents to another drive, reformat it, and copy the contents back."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706374526 {#4787
date: 2024-01-27 17:55:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@yo_scottie_oh@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4791 …}
+nested: Doctrine\ORM\PersistentCollection {#4796 …}
+votes: Doctrine\ORM\PersistentCollection {#4792 …}
+reports: Doctrine\ORM\PersistentCollection {#4798 …}
+favourites: Doctrine\ORM\PersistentCollection {#4800 …}
+notifications: Doctrine\ORM\PersistentCollection {#4802 …}
-id: 344996
-bodyTs: "'anoth':23 'back':31 'case':3 'cli':14 'content':21,30 'copi':19,28 'drive':24 'gotcha':1 'gui':12 'mayb':16 'mount':7 'reformat':25 'tool':11 'use':9 'worst':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7785865"
+editedAt: null
+createdAt: DateTimeImmutable @1706374526 {#4784
date: 2024-01-27 17:55:26.0 +01:00
}
} |
|
Show voter details
|
57 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
58 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4568
+user: App\Entity\User {#4581 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4562
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 {#4569 …}
+nested: Doctrine\ORM\PersistentCollection {#4571 …}
+votes: Doctrine\ORM\PersistentCollection {#4573 …}
+reports: Doctrine\ORM\PersistentCollection {#4575 …}
+favourites: Doctrine\ORM\PersistentCollection {#4577 …}
+notifications: Doctrine\ORM\PersistentCollection {#4579 …}
-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 {#4563
date: 2024-10-15 00:32:24.0 +02:00
}
+createdAt: DateTimeImmutable @1706357573 {#4564
date: 2024-01-27 13:12:53.0 +01:00
}
} |
|
Show voter details
|
59 |
DENIED
|
edit
|
App\Entity\EntryComment {#4568
+user: App\Entity\User {#4581 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4562
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 {#4569 …}
+nested: Doctrine\ORM\PersistentCollection {#4571 …}
+votes: Doctrine\ORM\PersistentCollection {#4573 …}
+reports: Doctrine\ORM\PersistentCollection {#4575 …}
+favourites: Doctrine\ORM\PersistentCollection {#4577 …}
+notifications: Doctrine\ORM\PersistentCollection {#4579 …}
-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 {#4563
date: 2024-10-15 00:32:24.0 +02:00
}
+createdAt: DateTimeImmutable @1706357573 {#4564
date: 2024-01-27 13:12:53.0 +01:00
}
} |
|
Show voter details
|
60 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4568
+user: App\Entity\User {#4581 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4562
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 {#4569 …}
+nested: Doctrine\ORM\PersistentCollection {#4571 …}
+votes: Doctrine\ORM\PersistentCollection {#4573 …}
+reports: Doctrine\ORM\PersistentCollection {#4575 …}
+favourites: Doctrine\ORM\PersistentCollection {#4577 …}
+notifications: Doctrine\ORM\PersistentCollection {#4579 …}
-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 {#4563
date: 2024-10-15 00:32:24.0 +02:00
}
+createdAt: DateTimeImmutable @1706357573 {#4564
date: 2024-01-27 13:12:53.0 +01:00
}
} |
|
Show voter details
|
61 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
62 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4739
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4568
+user: App\Entity\User {#4581 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4562
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 {#4569 …}
+nested: Doctrine\ORM\PersistentCollection {#4571 …}
+votes: Doctrine\ORM\PersistentCollection {#4573 …}
+reports: Doctrine\ORM\PersistentCollection {#4575 …}
+favourites: Doctrine\ORM\PersistentCollection {#4577 …}
+notifications: Doctrine\ORM\PersistentCollection {#4579 …}
-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 {#4563
date: 2024-10-15 00:32:24.0 +02:00
}
+createdAt: DateTimeImmutable @1706357573 {#4564
date: 2024-01-27 13:12:53.0 +01:00
}
}
+root: App\Entity\EntryComment {#4568}
+body: """
Yes, the last code block in my OP shows the result of attempting to mount /dev/sdc1 normally: `mount: /mnt: special device /dev/sdc1 does not exist.`\n
\n
Though I do not believe it is required as I can mount other drives to /mnt just fine, I have attempted to make /met/tmp and mount there to no avail.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706359392 {#4737
date: 2024-01-27 13:43:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@KrapKake@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4740 …}
+nested: Doctrine\ORM\PersistentCollection {#4742 …}
+votes: Doctrine\ORM\PersistentCollection {#4744 …}
+reports: Doctrine\ORM\PersistentCollection {#4746 …}
+favourites: Doctrine\ORM\PersistentCollection {#4748 …}
+notifications: Doctrine\ORM\PersistentCollection {#4750 …}
-id: 344565
-bodyTs: "'/dev/sdc1':16,22 '/met/tmp':49 '/mnt':19,41 'attempt':13,46 'avail':55 'believ':30 'block':5 'code':4 'devic':21 'drive':39 'exist':25 'fine':43 'last':3 'make':48 'mount':15,18,37,51 'normal':17 'op':8 'requir':33 'result':11 'show':9 'special':20 'though':26 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173610"
+editedAt: null
+createdAt: DateTimeImmutable @1706359392 {#4738
date: 2024-01-27 13:43:12.0 +01:00
}
} |
|
Show voter details
|
63 |
DENIED
|
edit
|
App\Entity\EntryComment {#4739
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4568
+user: App\Entity\User {#4581 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4562
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 {#4569 …}
+nested: Doctrine\ORM\PersistentCollection {#4571 …}
+votes: Doctrine\ORM\PersistentCollection {#4573 …}
+reports: Doctrine\ORM\PersistentCollection {#4575 …}
+favourites: Doctrine\ORM\PersistentCollection {#4577 …}
+notifications: Doctrine\ORM\PersistentCollection {#4579 …}
-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 {#4563
date: 2024-10-15 00:32:24.0 +02:00
}
+createdAt: DateTimeImmutable @1706357573 {#4564
date: 2024-01-27 13:12:53.0 +01:00
}
}
+root: App\Entity\EntryComment {#4568}
+body: """
Yes, the last code block in my OP shows the result of attempting to mount /dev/sdc1 normally: `mount: /mnt: special device /dev/sdc1 does not exist.`\n
\n
Though I do not believe it is required as I can mount other drives to /mnt just fine, I have attempted to make /met/tmp and mount there to no avail.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706359392 {#4737
date: 2024-01-27 13:43:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@KrapKake@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4740 …}
+nested: Doctrine\ORM\PersistentCollection {#4742 …}
+votes: Doctrine\ORM\PersistentCollection {#4744 …}
+reports: Doctrine\ORM\PersistentCollection {#4746 …}
+favourites: Doctrine\ORM\PersistentCollection {#4748 …}
+notifications: Doctrine\ORM\PersistentCollection {#4750 …}
-id: 344565
-bodyTs: "'/dev/sdc1':16,22 '/met/tmp':49 '/mnt':19,41 'attempt':13,46 'avail':55 'believ':30 'block':5 'code':4 'devic':21 'drive':39 'exist':25 'fine':43 'last':3 'make':48 'mount':15,18,37,51 'normal':17 'op':8 'requir':33 'result':11 'show':9 'special':20 'though':26 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173610"
+editedAt: null
+createdAt: DateTimeImmutable @1706359392 {#4738
date: 2024-01-27 13:43:12.0 +01:00
}
} |
|
Show voter details
|
64 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4739
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4568
+user: App\Entity\User {#4581 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4562
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 {#4569 …}
+nested: Doctrine\ORM\PersistentCollection {#4571 …}
+votes: Doctrine\ORM\PersistentCollection {#4573 …}
+reports: Doctrine\ORM\PersistentCollection {#4575 …}
+favourites: Doctrine\ORM\PersistentCollection {#4577 …}
+notifications: Doctrine\ORM\PersistentCollection {#4579 …}
-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 {#4563
date: 2024-10-15 00:32:24.0 +02:00
}
+createdAt: DateTimeImmutable @1706357573 {#4564
date: 2024-01-27 13:12:53.0 +01:00
}
}
+root: App\Entity\EntryComment {#4568}
+body: """
Yes, the last code block in my OP shows the result of attempting to mount /dev/sdc1 normally: `mount: /mnt: special device /dev/sdc1 does not exist.`\n
\n
Though I do not believe it is required as I can mount other drives to /mnt just fine, I have attempted to make /met/tmp and mount there to no avail.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706359392 {#4737
date: 2024-01-27 13:43:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@KrapKake@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4740 …}
+nested: Doctrine\ORM\PersistentCollection {#4742 …}
+votes: Doctrine\ORM\PersistentCollection {#4744 …}
+reports: Doctrine\ORM\PersistentCollection {#4746 …}
+favourites: Doctrine\ORM\PersistentCollection {#4748 …}
+notifications: Doctrine\ORM\PersistentCollection {#4750 …}
-id: 344565
-bodyTs: "'/dev/sdc1':16,22 '/met/tmp':49 '/mnt':19,41 'attempt':13,46 'avail':55 'believ':30 'block':5 'code':4 'devic':21 'drive':39 'exist':25 'fine':43 'last':3 'make':48 'mount':15,18,37,51 'normal':17 'op':8 'requir':33 'result':11 'show':9 'special':20 'though':26 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173610"
+editedAt: null
+createdAt: DateTimeImmutable @1706359392 {#4738
date: 2024-01-27 13:43:12.0 +01:00
}
} |
|
Show voter details
|
65 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
66 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4641
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4636
date: 2024-10-15 03:41:05.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-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 {#4637
date: 2024-01-27 13:09:47.0 +01:00
}
} |
|
Show voter details
|
67 |
DENIED
|
edit
|
App\Entity\EntryComment {#4641
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4636
date: 2024-10-15 03:41:05.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-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 {#4637
date: 2024-01-27 13:09:47.0 +01:00
}
} |
|
Show voter details
|
68 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4641
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+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 {#4636
date: 2024-10-15 03:41:05.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-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 {#4637
date: 2024-01-27 13:09:47.0 +01:00
}
} |
|
Show voter details
|
69 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
70 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4728
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4641
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4636
date: 2024-10-15 03:41:05.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-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 {#4637
date: 2024-01-27 13:09:47.0 +01:00
}
}
+root: App\Entity\EntryComment {#4641}
+body: """
The only enclosure I have that works out of the box is one of those “SATA to USB adaptors” rather than a bona fide “3.5 inch drive enclosure”. It’s not ideal for long-term use.\n
\n
I wonder if there’s a place to find out if any given make/model of enclosure will report the sector size as 512 bytes. Then, presumably, one could purchase an enclosure off that list and be confident the disk will be readable.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706359619 {#4729
date: 2024-01-27 13:46:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@abominable_panda@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4722 …}
+nested: Doctrine\ORM\PersistentCollection {#4721 …}
+votes: Doctrine\ORM\PersistentCollection {#4719 …}
+reports: Doctrine\ORM\PersistentCollection {#4731 …}
+favourites: Doctrine\ORM\PersistentCollection {#4733 …}
+notifications: Doctrine\ORM\PersistentCollection {#4735 …}
-id: 344573
-bodyTs: "'3.5':25 '512':60 'adaptor':19 'bona':23 'box':11 'byte':61 'confid':74 'could':65 'disk':76 'drive':27 'enclosur':3,28,53,68 'fide':24 'find':46 'given':50 'ideal':32 'inch':26 'list':71 'long':35 'long-term':34 'make/model':51 'one':13,64 'place':44 'presum':63 'purchas':66 'rather':20 'readabl':79 'report':55 'sata':16 'sector':57 'size':58 'term':36 'usb':18 'use':37 'wonder':39 'work':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173667"
+editedAt: null
+createdAt: DateTimeImmutable @1706359619 {#4726
date: 2024-01-27 13:46:59.0 +01:00
}
} |
|
Show voter details
|
71 |
DENIED
|
edit
|
App\Entity\EntryComment {#4728
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4641
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4636
date: 2024-10-15 03:41:05.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-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 {#4637
date: 2024-01-27 13:09:47.0 +01:00
}
}
+root: App\Entity\EntryComment {#4641}
+body: """
The only enclosure I have that works out of the box is one of those “SATA to USB adaptors” rather than a bona fide “3.5 inch drive enclosure”. It’s not ideal for long-term use.\n
\n
I wonder if there’s a place to find out if any given make/model of enclosure will report the sector size as 512 bytes. Then, presumably, one could purchase an enclosure off that list and be confident the disk will be readable.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706359619 {#4729
date: 2024-01-27 13:46:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@abominable_panda@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4722 …}
+nested: Doctrine\ORM\PersistentCollection {#4721 …}
+votes: Doctrine\ORM\PersistentCollection {#4719 …}
+reports: Doctrine\ORM\PersistentCollection {#4731 …}
+favourites: Doctrine\ORM\PersistentCollection {#4733 …}
+notifications: Doctrine\ORM\PersistentCollection {#4735 …}
-id: 344573
-bodyTs: "'3.5':25 '512':60 'adaptor':19 'bona':23 'box':11 'byte':61 'confid':74 'could':65 'disk':76 'drive':27 'enclosur':3,28,53,68 'fide':24 'find':46 'given':50 'ideal':32 'inch':26 'list':71 'long':35 'long-term':34 'make/model':51 'one':13,64 'place':44 'presum':63 'purchas':66 'rather':20 'readabl':79 'report':55 'sata':16 'sector':57 'size':58 'term':36 'usb':18 'use':37 'wonder':39 'work':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173667"
+editedAt: null
+createdAt: DateTimeImmutable @1706359619 {#4726
date: 2024-01-27 13:46:59.0 +01:00
}
} |
|
Show voter details
|
72 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4728
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4641
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4636
date: 2024-10-15 03:41:05.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-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 {#4637
date: 2024-01-27 13:09:47.0 +01:00
}
}
+root: App\Entity\EntryComment {#4641}
+body: """
The only enclosure I have that works out of the box is one of those “SATA to USB adaptors” rather than a bona fide “3.5 inch drive enclosure”. It’s not ideal for long-term use.\n
\n
I wonder if there’s a place to find out if any given make/model of enclosure will report the sector size as 512 bytes. Then, presumably, one could purchase an enclosure off that list and be confident the disk will be readable.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706359619 {#4729
date: 2024-01-27 13:46:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@abominable_panda@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4722 …}
+nested: Doctrine\ORM\PersistentCollection {#4721 …}
+votes: Doctrine\ORM\PersistentCollection {#4719 …}
+reports: Doctrine\ORM\PersistentCollection {#4731 …}
+favourites: Doctrine\ORM\PersistentCollection {#4733 …}
+notifications: Doctrine\ORM\PersistentCollection {#4735 …}
-id: 344573
-bodyTs: "'3.5':25 '512':60 'adaptor':19 'bona':23 'box':11 'byte':61 'confid':74 'could':65 'disk':76 'drive':27 'enclosur':3,28,53,68 'fide':24 'find':46 'given':50 'ideal':32 'inch':26 'list':71 'long':35 'long-term':34 'make/model':51 'one':13,64 'place':44 'presum':63 'purchas':66 'rather':20 'readabl':79 'report':55 'sata':16 'sector':57 'size':58 'term':36 'usb':18 'use':37 'wonder':39 'work':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173667"
+editedAt: null
+createdAt: DateTimeImmutable @1706359619 {#4726
date: 2024-01-27 13:46:59.0 +01:00
}
} |
|
Show voter details
|
73 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
74 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4806
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4728
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4641
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4636
date: 2024-10-15 03:41:05.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-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 {#4637
date: 2024-01-27 13:09:47.0 +01:00
}
}
+root: App\Entity\EntryComment {#4641}
+body: """
The only enclosure I have that works out of the box is one of those “SATA to USB adaptors” rather than a bona fide “3.5 inch drive enclosure”. It’s not ideal for long-term use.\n
\n
I wonder if there’s a place to find out if any given make/model of enclosure will report the sector size as 512 bytes. Then, presumably, one could purchase an enclosure off that list and be confident the disk will be readable.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706359619 {#4729
date: 2024-01-27 13:46:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@abominable_panda@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4722 …}
+nested: Doctrine\ORM\PersistentCollection {#4721 …}
+votes: Doctrine\ORM\PersistentCollection {#4719 …}
+reports: Doctrine\ORM\PersistentCollection {#4731 …}
+favourites: Doctrine\ORM\PersistentCollection {#4733 …}
+notifications: Doctrine\ORM\PersistentCollection {#4735 …}
-id: 344573
-bodyTs: "'3.5':25 '512':60 'adaptor':19 'bona':23 'box':11 'byte':61 'confid':74 'could':65 'disk':76 'drive':27 'enclosur':3,28,53,68 'fide':24 'find':46 'given':50 'ideal':32 'inch':26 'list':71 'long':35 'long-term':34 'make/model':51 'one':13,64 'place':44 'presum':63 'purchas':66 'rather':20 'readabl':79 'report':55 'sata':16 'sector':57 'size':58 'term':36 'usb':18 'use':37 'wonder':39 'work':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173667"
+editedAt: null
+createdAt: DateTimeImmutable @1706359619 {#4726
date: 2024-01-27 13:46:59.0 +01:00
}
}
+root: App\Entity\EntryComment {#4641}
+body: "I dont know either. I used a seagate usb to sata adapter too and that gave me problems with large drives. Nothing on the datasheet mentioned anything, so i had an old backup external drive and swapped the drives to do my formatting/ transfer before putting the original back together"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706363238 {#4804
date: 2024-01-27 14:47:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@abominable_panda@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4807 …}
+nested: Doctrine\ORM\PersistentCollection {#4809 …}
+votes: Doctrine\ORM\PersistentCollection {#4811 …}
+reports: Doctrine\ORM\PersistentCollection {#4813 …}
+favourites: Doctrine\ORM\PersistentCollection {#4815 …}
+notifications: Doctrine\ORM\PersistentCollection {#4817 …}
-id: 344663
-bodyTs: "'adapt':12 'anyth':27 'back':49 'backup':33 'datasheet':25 'dont':2 'drive':21,35,39 'either':4 'extern':34 'format':43 'gave':16 'know':3 'larg':20 'mention':26 'noth':22 'old':32 'origin':48 'problem':18 'put':46 'sata':11 'seagat':8 'swap':37 'togeth':50 'transfer':44 'usb':9 'use':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7063797"
+editedAt: null
+createdAt: DateTimeImmutable @1706363238 {#4805
date: 2024-01-27 14:47:18.0 +01:00
}
} |
|
Show voter details
|
75 |
DENIED
|
edit
|
App\Entity\EntryComment {#4806
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4728
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4641
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4636
date: 2024-10-15 03:41:05.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-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 {#4637
date: 2024-01-27 13:09:47.0 +01:00
}
}
+root: App\Entity\EntryComment {#4641}
+body: """
The only enclosure I have that works out of the box is one of those “SATA to USB adaptors” rather than a bona fide “3.5 inch drive enclosure”. It’s not ideal for long-term use.\n
\n
I wonder if there’s a place to find out if any given make/model of enclosure will report the sector size as 512 bytes. Then, presumably, one could purchase an enclosure off that list and be confident the disk will be readable.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706359619 {#4729
date: 2024-01-27 13:46:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@abominable_panda@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4722 …}
+nested: Doctrine\ORM\PersistentCollection {#4721 …}
+votes: Doctrine\ORM\PersistentCollection {#4719 …}
+reports: Doctrine\ORM\PersistentCollection {#4731 …}
+favourites: Doctrine\ORM\PersistentCollection {#4733 …}
+notifications: Doctrine\ORM\PersistentCollection {#4735 …}
-id: 344573
-bodyTs: "'3.5':25 '512':60 'adaptor':19 'bona':23 'box':11 'byte':61 'confid':74 'could':65 'disk':76 'drive':27 'enclosur':3,28,53,68 'fide':24 'find':46 'given':50 'ideal':32 'inch':26 'list':71 'long':35 'long-term':34 'make/model':51 'one':13,64 'place':44 'presum':63 'purchas':66 'rather':20 'readabl':79 'report':55 'sata':16 'sector':57 'size':58 'term':36 'usb':18 'use':37 'wonder':39 'work':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173667"
+editedAt: null
+createdAt: DateTimeImmutable @1706359619 {#4726
date: 2024-01-27 13:46:59.0 +01:00
}
}
+root: App\Entity\EntryComment {#4641}
+body: "I dont know either. I used a seagate usb to sata adapter too and that gave me problems with large drives. Nothing on the datasheet mentioned anything, so i had an old backup external drive and swapped the drives to do my formatting/ transfer before putting the original back together"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706363238 {#4804
date: 2024-01-27 14:47:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@abominable_panda@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4807 …}
+nested: Doctrine\ORM\PersistentCollection {#4809 …}
+votes: Doctrine\ORM\PersistentCollection {#4811 …}
+reports: Doctrine\ORM\PersistentCollection {#4813 …}
+favourites: Doctrine\ORM\PersistentCollection {#4815 …}
+notifications: Doctrine\ORM\PersistentCollection {#4817 …}
-id: 344663
-bodyTs: "'adapt':12 'anyth':27 'back':49 'backup':33 'datasheet':25 'dont':2 'drive':21,35,39 'either':4 'extern':34 'format':43 'gave':16 'know':3 'larg':20 'mention':26 'noth':22 'old':32 'origin':48 'problem':18 'put':46 'sata':11 'seagat':8 'swap':37 'togeth':50 'transfer':44 'usb':9 'use':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7063797"
+editedAt: null
+createdAt: DateTimeImmutable @1706363238 {#4805
date: 2024-01-27 14:47:18.0 +01:00
}
} |
|
Show voter details
|
76 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4806
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+magazine: App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1900 …}
+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 {#2420
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1905 …}
+votes: Doctrine\ORM\PersistentCollection {#1934 …}
+reports: Doctrine\ORM\PersistentCollection {#1929 …}
+favourites: Doctrine\ORM\PersistentCollection {#1396 …}
+notifications: Doctrine\ORM\PersistentCollection {#2439 …}
+badges: Doctrine\ORM\PersistentCollection {#2357 …}
+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 {#1816
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2419
date: 2024-01-27 12:32:55.0 +01:00
}
}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4728
+user: Proxies\__CG__\App\Entity\User {#1966 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+image: null
+parent: App\Entity\EntryComment {#4641
+user: App\Entity\User {#4654 …}
+entry: App\Entity\Entry {#2480}
+magazine: App\Entity\Magazine {#263}
+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 {#4636
date: 2024-10-15 03:41:05.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
]
+children: Doctrine\ORM\PersistentCollection {#4642 …}
+nested: Doctrine\ORM\PersistentCollection {#4644 …}
+votes: Doctrine\ORM\PersistentCollection {#4646 …}
+reports: Doctrine\ORM\PersistentCollection {#4648 …}
+favourites: Doctrine\ORM\PersistentCollection {#4650 …}
+notifications: Doctrine\ORM\PersistentCollection {#4652 …}
-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 {#4637
date: 2024-01-27 13:09:47.0 +01:00
}
}
+root: App\Entity\EntryComment {#4641}
+body: """
The only enclosure I have that works out of the box is one of those “SATA to USB adaptors” rather than a bona fide “3.5 inch drive enclosure”. It’s not ideal for long-term use.\n
\n
I wonder if there’s a place to find out if any given make/model of enclosure will report the sector size as 512 bytes. Then, presumably, one could purchase an enclosure off that list and be confident the disk will be readable.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706359619 {#4729
date: 2024-01-27 13:46:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@abominable_panda@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4722 …}
+nested: Doctrine\ORM\PersistentCollection {#4721 …}
+votes: Doctrine\ORM\PersistentCollection {#4719 …}
+reports: Doctrine\ORM\PersistentCollection {#4731 …}
+favourites: Doctrine\ORM\PersistentCollection {#4733 …}
+notifications: Doctrine\ORM\PersistentCollection {#4735 …}
-id: 344573
-bodyTs: "'3.5':25 '512':60 'adaptor':19 'bona':23 'box':11 'byte':61 'confid':74 'could':65 'disk':76 'drive':27 'enclosur':3,28,53,68 'fide':24 'find':46 'given':50 'ideal':32 'inch':26 'list':71 'long':35 'long-term':34 'make/model':51 'one':13,64 'place':44 'presum':63 'purchas':66 'rather':20 'readabl':79 'report':55 'sata':16 'sector':57 'size':58 'term':36 'usb':18 'use':37 'wonder':39 'work':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://aussie.zone/comment/6173667"
+editedAt: null
+createdAt: DateTimeImmutable @1706359619 {#4726
date: 2024-01-27 13:46:59.0 +01:00
}
}
+root: App\Entity\EntryComment {#4641}
+body: "I dont know either. I used a seagate usb to sata adapter too and that gave me problems with large drives. Nothing on the datasheet mentioned anything, so i had an old backup external drive and swapped the drives to do my formatting/ transfer before putting the original back together"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706363238 {#4804
date: 2024-01-27 14:47:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@i_am_hiding@aussie.zone"
"@abominable_panda@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4807 …}
+nested: Doctrine\ORM\PersistentCollection {#4809 …}
+votes: Doctrine\ORM\PersistentCollection {#4811 …}
+reports: Doctrine\ORM\PersistentCollection {#4813 …}
+favourites: Doctrine\ORM\PersistentCollection {#4815 …}
+notifications: Doctrine\ORM\PersistentCollection {#4817 …}
-id: 344663
-bodyTs: "'adapt':12 'anyth':27 'back':49 'backup':33 'datasheet':25 'dont':2 'drive':21,35,39 'either':4 'extern':34 'format':43 'gave':16 'know':3 'larg':20 'mention':26 'noth':22 'old':32 'origin':48 'problem':18 'put':46 'sata':11 'seagat':8 'swap':37 'togeth':50 'transfer':44 'usb':9 'use':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/7063797"
+editedAt: null
+createdAt: DateTimeImmutable @1706363238 {#4805
date: 2024-01-27 14:47:18.0 +01:00
}
} |
|
Show voter details
|
77 |
DENIED
|
edit
|
App\Entity\Magazine {#263
+icon: Proxies\__CG__\App\Entity\Image {#244 …}
+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 {#273
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#235 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#231 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#220 …}
+entries: Doctrine\ORM\PersistentCollection {#178 …}
+posts: Doctrine\ORM\PersistentCollection {#136 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#198 …}
+bans: Doctrine\ORM\PersistentCollection {#115 …}
+reports: Doctrine\ORM\PersistentCollection {#101 …}
+badges: Doctrine\ORM\PersistentCollection {#79 …}
+logs: Doctrine\ORM\PersistentCollection {#69 …}
+awards: Doctrine\ORM\PersistentCollection {#1830 …}
+categories: Doctrine\ORM\PersistentCollection {#1863 …}
-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 {#267
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#269
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|