LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   fdisk shows logical sector size smaller than physical sector size? (https://www.linuxquestions.org/questions/slackware-installation-40/fdisk-shows-logical-sector-size-smaller-than-physical-sector-size-4175502951/)

enine 04-25-2014 07:51 AM

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

rknichols 04-25-2014 11:22 AM

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.

enine 04-25-2014 12:27 PM

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.

timsoft 09-03-2014 05:08 AM

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

pan64 09-03-2014 05:50 AM

Quote:

Originally Posted by timsoft (Post 5231715)
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)

timsoft 09-03-2014 11:57 AM

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


All times are GMT -5. The time now is 02:44 AM.