LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 04-25-2014, 07:51 AM   #1
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 803
Blog Entries: 3

Rep: Reputation: 90
fdisk shows logical sector size smaller than physical sector size?


Searching on the above message I find this thread
http://www.linuxquestions.org/questi...la-4175449117/

Which doesn't exactly say how to fix it.

I'm putting a 1TB drive in my 'server' and when I ran fdisk I received that error message, looks like I need to use a different tool such as sfdisk or GPT but I haven't found a good how to on either. I've been just using fdisk all these years
 
Old 04-25-2014, 11:22 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,499

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
fdisk will work just fine on a 1TB drive. You just need to make sure the partitions are aligned properly. Recent versions of fdisk will default to "sector" units rather than legacy "cylinder" units. If yours does not, either invoke it with the "-u" flag or use the "u" command interactively. Then, switch off the deprecated "DOS-compatible" mode ("c" command), and fdisk will default to Megabyte alignment, which is suitable for modern disks and SSDs.
 
Old 04-25-2014, 12:27 PM   #3
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 803
Blog Entries: 3

Original Poster
Rep: Reputation: 90
I see some references to later versions of fdisk, wouldn't (Slackware) 14.1 have a more recent fdisk?
I'll try u and c when I get home.
 
Old 09-03-2014, 05:08 AM   #4
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 120

Rep: Reputation: 18
the message is a bit of a red herring. Slackware 14.1 version of fdisk already defaults to the modern options of sector mode and non-dos mode for the partition table. If you create a first partition it will by default start at 2048 sector which is safe, as it is a multiple of 4kbytes (1MB). I had the same message which got me checking things, like you, only to find it was a false alarm.
If you format using ext4, then even if it wasn't aligned, it wouldn't make much speed difference. - see this report by ibm
http://www.ibm.com/developerworks/library/l-4kb-sector-disks/ for a table comparing different formats for unaligned partitions
 
Old 09-03-2014, 05:50 AM   #5
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,928

Rep: Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305
Quote:
Originally Posted by timsoft View Post
http://www.ibm.com/developerworks/li...-sector-disks/ for a table comparing different formats for unaligned partitions
hi, the link you gave is mistyped. (here fixed)
 
Old 09-03-2014, 11:57 AM   #6
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 120

Rep: Reputation: 18
thanks for the fix. bbcode messed me up again. I should just have left the link as is :-)
 
  


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
Fdisk shows logical sector size smaller than physical sector size after clonezilla narnie Linux - Hardware 12 07-03-2013 09:01 PM
[SOLVED] Partitioning question ("device presents logical sector size that is smaller than...") Ormu Linux - Newbie 4 05-06-2013 03:05 AM
WD20EARS - smartctl is reporting 4K physical sector size ^^ Orangutanklaus Linux - Hardware 3 09-19-2011 09:36 AM
DMESG: FAT: bogus logical sector size 0 oldi Slackware 5 07-03-2004 05:33 AM
FAT: bogus logical sector size 0 dzt Linux - General 3 10-22-2003 08:10 PM


All times are GMT -5. The time now is 03:28 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