Partition alignment 8 TB seagate Ironwolf
Clash Royale CLAN TAG#URR8PPP
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
|
show 3 more comments
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
Please format your code/data blocks. Select each block in turn and use thebutton 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
Jan 4 at 23:16
get rid of -a opt and use mib instead of %
– frostschutz
Jan 4 at 23:39
I am not a linux nerd can you write full command frostschutz ?
– Rene Mortensen
Jan 4 at 23:40
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
Jan 4 at 23:43
1
parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
– AlexP
Jan 5 at 0:47
|
show 3 more comments
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
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
debian
edited Jan 5 at 18:46
GAD3R
25.9k1751107
25.9k1751107
asked Jan 4 at 21:38
Rene MortensenRene Mortensen
214
214
Please format your code/data blocks. Select each block in turn and use thebutton 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
Jan 4 at 23:16
get rid of -a opt and use mib instead of %
– frostschutz
Jan 4 at 23:39
I am not a linux nerd can you write full command frostschutz ?
– Rene Mortensen
Jan 4 at 23:40
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
Jan 4 at 23:43
1
parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
– AlexP
Jan 5 at 0:47
|
show 3 more comments
Please format your code/data blocks. Select each block in turn and use thebutton 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
Jan 4 at 23:16
get rid of -a opt and use mib instead of %
– frostschutz
Jan 4 at 23:39
I am not a linux nerd can you write full command frostschutz ?
– Rene Mortensen
Jan 4 at 23:40
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
Jan 4 at 23:43
1
parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
– AlexP
Jan 5 at 0:47
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
Jan 4 at 23:16
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
Jan 4 at 23:16
get rid of -a opt and use mib instead of %
– frostschutz
Jan 4 at 23:39
get rid of -a opt and use mib instead of %
– frostschutz
Jan 4 at 23:39
I am not a linux nerd can you write full command frostschutz ?
– Rene Mortensen
Jan 4 at 23:40
I am not a linux nerd can you write full command frostschutz ?
– Rene Mortensen
Jan 4 at 23:40
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
Jan 4 at 23:43
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
Jan 4 at 23:43
1
1
parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
– AlexP
Jan 5 at 0:47
parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
– AlexP
Jan 5 at 0:47
|
show 3 more comments
1 Answer
1
active
oldest
votes
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.
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
Jan 5 at 0:44
@AlexP Well, why don't you show how to useparted
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
Jan 5 at 0:49
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
Jan 5 at 1:07
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
Jan 5 at 11:44
The default value 8300 stands for "Linux filesystem", which is OK in this case.
– Johan Myréen
Jan 5 at 13:33
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
Jan 5 at 0:44
@AlexP Well, why don't you show how to useparted
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
Jan 5 at 0:49
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
Jan 5 at 1:07
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
Jan 5 at 11:44
The default value 8300 stands for "Linux filesystem", which is OK in this case.
– Johan Myréen
Jan 5 at 13:33
add a comment |
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.
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
Jan 5 at 0:44
@AlexP Well, why don't you show how to useparted
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
Jan 5 at 0:49
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
Jan 5 at 1:07
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
Jan 5 at 11:44
The default value 8300 stands for "Linux filesystem", which is OK in this case.
– Johan Myréen
Jan 5 at 13:33
add a comment |
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.
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.
answered Jan 5 at 0:39
Johan MyréenJohan Myréen
7,52411524
7,52411524
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
Jan 5 at 0:44
@AlexP Well, why don't you show how to useparted
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
Jan 5 at 0:49
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
Jan 5 at 1:07
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
Jan 5 at 11:44
The default value 8300 stands for "Linux filesystem", which is OK in this case.
– Johan Myréen
Jan 5 at 13:33
add a comment |
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
Jan 5 at 0:44
@AlexP Well, why don't you show how to useparted
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
Jan 5 at 0:49
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
Jan 5 at 1:07
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
Jan 5 at 11:44
The default value 8300 stands for "Linux filesystem", which is OK in this case.
– Johan Myréen
Jan 5 at 13:33
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
Jan 5 at 0:44
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
Jan 5 at 0:44
@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
Jan 5 at 0:49
@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
Jan 5 at 0:49
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
Jan 5 at 1:07
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
Jan 5 at 1:07
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
Jan 5 at 11:44
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
Jan 5 at 11:44
The default value 8300 stands for "Linux filesystem", which is OK in this case.
– Johan Myréen
Jan 5 at 13:33
The default value 8300 stands for "Linux filesystem", which is OK in this case.
– Johan Myréen
Jan 5 at 13:33
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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
Jan 4 at 23:16
get rid of -a opt and use mib instead of %
– frostschutz
Jan 4 at 23:39
I am not a linux nerd can you write full command frostschutz ?
– Rene Mortensen
Jan 4 at 23:40
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
Jan 4 at 23:43
1
parted /dev/sda mkpart PARTITION_NAME ext4 1MiB 100%
– AlexP
Jan 5 at 0:47