LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-20-2013, 07:11 AM   #1
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 56

Rep: Reputation: 1
New 1 TB Seagate drive - will it need to be aligned?


I have ordered a new 1TB Seagate drive to replace a failing secondary drive in my computer. Since it's a 1 TB drive I assume it has 4kB sectors. Is this something I need to think about in terms of formatting, aligning, etc nowadays? I did a few searches on Google but could only find old information that maybe isn't valid today.. I'm running Linux Mint Maya and will use ext4 on the new drive.
 
Old 08-20-2013, 07:29 AM   #2
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
List the model number.

Its impossible to tell if the drive is 512b or 4K just from the 1TB size.

AFAIK Mint 13 will have the 'align to MiB' option which shopuld setup your partitions correctly if you have a '4K pretending to be 512b' HDD.

http://gparted.sourceforge.net/displ...tion-alignment
 
Old 08-20-2013, 11:33 AM   #3
displace
Member
 
Registered: Jan 2013
Location: EU
Distribution: Debian, Arch, Xubuntu
Posts: 171

Rep: Reputation: 12
If it's a 1 TB disk I wouldn't worry about the few sectors you'd lose due to alignment. Just create a new partition that starts at sector 2048. Most modern GUI partition editors do this by default.

~dis
 
Old 08-21-2013, 12:23 PM   #4
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 56

Original Poster
Rep: Reputation: 1
Drive is now installed and working correctly
I checked my laptop which i reinstalled with a clean installation of Ubuntu about three years ago and the first partition starts at sector 2048 on that to, so this seems to be the default for quite a while now. So as long as the first partition starts at sector 2048 there should be no problem, regardless of drive type, right..?
Bonus question: Let's say I wanted to install Windows XP on a 4k drive, would it work to use a live-cd and gparted to setup the partitions in advance, starting at sector 2048, before installing the system instead of using a realigning tool after installation?
 
Old 08-21-2013, 12:55 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,366
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
Quote:
Originally Posted by trafikpolisen View Post
So as long as the first partition starts at sector 2048 there should be no problem, regardless of drive type, right..?
If you use more than one partition on such a drive any partition should start at a sector divisible by 8, so that any partition is aligned.
Quote:
Bonus question: Let's say I wanted to install Windows XP on a 4k drive, would it work to use a live-cd and gparted to setup the partitions in advance, starting at sector 2048, before installing the system instead of using a realigning tool after installation?
Yes.
 
Old 08-21-2013, 01:33 PM   #6
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 56

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by TobiSGD View Post
If you use more than one partition on such a drive any partition should start at a sector divisible by 8, so that any partition is aligned.
I figured that out BTW, is there any particular reason that sector 2048 is the default instead of say 1024?
 
Old 08-21-2013, 02:55 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,366
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
2048 sectors are exactly 1MB. Those 4KB disks are not the only ones that have to be aligned, this is more complicated with SSDs, which should also be aligned to their erase-block size to get maximum write performance. This erase-block size varies, there are SSDs with 128KB, 256KB and 512KB erase-block size. Since 1MB is a multiple of all of them and to be somewhat future proof it makes sense to use a value of 2048 here.
 
Old 08-21-2013, 03:27 PM   #8
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 56

Original Poster
Rep: Reputation: 1
Interesting info! Thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SEAGATE Back up Plus STCA3000200 External Hard Drive. Has anyone used this drive? 3sheds Linux - Hardware 1 11-23-2012 11:47 AM
Linux Cannot See Seagate FreeAgent Drive zazou Linux - Hardware 3 06-01-2010 06:12 AM
mount : Seagate usb drive PB0711 Suse/Novell 1 01-08-2007 03:56 PM
Cant install onto my Seagate drive krugersy Linux - Newbie 2 05-27-2005 07:29 AM
Seagate tape drive sbalasuriya Linux - Hardware 2 08-10-2004 08:26 PM


All times are GMT -5. The time now is 07:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration