1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#1794
+user: Proxies\__CG__\App\Entity\User {#1900 …}
+magazine: App\Entity\Magazine {#289
+icon: Proxies\__CG__\App\Entity\Image {#270 …}
+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 {#299
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#261 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#257 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#246 …}
+entries: Doctrine\ORM\PersistentCollection {#204 …}
+posts: Doctrine\ORM\PersistentCollection {#162 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#224 …}
+bans: Doctrine\ORM\PersistentCollection {#141 …}
+reports: Doctrine\ORM\PersistentCollection {#127 …}
+badges: Doctrine\ORM\PersistentCollection {#105 …}
+logs: Doctrine\ORM\PersistentCollection {#95 …}
+awards: Doctrine\ORM\PersistentCollection {#84 …}
+categories: Doctrine\ORM\PersistentCollection {#71 …}
-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 {#293
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#292
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1916 …}
+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 {#1861
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1947 …}
+votes: Doctrine\ORM\PersistentCollection {#1893 …}
+reports: Doctrine\ORM\PersistentCollection {#2388 …}
+favourites: Doctrine\ORM\PersistentCollection {#1397 …}
+notifications: Doctrine\ORM\PersistentCollection {#1371 …}
+badges: Doctrine\ORM\PersistentCollection {#1379 …}
+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 {#75
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2415
date: 2024-01-27 12:32:55.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#1794
+user: Proxies\__CG__\App\Entity\User {#1900 …}
+magazine: App\Entity\Magazine {#289
+icon: Proxies\__CG__\App\Entity\Image {#270 …}
+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 {#299
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#261 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#257 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#246 …}
+entries: Doctrine\ORM\PersistentCollection {#204 …}
+posts: Doctrine\ORM\PersistentCollection {#162 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#224 …}
+bans: Doctrine\ORM\PersistentCollection {#141 …}
+reports: Doctrine\ORM\PersistentCollection {#127 …}
+badges: Doctrine\ORM\PersistentCollection {#105 …}
+logs: Doctrine\ORM\PersistentCollection {#95 …}
+awards: Doctrine\ORM\PersistentCollection {#84 …}
+categories: Doctrine\ORM\PersistentCollection {#71 …}
-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 {#293
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#292
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1916 …}
+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 {#1861
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1947 …}
+votes: Doctrine\ORM\PersistentCollection {#1893 …}
+reports: Doctrine\ORM\PersistentCollection {#2388 …}
+favourites: Doctrine\ORM\PersistentCollection {#1397 …}
+notifications: Doctrine\ORM\PersistentCollection {#1371 …}
+badges: Doctrine\ORM\PersistentCollection {#1379 …}
+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 {#75
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2415
date: 2024-01-27 12:32:55.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#1794
+user: Proxies\__CG__\App\Entity\User {#1900 …}
+magazine: App\Entity\Magazine {#289
+icon: Proxies\__CG__\App\Entity\Image {#270 …}
+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 {#299
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#261 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#257 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#246 …}
+entries: Doctrine\ORM\PersistentCollection {#204 …}
+posts: Doctrine\ORM\PersistentCollection {#162 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#224 …}
+bans: Doctrine\ORM\PersistentCollection {#141 …}
+reports: Doctrine\ORM\PersistentCollection {#127 …}
+badges: Doctrine\ORM\PersistentCollection {#105 …}
+logs: Doctrine\ORM\PersistentCollection {#95 …}
+awards: Doctrine\ORM\PersistentCollection {#84 …}
+categories: Doctrine\ORM\PersistentCollection {#71 …}
-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 {#293
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#292
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1916 …}
+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 {#1861
date: 2024-10-16 20:05:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1947 …}
+votes: Doctrine\ORM\PersistentCollection {#1893 …}
+reports: Doctrine\ORM\PersistentCollection {#2388 …}
+favourites: Doctrine\ORM\PersistentCollection {#1397 …}
+notifications: Doctrine\ORM\PersistentCollection {#1371 …}
+badges: Doctrine\ORM\PersistentCollection {#1379 …}
+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 {#75
date: 2024-10-15 23:19:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706355175 {#2415
date: 2024-01-27 12:32:55.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
edit
|
App\Entity\Magazine {#289
+icon: Proxies\__CG__\App\Entity\Image {#270 …}
+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 {#299
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#261 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#257 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#246 …}
+entries: Doctrine\ORM\PersistentCollection {#204 …}
+posts: Doctrine\ORM\PersistentCollection {#162 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#224 …}
+bans: Doctrine\ORM\PersistentCollection {#141 …}
+reports: Doctrine\ORM\PersistentCollection {#127 …}
+badges: Doctrine\ORM\PersistentCollection {#105 …}
+logs: Doctrine\ORM\PersistentCollection {#95 …}
+awards: Doctrine\ORM\PersistentCollection {#84 …}
+categories: Doctrine\ORM\PersistentCollection {#71 …}
-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 {#293
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#292
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|