Partition does not start on physical sector boundary
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My questions:
1. How can I correct it now ? (I have remote access with SSH only).
2. Why the heck fdisk set sectore size like this ? I have never before had to pay attention for that. (I was just using defaults).
Please note:
/dev/sda3 was created later; Not during OS installation process.
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
In the BUGS section of man fdisk you can read the following information:
Quote:
There are several *fdisk programs around. Each has its problems and strengths. Try them in the order cfdisk, fdisk, sfdisk. (Indeed, cfdisk is a beautiful program that has strict requirements on the partition tables it accepts, and produces high quality partition tables. Use it if you can. fdisk is a buggy program that does fuzzy things - usually it happens to produce reasonable results.
So fdisk authors advise to use cfdisk rather than fdisk.
Now you installed the system so you can’t redefine the partition boundaries. The next time you’ll decide to install the system prepare the partition table using cfdisk.
I do not think you need to do anything. Probably it is not nice or surprising, but it is still ok.
As fdisk shows, the OP has a disk with 4k physical sectors. Unaligned partitions will cause a major performance impact on these partitions (the same is true for partitions on SSDs). So it is not OK.
What surprises me is that newer fdisk versions shouldn't create the first partition at sector 63 by default, as it happened to you, for exactly this reason, the first partition should have been created at sector 2048.
I would recommend to delete those partitions and re-install the OS, this time using cfdisk instead. Have a look at partition alignment before starting the installation of the OS.
Dang it, my 2tb home drive is partitioned like this :S This is going to take some serious time to backup repartition and restore!
Before doing that action make sure that you really have a disk with 4k physical sectors. On disks with 512 byte sectors this type of partitioning is OK.
The problem with a start sector at 63 comes up with the 4K drives, but SSDs also have the same problem, only with different sector sizes (usually between 128K and 512K). To have some room for future devices the developers came up with 2048 logical sectors, which resemble 1M physical sectors.
SSDs have the same 4K physical sectors as HDDs. The 1M alignment is due to the erase-block size of simpler flash media (like SD cards and USB flash drives) and doesn't affect SSDs, which use a 4K-sector-based wear-leveling.
Seems so. Which OS/version/tool did you use to partition that disk?
Hmm, no telling I have had this home partition around for sometime. It could of been Slackware, Arch or maybe even Gentoo. I tend to us cfdisk of fdisk however. But that is not even a certainty. Sorry that doesn't really help much does it?
SSDs have the same 4K physical sectors as HDDs. The 1M alignment is due to the erase-block size of simpler flash media (like SD cards and USB flash drives) and doesn't affect SSDs, which use a 4K-sector-based wear-leveling.
OK, I shouldn't have said physical sector size, but flash block erase boundaries. Those are usually between 128K-512K and are those that have the performance impact when writing to the SSD. Partitions should be aligned to this erase boundaries and since 1M is a multiple of the usual sizes 2048 logical sectors is a save bet to start with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.