GParted partitioning options, align to cylinder or to MiB ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
GParted partitioning options, align to cylinder or to MiB ?
For the GParted partitioning options, when creating or changing a partition on a SATA hard drive, which option is best to use; (align to cylinder, or to MiB )? The newest version of GParted I used, and it did default to "align to MiB, which then created 1 MB gaps between some partitions. Is it better to have no gaps, and is this new version safe to use to move and or resize NTFS windows partitions ? Will it include the boot sector when it moves or resizes ntfs ?Thanks.
For the GParted partitioning options, when creating or changing a partition on a SATA hard drive, which option is best to use; (align to cylinder, or to MiB )?
Align to Cylinder is safer sound.
Quote:
The newest version of GParted I used, and it did default to "align to MiB, which then created 1 MB gaps between some partitions.
It is normal under Mb aligned partitions. Even running freeBSD 'fdisk' or any other tool implementing Mb alignment will result to similar anomaly.
Quote:
Is it better to have no gaps,
Yes, better.
Quote:
and is this new version safe to use to move and or resize NTFS windows partitions ?
Gparted has always been a good tool. But it is NTFS that screws files. For data storage I recommend ufs, zfs or raiserfs if you don't want to accumulate headaches in the future.
Quote:
Will it include the boot sector when it moves or resizes ntfs ?Thanks.
Gparted is wiser than NTFS. Whatever the new size ntfs becomes the same is recorded. BTW, resizing partitions has nothing to do with boot sector. Gparted always warns if it is about to change something in the first 512bytes of drive.
Okay thanks, I had a 25 GB XP partition as the 2nd, with a 70 GB as first partition, then I did shrink that first one by 5 GB, then I grew the XP partition into that now unallocated space, so to 30 GB. And it all seemed to go well, the folders and files were still there, and the XP ntfs file system checked good, and with the Vista boot manager it said error when I did try to boot XP, ( ntldr missing or corrupt ) so I put a fresh copy of that file there, and it starting booting XP but hung long time on that XP screen with 2 shades of blue, so I finally did a full clean re-install.
Alignment to 1MiB is a very good thing especially when today's hard disks and particularly SSDs use internally 4kiB sector size, translating it back and forth to standard 512b sector size. By proper alignment, done now by default by tools like gparted, as well as e.g. default installers of Windows Vista or 7, the filesystems created there do not suffer the sector--cluster misalign, starting the first 4kB cluster at the 512b of the preceding physical sector (however invisible to the OS), seriously degrading performance.
With today's disk sizes, few "empty" kiBs before and between partitions are not a problem, and the potential benefit of properly aligned partitions can be huge.
It should be noted, that also 4kiB cluster size should be preferred when formatting the partition, which is fortunately the default both for major Linux filesystems, and for Windows' NTFS.
By the way, because of a dualboot between Windows (Vista then back XP) and Linux, I use for all my data partitions exclusively NTFS (formatted and modified always from Windows), moreover all the NTFS partitions are fully Truecrypt-encrypted. From the Linux /home partition (also encrypted, but by ecryptfs) I use symlinks to the mounted /mount/truecryptX NTFS partitions where I store common application profiles shared among all the OSs (Thunderbird, Firefox etc). Works perfectly.
http://gparted.sourceforge.net/displ...tion-alignment Use MiB alignment for modern operating systems. This setting aligns partitions to start and end on precise mebibyte (1,048,576 byte) boundaries. MiB alignment provides enhanced performance when used with RAID systems and with Solid State Drives, such as USB flash drives.
http://gparted.sourceforge.net/displ...tion-alignment Use MiB alignment for modern operating systems. This setting aligns partitions to start and end on precise mebibyte (1,048,576 byte) boundaries. MiB alignment provides enhanced performance when used with RAID systems and with Solid State Drives, such as USB flash drives.
On systems that need partitions aligned to a certain amount (usually SSDs and harddisks with a physical sector size of 4KB) it is indeed a good idea to align to MBs instead of cylinders. To be sure that the pertitions are aligned as I want it I personally rather use plain fdisk instead of tools like GParted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.