LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2016, 07:10 PM   #16
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled

Some disks lie about sector size, for compatibility with certain OS. If that is the case disk needs to be partitioned manually,
Code:
fdisk -b 4096 /dev/sdx
I would go without partitioning and put the filesystem on raw device, can't go wrong with that.
 
Old 08-17-2016, 07:12 PM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,920

Rep: Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305
Look at post 13

All things being equal I do not believe that GPT is slower then a MSDOS partitioned drive. Do you have another drive of the same model number? Easy enough to partition the slow one to MBR.

True , if both drives are of identical make/models and partitioned the same for start then what could be the difference.

Last edited by michaelk; 08-17-2016 at 07:16 PM.
 
Old 08-17-2016, 07:32 PM   #18
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,567

Rep: Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093
You can use "hdparm -I /dev/sdc" to see what the drive actually reports. Note the upper case "I". That command might not work over a USB interface, but should always work over SATA/eSATA.
 
Old 08-18-2016, 10:11 AM   #19
gtaylor828
LQ Newbie
 
Registered: Jan 2015
Posts: 23

Original Poster
Rep: Reputation: Disabled
For the slow disk:

GPT fdisk (gdisk) version 0.8.1

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdc: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 32792A9E-FD22-4C4C-9160-4D0028DCBA06
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.7 MiB)

Number Start (sector) End (sector) Size Code Name
1 2048 1953523711 931.5 GiB 0700 primary


For the good/fast drive:

Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************

Disk /dev/sdc: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7D5E7EF5-6576-40D6-A20D-13EFB5CD8708
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5485 sectors (2.7 MiB)

Number Start (sector) End (sector) Size Code Name
1 2048 1953521663 931.5 GiB 0700 Microsoft basic data
 
Old 08-18-2016, 10:16 AM   #20
gtaylor828
LQ Newbie
 
Registered: Jan 2015
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
You can use "hdparm -I /dev/sdc" to see what the drive actually reports. Note the upper case "I". That command might not work over a USB interface, but should always work over SATA/eSATA.
That didn't work on either drive (using eSATA). Results:
/dev/sdc:
HDIO_DRIVE_CMD(identify) failed: Bad address
 
Old 08-18-2016, 02:02 PM   #21
gtaylor828
LQ Newbie
 
Registered: Jan 2015
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Do you have another drive of the same model number? Easy enough to partition the slow one to MBR.
Yes. How?
 
Old 08-18-2016, 02:12 PM   #22
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,920

Rep: Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305Reputation: 4305
The recovery and transformation menu in gdisk can convert a GPT back to MBR. Out of curiosity are most of the disks using MBR that you test?
 
Old 08-18-2016, 02:57 PM   #23
gtaylor828
LQ Newbie
 
Registered: Jan 2015
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
The recovery and transformation menu in gdisk can convert a GPT back to MBR. Out of curiosity are most of the disks using MBR that you test?
ext4 has been the common format; we're adding NTFS as a supported format but when the system formats a disk with NTFS, the benchmark is too low to be useful. I was trying to determine the limits and couldn't understand how one could work so well. I don't know how I created the "good" one but the more I learn about how it's formatted, the worse it sounds. Especially regarding GPT. We just qualified a 4TB SSD, and single files can be that large, so GPT is a requirement.

Pursuing this is probably not worth the effort. GPT may not be the performance issue but I don't know how the benchmark works. The benchmark routine belongs to Engineering and it's not worth it to them to figure it out until a customer wants it.

I've learned a few things. Thanks (to everyone) for helping,
 
Old 08-18-2016, 10:41 PM   #24
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Quote:
This 512 sector size is certainly bogus, the real sector size is 4096. Thus, the partition is misaligned.
I don't know why you assume that, fdisk on a 2tb seagate on fedora 23 shows 512/512.
Quote:
Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000da519
Also, misalignment isn't that significant on newer drives, in reality we never see the real physical sector alignments, the drive firmware maps things physically unseen by the os.
 
Old 08-18-2016, 11:02 PM   #25
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 3,544
Blog Entries: 1

Rep: Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186
Quote:
Originally Posted by Doug G View Post
I don't know why you assume that, fdisk on a 2tb seagate on fedora 23 shows 512/512.
When was it manufactured? Some drives lie. I have more than one such, and most I own made since 2010 are Seagate.

Quote:
Also, misalignment isn't that significant on newer drives, in reality we never see the real physical sector alignments, the drive firmware maps things physically unseen by the os.
Got any proof? That's directly opposite my understanding, at least WRT writing. Check this Seagate explanation.
 
  


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
[SOLVED] How do I format a GPT disk using Linux command-line? [SOLVED] ajnabi Linux - Hardware 3 04-07-2015 07:33 PM
[SOLVED] Unable to Format brand new HPFS/NTFS drive JeffC1 Linux - Newbie 49 02-17-2011 08:01 PM
how can i format my hard disk in fedora9 as ntfs or fat system v4u_2k722k10 Linux - Newbie 4 11-26-2008 08:39 PM
Hpfs/ntfs Bobymc Linux - Software 2 04-22-2006 10:58 PM
how to moutn hpfs/ntfs farhan Linux - General 3 03-10-2003 08:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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