Partition alignment 8 TB seagate Ironwolf












-1














I have a Seagate disk that I am trying to get partition aligned. I've tried this command in parted:



sudo parted /dev/sda mklabel gpt

sudo parted -a opt /dev/sda mkpart primary ext4 0% 100%


Get this fdisk error:



Device     Start         End     Sectors  Size Type
/dev/sda1 65535 15628000379 15627934845 7.3T Linux filesystem

Partition 1 does not start on physical sector boundary.


How do I get this disk partion aligment in parted ?



(I've also tried this guide: https://rainbow.chard.org/2013/01/30/how-to-align-partitions-for-best-performance-using-parted/



unsuccessfully)



A little info about harddrive:



root@odroidxu4:~# cat /sys/block/sda/queue/optimal_io_size 33553920
root@odroidxu4:~# cat /sys/block/sda/queue/minimum_io_size 4096
root@odroidxu4:~# cat /sys/block/sda/alignment_offset 0
root@odroidxu4:~# cat /sys/block/sda/queue/physical_block_size 4096
root@odroidxu4:~# hdparm -I /dev/sda

ATA device, with non-removable media
Model Number: ST8000VN0022-2EL112
Serial Number: ZA1CH2SF
Firmware Revision: SC61
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SAT A Rev 2.5, SATA Rev 2.6, SATA Rev 3.0

Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 15628053168
Logical Sector size: 512 bytes
Physical Sector size: 4096 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 7630885 MBytes
device size with M = 1000*1000: 8001563 MBytes (8001 GB)
cache/buffer size = unknown
Form Factor: 3.5 inch
Nominal Media Rotation Rate: 7200









share|improve this question
























  • Please format your code/data blocks. Select each block in turn and use the {} button on the editing menu to indent it four spaces. Also ensure there's a blank line above and below each block. (I'd do it for you if i weren't on a mobile device that doesn't have {}.)
    – roaima
    19 hours ago












  • get rid of -a opt and use mib instead of %
    – frostschutz
    19 hours ago












  • I am not a linux nerd can you write full command frostschutz ?
    – Rene Mortensen
    19 hours ago










  • As I understand "-a opt" to tell parted to must align (optimal) but why it doesn't work I don't understand? When I check if it is aligned in parted it is ok but not in fdisk :/
    – Rene Mortensen
    19 hours ago








  • 1




    parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
    – AlexP
    18 hours ago
















-1














I have a Seagate disk that I am trying to get partition aligned. I've tried this command in parted:



sudo parted /dev/sda mklabel gpt

sudo parted -a opt /dev/sda mkpart primary ext4 0% 100%


Get this fdisk error:



Device     Start         End     Sectors  Size Type
/dev/sda1 65535 15628000379 15627934845 7.3T Linux filesystem

Partition 1 does not start on physical sector boundary.


How do I get this disk partion aligment in parted ?



(I've also tried this guide: https://rainbow.chard.org/2013/01/30/how-to-align-partitions-for-best-performance-using-parted/



unsuccessfully)



A little info about harddrive:



root@odroidxu4:~# cat /sys/block/sda/queue/optimal_io_size 33553920
root@odroidxu4:~# cat /sys/block/sda/queue/minimum_io_size 4096
root@odroidxu4:~# cat /sys/block/sda/alignment_offset 0
root@odroidxu4:~# cat /sys/block/sda/queue/physical_block_size 4096
root@odroidxu4:~# hdparm -I /dev/sda

ATA device, with non-removable media
Model Number: ST8000VN0022-2EL112
Serial Number: ZA1CH2SF
Firmware Revision: SC61
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SAT A Rev 2.5, SATA Rev 2.6, SATA Rev 3.0

Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 15628053168
Logical Sector size: 512 bytes
Physical Sector size: 4096 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 7630885 MBytes
device size with M = 1000*1000: 8001563 MBytes (8001 GB)
cache/buffer size = unknown
Form Factor: 3.5 inch
Nominal Media Rotation Rate: 7200









share|improve this question
























  • Please format your code/data blocks. Select each block in turn and use the {} button on the editing menu to indent it four spaces. Also ensure there's a blank line above and below each block. (I'd do it for you if i weren't on a mobile device that doesn't have {}.)
    – roaima
    19 hours ago












  • get rid of -a opt and use mib instead of %
    – frostschutz
    19 hours ago












  • I am not a linux nerd can you write full command frostschutz ?
    – Rene Mortensen
    19 hours ago










  • As I understand "-a opt" to tell parted to must align (optimal) but why it doesn't work I don't understand? When I check if it is aligned in parted it is ok but not in fdisk :/
    – Rene Mortensen
    19 hours ago








  • 1




    parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
    – AlexP
    18 hours ago














-1












-1








-1







I have a Seagate disk that I am trying to get partition aligned. I've tried this command in parted:



sudo parted /dev/sda mklabel gpt

sudo parted -a opt /dev/sda mkpart primary ext4 0% 100%


Get this fdisk error:



Device     Start         End     Sectors  Size Type
/dev/sda1 65535 15628000379 15627934845 7.3T Linux filesystem

Partition 1 does not start on physical sector boundary.


How do I get this disk partion aligment in parted ?



(I've also tried this guide: https://rainbow.chard.org/2013/01/30/how-to-align-partitions-for-best-performance-using-parted/



unsuccessfully)



A little info about harddrive:



root@odroidxu4:~# cat /sys/block/sda/queue/optimal_io_size 33553920
root@odroidxu4:~# cat /sys/block/sda/queue/minimum_io_size 4096
root@odroidxu4:~# cat /sys/block/sda/alignment_offset 0
root@odroidxu4:~# cat /sys/block/sda/queue/physical_block_size 4096
root@odroidxu4:~# hdparm -I /dev/sda

ATA device, with non-removable media
Model Number: ST8000VN0022-2EL112
Serial Number: ZA1CH2SF
Firmware Revision: SC61
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SAT A Rev 2.5, SATA Rev 2.6, SATA Rev 3.0

Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 15628053168
Logical Sector size: 512 bytes
Physical Sector size: 4096 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 7630885 MBytes
device size with M = 1000*1000: 8001563 MBytes (8001 GB)
cache/buffer size = unknown
Form Factor: 3.5 inch
Nominal Media Rotation Rate: 7200









share|improve this question















I have a Seagate disk that I am trying to get partition aligned. I've tried this command in parted:



sudo parted /dev/sda mklabel gpt

sudo parted -a opt /dev/sda mkpart primary ext4 0% 100%


Get this fdisk error:



Device     Start         End     Sectors  Size Type
/dev/sda1 65535 15628000379 15627934845 7.3T Linux filesystem

Partition 1 does not start on physical sector boundary.


How do I get this disk partion aligment in parted ?



(I've also tried this guide: https://rainbow.chard.org/2013/01/30/how-to-align-partitions-for-best-performance-using-parted/



unsuccessfully)



A little info about harddrive:



root@odroidxu4:~# cat /sys/block/sda/queue/optimal_io_size 33553920
root@odroidxu4:~# cat /sys/block/sda/queue/minimum_io_size 4096
root@odroidxu4:~# cat /sys/block/sda/alignment_offset 0
root@odroidxu4:~# cat /sys/block/sda/queue/physical_block_size 4096
root@odroidxu4:~# hdparm -I /dev/sda

ATA device, with non-removable media
Model Number: ST8000VN0022-2EL112
Serial Number: ZA1CH2SF
Firmware Revision: SC61
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SAT A Rev 2.5, SATA Rev 2.6, SATA Rev 3.0

Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 15628053168
Logical Sector size: 512 bytes
Physical Sector size: 4096 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 7630885 MBytes
device size with M = 1000*1000: 8001563 MBytes (8001 GB)
cache/buffer size = unknown
Form Factor: 3.5 inch
Nominal Media Rotation Rate: 7200






debian






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 21 mins ago









GAD3R

25.5k1750107




25.5k1750107










asked 21 hours ago









Rene Mortensen

12




12












  • Please format your code/data blocks. Select each block in turn and use the {} button on the editing menu to indent it four spaces. Also ensure there's a blank line above and below each block. (I'd do it for you if i weren't on a mobile device that doesn't have {}.)
    – roaima
    19 hours ago












  • get rid of -a opt and use mib instead of %
    – frostschutz
    19 hours ago












  • I am not a linux nerd can you write full command frostschutz ?
    – Rene Mortensen
    19 hours ago










  • As I understand "-a opt" to tell parted to must align (optimal) but why it doesn't work I don't understand? When I check if it is aligned in parted it is ok but not in fdisk :/
    – Rene Mortensen
    19 hours ago








  • 1




    parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
    – AlexP
    18 hours ago


















  • Please format your code/data blocks. Select each block in turn and use the {} button on the editing menu to indent it four spaces. Also ensure there's a blank line above and below each block. (I'd do it for you if i weren't on a mobile device that doesn't have {}.)
    – roaima
    19 hours ago












  • get rid of -a opt and use mib instead of %
    – frostschutz
    19 hours ago












  • I am not a linux nerd can you write full command frostschutz ?
    – Rene Mortensen
    19 hours ago










  • As I understand "-a opt" to tell parted to must align (optimal) but why it doesn't work I don't understand? When I check if it is aligned in parted it is ok but not in fdisk :/
    – Rene Mortensen
    19 hours ago








  • 1




    parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
    – AlexP
    18 hours ago
















Please format your code/data blocks. Select each block in turn and use the {} button on the editing menu to indent it four spaces. Also ensure there's a blank line above and below each block. (I'd do it for you if i weren't on a mobile device that doesn't have {}.)
– roaima
19 hours ago






Please format your code/data blocks. Select each block in turn and use the {} button on the editing menu to indent it four spaces. Also ensure there's a blank line above and below each block. (I'd do it for you if i weren't on a mobile device that doesn't have {}.)
– roaima
19 hours ago














get rid of -a opt and use mib instead of %
– frostschutz
19 hours ago






get rid of -a opt and use mib instead of %
– frostschutz
19 hours ago














I am not a linux nerd can you write full command frostschutz ?
– Rene Mortensen
19 hours ago




I am not a linux nerd can you write full command frostschutz ?
– Rene Mortensen
19 hours ago












As I understand "-a opt" to tell parted to must align (optimal) but why it doesn't work I don't understand? When I check if it is aligned in parted it is ok but not in fdisk :/
– Rene Mortensen
19 hours ago






As I understand "-a opt" to tell parted to must align (optimal) but why it doesn't work I don't understand? When I check if it is aligned in parted it is ok but not in fdisk :/
– Rene Mortensen
19 hours ago






1




1




parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
– AlexP
18 hours ago




parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
– AlexP
18 hours ago










1 Answer
1






active

oldest

votes


















0














Don't use parted, as it is obviously not up to the job. To partition a GPT disk, use gdisk. Alternatively, if your version of fdisk understands GPT partitions, you can use that as well. Just delete the partition and create a new partition. Format the partition with mkfs.ext4. Note that doing so will destroy any data you already have written to the disk.






share|improve this answer





















  • parted is perfectly able to do the job. Just tell it where to put the partition. It accepts exact positioning at the level of sectors.
    – AlexP
    18 hours ago










  • @AlexP Well, why don't you show how to use parted to create a partition that is aligned so that the starting sector is a multiple of eight (required by the physical sector size of the disk)? Gdisk does this automatically.
    – Johan Myréen
    18 hours ago






  • 1




    parted <disk> mkpart <partition_name> <filesystem_type> <start> <end>, where <start> and <end> can be given in sectors (e.g., 2048s), binary megabytes (e.g., 1MiB) etc.
    – AlexP
    18 hours ago










  • Now I have tried Gdisk and it seems to work out of the box but what should I choose in : Hex code or GUID (L to show codes, Enter = 8300): Is just a linux etx4 share on debian
    – Rene Mortensen
    7 hours ago












  • The default value 8300 stands for "Linux filesystem", which is OK in this case.
    – Johan Myréen
    5 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492589%2fpartition-alignment-8-tb-seagate-ironwolf%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Don't use parted, as it is obviously not up to the job. To partition a GPT disk, use gdisk. Alternatively, if your version of fdisk understands GPT partitions, you can use that as well. Just delete the partition and create a new partition. Format the partition with mkfs.ext4. Note that doing so will destroy any data you already have written to the disk.






share|improve this answer





















  • parted is perfectly able to do the job. Just tell it where to put the partition. It accepts exact positioning at the level of sectors.
    – AlexP
    18 hours ago










  • @AlexP Well, why don't you show how to use parted to create a partition that is aligned so that the starting sector is a multiple of eight (required by the physical sector size of the disk)? Gdisk does this automatically.
    – Johan Myréen
    18 hours ago






  • 1




    parted <disk> mkpart <partition_name> <filesystem_type> <start> <end>, where <start> and <end> can be given in sectors (e.g., 2048s), binary megabytes (e.g., 1MiB) etc.
    – AlexP
    18 hours ago










  • Now I have tried Gdisk and it seems to work out of the box but what should I choose in : Hex code or GUID (L to show codes, Enter = 8300): Is just a linux etx4 share on debian
    – Rene Mortensen
    7 hours ago












  • The default value 8300 stands for "Linux filesystem", which is OK in this case.
    – Johan Myréen
    5 hours ago
















0














Don't use parted, as it is obviously not up to the job. To partition a GPT disk, use gdisk. Alternatively, if your version of fdisk understands GPT partitions, you can use that as well. Just delete the partition and create a new partition. Format the partition with mkfs.ext4. Note that doing so will destroy any data you already have written to the disk.






share|improve this answer





















  • parted is perfectly able to do the job. Just tell it where to put the partition. It accepts exact positioning at the level of sectors.
    – AlexP
    18 hours ago










  • @AlexP Well, why don't you show how to use parted to create a partition that is aligned so that the starting sector is a multiple of eight (required by the physical sector size of the disk)? Gdisk does this automatically.
    – Johan Myréen
    18 hours ago






  • 1




    parted <disk> mkpart <partition_name> <filesystem_type> <start> <end>, where <start> and <end> can be given in sectors (e.g., 2048s), binary megabytes (e.g., 1MiB) etc.
    – AlexP
    18 hours ago










  • Now I have tried Gdisk and it seems to work out of the box but what should I choose in : Hex code or GUID (L to show codes, Enter = 8300): Is just a linux etx4 share on debian
    – Rene Mortensen
    7 hours ago












  • The default value 8300 stands for "Linux filesystem", which is OK in this case.
    – Johan Myréen
    5 hours ago














0












0








0






Don't use parted, as it is obviously not up to the job. To partition a GPT disk, use gdisk. Alternatively, if your version of fdisk understands GPT partitions, you can use that as well. Just delete the partition and create a new partition. Format the partition with mkfs.ext4. Note that doing so will destroy any data you already have written to the disk.






share|improve this answer












Don't use parted, as it is obviously not up to the job. To partition a GPT disk, use gdisk. Alternatively, if your version of fdisk understands GPT partitions, you can use that as well. Just delete the partition and create a new partition. Format the partition with mkfs.ext4. Note that doing so will destroy any data you already have written to the disk.







share|improve this answer












share|improve this answer



share|improve this answer










answered 18 hours ago









Johan Myréen

7,45011524




7,45011524












  • parted is perfectly able to do the job. Just tell it where to put the partition. It accepts exact positioning at the level of sectors.
    – AlexP
    18 hours ago










  • @AlexP Well, why don't you show how to use parted to create a partition that is aligned so that the starting sector is a multiple of eight (required by the physical sector size of the disk)? Gdisk does this automatically.
    – Johan Myréen
    18 hours ago






  • 1




    parted <disk> mkpart <partition_name> <filesystem_type> <start> <end>, where <start> and <end> can be given in sectors (e.g., 2048s), binary megabytes (e.g., 1MiB) etc.
    – AlexP
    18 hours ago










  • Now I have tried Gdisk and it seems to work out of the box but what should I choose in : Hex code or GUID (L to show codes, Enter = 8300): Is just a linux etx4 share on debian
    – Rene Mortensen
    7 hours ago












  • The default value 8300 stands for "Linux filesystem", which is OK in this case.
    – Johan Myréen
    5 hours ago


















  • parted is perfectly able to do the job. Just tell it where to put the partition. It accepts exact positioning at the level of sectors.
    – AlexP
    18 hours ago










  • @AlexP Well, why don't you show how to use parted to create a partition that is aligned so that the starting sector is a multiple of eight (required by the physical sector size of the disk)? Gdisk does this automatically.
    – Johan Myréen
    18 hours ago






  • 1




    parted <disk> mkpart <partition_name> <filesystem_type> <start> <end>, where <start> and <end> can be given in sectors (e.g., 2048s), binary megabytes (e.g., 1MiB) etc.
    – AlexP
    18 hours ago










  • Now I have tried Gdisk and it seems to work out of the box but what should I choose in : Hex code or GUID (L to show codes, Enter = 8300): Is just a linux etx4 share on debian
    – Rene Mortensen
    7 hours ago












  • The default value 8300 stands for "Linux filesystem", which is OK in this case.
    – Johan Myréen
    5 hours ago
















parted is perfectly able to do the job. Just tell it where to put the partition. It accepts exact positioning at the level of sectors.
– AlexP
18 hours ago




parted is perfectly able to do the job. Just tell it where to put the partition. It accepts exact positioning at the level of sectors.
– AlexP
18 hours ago












@AlexP Well, why don't you show how to use parted to create a partition that is aligned so that the starting sector is a multiple of eight (required by the physical sector size of the disk)? Gdisk does this automatically.
– Johan Myréen
18 hours ago




@AlexP Well, why don't you show how to use parted to create a partition that is aligned so that the starting sector is a multiple of eight (required by the physical sector size of the disk)? Gdisk does this automatically.
– Johan Myréen
18 hours ago




1




1




parted <disk> mkpart <partition_name> <filesystem_type> <start> <end>, where <start> and <end> can be given in sectors (e.g., 2048s), binary megabytes (e.g., 1MiB) etc.
– AlexP
18 hours ago




parted <disk> mkpart <partition_name> <filesystem_type> <start> <end>, where <start> and <end> can be given in sectors (e.g., 2048s), binary megabytes (e.g., 1MiB) etc.
– AlexP
18 hours ago












Now I have tried Gdisk and it seems to work out of the box but what should I choose in : Hex code or GUID (L to show codes, Enter = 8300): Is just a linux etx4 share on debian
– Rene Mortensen
7 hours ago






Now I have tried Gdisk and it seems to work out of the box but what should I choose in : Hex code or GUID (L to show codes, Enter = 8300): Is just a linux etx4 share on debian
– Rene Mortensen
7 hours ago














The default value 8300 stands for "Linux filesystem", which is OK in this case.
– Johan Myréen
5 hours ago




The default value 8300 stands for "Linux filesystem", which is OK in this case.
– Johan Myréen
5 hours ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492589%2fpartition-alignment-8-tb-seagate-ironwolf%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

濃尾地震

How to rewrite equation of hyperbola in standard form

No ethernet ip address in my vocore2