FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 06-26-2012, 09:25 PM
Mark Knecht
 
Default Is wrong 4k sector alignment still an issue?

On Tue, Jun 26, 2012 at 2:13 PM, Nikos Chantziaras <realnc@gmail.com> wrote:
> I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. *I
> suppose by now everything will "just work" and the various tools will now by
> default create correctly aligned partitions?
>
>

I guess it depends on what tools you use to create partitions but I
believe the stable version of fdisk does now align to 4k by default.
Just make sure the starting address is divisible by 8 and you should
be good to go no matter what tools you use.

HTH,
Mark
 
Old 06-26-2012, 09:49 PM
Neil Bothwick
 
Default Is wrong 4k sector alignment still an issue?

On Tue, 26 Jun 2012 16:23:49 -0500, Paul Hartman wrote:

> > I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte
> > ones. *I suppose by now everything will "just work" and the various
> > tools will now by default create correctly aligned partitions?
>
> Most of them should. Latest fdisk and gdisk should align to 1MB and
> latest parted etc. should as well.

I researched this for the latest issue of LXF and the only one that still
uses 512K blocks is cfdisk (cgdisk is fine).


--
Neil Bothwick

Top Oxymorons Number 48: freewill offering
 
Old 06-26-2012, 09:54 PM
Michael Mol
 
Default Is wrong 4k sector alignment still an issue?

LXF?

On Jun 26, 2012 5:53 PM, "Neil Bothwick" <neil@digimed.co.uk> wrote:
On Tue, 26 Jun 2012 16:23:49 -0500, Paul Hartman wrote:



> > I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte

> > ones. *I suppose by now everything will "just work" and the various

> > tools will now by default create correctly aligned partitions?

>

> Most of them should. Latest fdisk and gdisk should align to 1MB and

> latest parted etc. should as well.



I researched this for the latest issue of LXF and the only one that still

uses 512K blocks is cfdisk (cgdisk is fine).





--

Neil Bothwick



Top Oxymorons Number 48: freewill offering
 
Old 06-26-2012, 10:06 PM
Nikos Chantziaras
 
Default Is wrong 4k sector alignment still an issue?

On 27/06/12 00:13, Nikos Chantziaras wrote:

I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones.
I suppose by now everything will "just work" and the various tools
will now by default create correctly aligned partitions?


Thanks everyone for the comments. I'm using cfdisk, since I find it's
the easiest CLI partitioner (fdisk and parted don't offer menus but you
need to type commands; I hate that).


I guess I should now switch to something else. I guess it's time for
GParted (I'd prefer something for KDE, but it looks like there's nothing
offered.)
 
Old 06-26-2012, 10:22 PM
Neil Bothwick
 
Default Is wrong 4k sector alignment still an issue?

On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote:

> > I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte
> > ones. I suppose by now everything will "just work" and the various
> > tools will now by default create correctly aligned partitions?
>
> Thanks everyone for the comments. I'm using cfdisk, since I find it's
> the easiest CLI partitioner (fdisk and parted don't offer menus but you
> need to type commands; I hate that).

If you use a GPT partition table, you can use cgdisk and banish the
abominations of extended and logical partitions at the same time.


--
Neil Bothwick

Evolution stops when stupidity is no longer fatal!
 
Old 06-26-2012, 10:33 PM
Nikos Chantziaras
 
Default Is wrong 4k sector alignment still an issue?

On 27/06/12 01:22, Neil Bothwick wrote:

On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote:


I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte
ones. I suppose by now everything will "just work" and the various
tools will now by default create correctly aligned partitions?


Thanks everyone for the comments. I'm using cfdisk, since I find it's
the easiest CLI partitioner (fdisk and parted don't offer menus but you
need to type commands; I hate that).


If you use a GPT partition table, you can use cgdisk and banish the
abominations of extended and logical partitions at the same time.


I've no idea whether my mainboard can boot from it. It *seems* it has
UEFI, but I'm not really sure.
 
Old 06-26-2012, 11:06 PM
Paul Hartman
 
Default Is wrong 4k sector alignment still an issue?

On Tue, Jun 26, 2012 at 5:33 PM, Nikos Chantziaras <realnc@gmail.com> wrote:
> On 27/06/12 01:22, Neil Bothwick wrote:
>>
>> On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote:
>>
>>>> I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte
>>>> ones. I suppose by now everything will "just work" and the various
>>>> tools will now by default create correctly aligned partitions?
>>>
>>>
>>> Thanks everyone for the comments. *I'm using cfdisk, since I find it's
>>> the easiest CLI partitioner (fdisk and parted don't offer menus but you
>>> need to type commands; I hate that).
>>
>>
>> If you use a GPT partition table, you can use cgdisk and banish the
>> abominations of extended and logical partitions at the same time.
>
>
> I've no idea whether my mainboard can boot from it. *It *seems* it has UEFI,
> but I'm not really sure.

I think it just depends on your bootloader. Gentoo's grub legacy can
boot from GPT and of course grub2 can too.
 
Old 06-26-2012, 11:18 PM
Nikos Chantziaras
 
Default Is wrong 4k sector alignment still an issue?

On 27/06/12 02:06, Paul Hartman wrote:

On Tue, Jun 26, 2012 at 5:33 PM, Nikos Chantziaras <realnc@gmail.com> wrote:

On 27/06/12 01:22, Neil Bothwick wrote:


On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote:


I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte
ones. I suppose by now everything will "just work" and the various
tools will now by default create correctly aligned partitions?



Thanks everyone for the comments. I'm using cfdisk, since I find it's
the easiest CLI partitioner (fdisk and parted don't offer menus but you
need to type commands; I hate that).



If you use a GPT partition table, you can use cgdisk and banish the
abominations of extended and logical partitions at the same time.



I've no idea whether my mainboard can boot from it. It *seems* it has UEFI,
but I'm not really sure.


I think it just depends on your bootloader. Gentoo's grub legacy can
boot from GPT and of course grub2 can too.


I guess I'll just try with a quick Ubuntu install. I suspect though
that the BIOS must be able to actually find Grub in order to boot it,
and it might not be able to.
 
Old 06-27-2012, 12:12 AM
Peter Humphrey
 
Default Is wrong 4k sector alignment still an issue?

On Tuesday 26 June 2012 22:54:32 Michael Mol wrote:
> LXF?

"Linux Format", the best monthly journal for all things Linux in the
world. Bar none.

(For some reason they've unsubscribed me and ignored my e-mail saying
I'd not unsubscribed. I must get round to starting a new subscription.)

--
Rgds
Peter
 
Old 06-27-2012, 03:16 AM
Paul Hartman
 
Default Is wrong 4k sector alignment still an issue?

On Tue, Jun 26, 2012 at 6:18 PM, Nikos Chantziaras <realnc@gmail.com> wrote:
> On 27/06/12 02:06, Paul Hartman wrote:
>>
>> On Tue, Jun 26, 2012 at 5:33 PM, Nikos Chantziaras <realnc@gmail.com>
>> wrote:
>>>
>>> On 27/06/12 01:22, Neil Bothwick wrote:
>>>>
>>>>
>>>> On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote:
>>>>
>>>>>> I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte
>>>>>> ones. I suppose by now everything will "just work" and the various
>>>>>> tools will now by default create correctly aligned partitions?
>>>>>
>>>>>
>>>>>
>>>>> Thanks everyone for the comments. *I'm using cfdisk, since I find it's
>>>>> the easiest CLI partitioner (fdisk and parted don't offer menus but you
>>>>> need to type commands; I hate that).
>>>>
>>>>
>>>>
>>>> If you use a GPT partition table, you can use cgdisk and banish the
>>>> abominations of extended and logical partitions at the same time.
>>>
>>>
>>>
>>> I've no idea whether my mainboard can boot from it. *It *seems* it has
>>> UEFI,
>>> but I'm not really sure.
>>
>>
>> I think it just depends on your bootloader. Gentoo's grub legacy can
>> boot from GPT and of course grub2 can too.
>
>
> I guess I'll just try with a quick Ubuntu install. *I suspect though that
> the BIOS must be able to actually find Grub in order to boot it, and it
> might not be able to.

I seem to recall GPT coexisting with some kind of MBR as well, or at
least enough of an MBR to get it to boot. But partitioning and
installing is not something I do very often.

I'm using GPT (created with gdisk) on my laptop which is from 2003 and
it works fine, so I imagine you'll be fine with anything newer as
well.
 

Thread Tools




All times are GMT. The time now is 11:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org