Re: btrfs on whole disk (no partitions)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Imran Geriskovan posted on Wed, 25 Jun 2014 15:01:49 +0200 as excerpted:

> Note that gdisk gives default 8 sector alignment value for AF disks.
> That is 'sector' meant by gdisk is 'Logical Sector'!
> Sufficiently determined user may create misaligned partitions by playing
> with alignment value and partition start/end values.

AFAIK, for gdisk it's actually 2048 sector (1 MiB) alignment by default, 
on new devices or if you clear and redo the entire partition table.  On 
pre-partitioned devices, gdisk will attempt to identify current 
alignment, but will set 8-sector alignment on devices > 300 GiB even 
where previous alignment vales are less than that.  See the gdisk manpage 
under the "l" option for more.

The same applies to cgdisk (under the Align option in its manpage).

This has been the documented gdisk behavior for some versions now (I've 
been using it for awhile and remember when the default behavior changed), 
altho I'm referring to the 0.8.10 manpages for the version I have 
installed right now.

Tho here, I started my first partition, the BIOS boot partition, at 1 MiB 
and made it 3 MiB in size, so it ends at 4 MiB, with everything beyond 
that 4 MiB aligned.  The second partition is the EFI system partition, 
124 MiB in size so ending at 128 MiB, with everything beyond that 128 MiB 
aligned.  The next partition is /boot, 256 MiB, followed by a 640 MiB 
/var/log, ending at 1 GiB, with everything beyond that aligned on GiB 
boundaries.

That makes for easier reconstruction should I lose both copies of the GPT 
partition table. Plus, as Linus says, "real men" publish it on the net 
and then use the net for backup, and I've posted my partition table 
several times, so if I need to I can just look it up in my postings right 
here. =:^)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux