LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-27-2014, 10:00 PM   #1
wolfslacker
Member
 
Registered: Sep 2011
Distribution: openSUSE 15
Posts: 31

Rep: Reputation: 0
Extended Partition and Advance Format (4k) Question.


I recently bought a 1 TB Advance Format HDD for my home computer and partition it up so I can run Windows 7, Slackware, Xubuntu and some other distros that I would like to try out. I used parted to make partitions that were physically align with my AF HDD sectors. Everything seemed to be ok until after I installed my distos onto the logical partitions. The following is what I got.

Code:
root@ampatu:~# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000ecb04

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   532482047   266240000    7  HPFS/NTFS/exFAT
/dev/sda2       532486142  1923123199   695318529    f  W95 Ext'd (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sda5       532486144   534583295     1048576   82  Linux swap
/dev/sda6       534585344   591929343    28672000   83  Linux
/dev/sda7       591931392   837691391   122880000   83  Linux
/dev/sda8       837693440  1001533439    81920000   83  Linux
/dev/sda9      1001535488  1062975487    30720000   83  Linux
/dev/sda10     1062977536  1472577535   204800000   83  Linux
/dev/sda11     1472579584  1923123199   225271808    7  HPFS/NTFS/exFAT
root@ampatu:~#
My extended partition is no longer aligned. Partition 1 (sda1) is home to Windows 7 and I did verify that all my partitions were still align after the Win7 installed. I then proceeded with Slackware and Xubuntu install and afterwards found the mis-alignment. This was my second attempt. My first try also resulted in the same "extended partition not aligned" error. On my 2nd attempt, I added an extra 2048 kB of space between partitions thinking maybe the EPBR (extended partition boot record) was using up space when I was installing distros into my logical partitions. I search the web and didn't find much info. So my question arises.

Why does my starting sector on my extended partition change after I install Xubuntu (sda8) and Slackware (sda6/7)? Originally, sda2 started at sector 532484096.

Is there a way to keep my starting sector from changing thus remaining physically aligned?

My web searches yield a "don't worry 'bout it" answer for mis-aligned extended partitions as long as the logical partitions remained aligned. Why is this the case? If we have to go thru the EPBR table on a mis-aligned partition to find our files on a perfectly aligned logical partition, don't we still get hit with the mis-align penalty?

Maybe I'm putting to much thought into this but It's been bugging me lately. I probably should get a girlfriend...
 
Old 02-27-2014, 10:17 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Go GPT, use gfdisk to partition your drive. It will work with Linux and BSD even if your motherboard is BIOS, not sure about MS products, no Windows here since 2003.
 
Old 02-28-2014, 03:22 AM   #3
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by wolfslacker View Post
My web searches yield a "don't worry 'bout it" answer for mis-aligned extended partitions as long as the logical partitions remained aligned.
That's correct.

Quote:
Why is this the case? If we have to go thru the EPBR table on a mis-aligned partition to find our files on a perfectly aligned logical partition, don't we still get hit with the mis-align penalty?.
No, the OS has to read the EPBRs once to find the logical volumes. Mis-align penalty only affects writes.

BTW: Each logical volume has another EPBR, which fdisk doesn't show at all, so you can't even check its alignment. You can only see the a difference between "End" of one logical volume and "Start" of the next one. In between them are the hidden additional EPBRs.

Last edited by jtsn; 02-28-2014 at 03:24 AM.
 
Old 02-28-2014, 03:23 AM   #4
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by Emerson View Post
Go GPT, use gfdisk to partition your drive. It will work with Linux and BSD even if your motherboard is BIOS, not sure about MS products, no Windows here since 2003.
It won't work with Windows, except the x64 Edition installed in UEFI mode.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 03:40 PM
cannot format extended partion as ext3 morad_dba Linux - Hardware 6 11-23-2010 11:12 PM
[SOLVED] Safe to format Extended partition? x111 Linux - General 3 08-06-2010 05:13 AM
extended sata partition shrunk at 15 partition limit, how to re-enlarge Siljrath Linux - General 3 06-02-2010 10:33 PM
growing an lvm partition- format question kpachopoulos Linux - General 3 11-16-2006 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration