tabletbas.blogg.se

Format wd external hard drive 4k sectoring
Format wd external hard drive 4k sectoring










Kernel support for Advanced Format drives is available in kernel versions 2.6.31 and above. These changes ensure that all partitions on Advanced Format drives are properly aligned on 4K sector boundaries. If you want to repartition the disk but have problems because of the Error synchronizing error, try using gdisk or cgdisk (in the gdisk package) rather than parted or GParted the gdisk family is more robust against errors than is the parted family.Ĭhanges have been made to both the Linux kernel and utilities to support Advanced Format drives. Either way, if you see a change in logical sector size, you should address that issue before dealing with anything else. OTOH, that could be a side effect of parted trying to read backup GPT data from beyond the end of the disk. In particular, the Error synchronizing after initial wipe error you mentioned could indicate another problem. Or at least, it's one problem there may be others, too. If the logical sector size changes depending on how you attach the disk, then my hypothesis is correct and it's the source of your problem. If you run this test, then reattach the disk in the other way and run it again, you can compare the results. The important detail is in the final line shown here: The logical and physical sector sizes are both 512 bytes. I've omitted a bunch of information from this output. Sector size (logical/physical): 512B/512B To test my hypothesis, you can use a tool (like parted) that reports logical sector sizes. If both are necessary for some reason, you'll need to find an enclosure that works without applying this type of translation. The solution to this problem is to prepare and use the disk in one way - either use the USB enclosure or use a direct connection, not both. It'd be like telling a blindfolded person to "walk 2 forward," where you mean 2 feet, but the person thinks you mean 2 meters, and so walks into a wall. Thus, if you prepare the disk in a USB enclosure that translates in this way and then try to use the disk directly (or vice-versa), you'll see errors because the partitions (and even GPT backup data) won't be where the computer expects it to be. Both MBR and GPT partitioning schemes refer to data by sector numbers, so changing the sector size invalidates the partitioning data. I'm not positive, but I suspect that some enclosures do this only on over-2TiB disks. Some enclosures translate 512-byte logical sectors on the disk into 4096-byte logical sectors presented to the computer - that is, the opposite of what the firmware in an Advanced Format disk does. My hunch (and it is just a hunch) is that your problem results from switching between a USB enclosure and direct connection of the disk. (To be sure, partition alignment is important it's just not the source of your problem.) Chances are this isn't the source of your problem, though, and your focus on partition alignment is misplaced. This is done through juggling data in the drive's firmware, and it can result in performance problems if the partitions are not properly aligned. Is my configuration correct? Do I have performance penalty because the disk is formatted with 512k sectors, is gParted reporting false values or I have understood the whole thing wrong?įirst, most Advanced Format drives present a logical sector size of 512 bytes, even though the physical sector size is 4096 bytes (4KiB). Parted reports that the drive is aligned when I choose minimal: (parted) align-checkĪlignment type(min/opt) /minimal? min I have found some reports that libparted has a problem with non-512k sectors 2 and others 3 that say that aligning to MiB is enough. While cat /sys/block/sdb/queue/physical_block_size reports 4096 Gparted shows the disk having 512k sectors which I know is not true 1 Files can be copied from and to the drive successfully. The drive is recognized correctly, and mounts properly. I used gparted to create a GPT partition table (the ubuntu disk utility wouldn't let me with Error synchronizing after initial wipe: Timed out waiting for object (udisks-error-quark, 0), created one big 3Tb Ext4 partition, left the default Align to value to MiB and formatted.

format wd external hard drive 4k sectoring format wd external hard drive 4k sectoring

I connected the disk with USB again, copied all the data, and plugged to sata once again.

FORMAT WD EXTERNAL HARD DRIVE 4K SECTORING FREE

My data wasn't visible to OS (it was seeing one unknown ~300GiB partition and the rest as free space) so I started reading about Advanced Format and >2TB drives. I formatted to ext4, copied some data to it and then I removed it from the enclosure and connected it directly to the motherboard. I bought a Seagate ST3000DM001 3TB hard drive.










Format wd external hard drive 4k sectoring