LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
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: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
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
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
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 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

Rep: Reputation: 144Reputation: 144
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
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

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


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
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

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

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