LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2021, 06:50 PM   #1
tuxthegreat
Member
 
Registered: Mar 2018
Distribution: Ubuntu Mate, OSX, Win10, ODROID-N2+
Posts: 176

Rep: Reputation: Disabled
ERROR: unsupported sector size 4096 on /dev/sdm.


Whenever I run apt-get commands such as update, upgrade I get this error message pertaining to one of my external hard drives. Is it something I should worry about ? This error has been haunting me for over 4 years now.
Code:
ERROR: unsupported sector size 4096 on /dev/sdm.
ERROR: unsupported sector size 4096 on /dev/sdm.
ERROR: unsupported sector size 4096 on /dev/sdm.
ERROR: unsupported sector size 4096 on /dev/sdm.
ERROR: unsupported sector size 4096 on /dev/sdm.
ERROR: unsupported sector size 4096 on /dev/sdm.
ERROR: unsupported sector size 4096 on /dev/sdm.
 
Old 11-21-2021, 05:53 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Can you give us the output of
Code:
 sudo fdisk -l
please.

That looks mostly benign but needs to be investigated to be sure. The file system should really not be giving that message.
 
Old 11-22-2021, 05:33 AM   #3
tuxthegreat
Member
 
Registered: Mar 2018
Distribution: Ubuntu Mate, OSX, Win10, ODROID-N2+
Posts: 176

Original Poster
Rep: Reputation: Disabled
Sure thing , here is the output you asked for
Code:
odroid@odroid:~$ sudo fdisk -l
Disk /dev/sda: 489.1 GiB, 525112713216 bytes, 1025610768 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: gpt
Disk identifier: D7E48CD7-37C5-4B6F-8D2D-568C2ADCFD71

Device         Start        End   Sectors   Size Type
/dev/sda1       2048    1050623   1048576   512M EFI System
/dev/sda2    1050624  992333823 991283200 472.7G Linux filesystem
/dev/sda3  992333824 1025609727  33275904  15.9G Linux swap


GPT PMBR size mismatch (4294967294 != 3519069870) will be corrected by w(rite).
Disk /dev/sdb: 3.7 TiB, 4000787029504 bytes, 7814037167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6EF078C0-F98A-46A7-897E-9C1A49EA4930

Device      Start        End    Sectors  Size Type
/dev/sdb1      40     409639     409600  200M EFI System
/dev/sdb2  411648 7814035455 7813623808  3.7T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
Disk /dev/sdc: 3.7 TiB, 4000752599040 bytes, 7813969920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: BF462D04-ED62-461A-ACDA-ED7DD7616B7E

Device      Start        End    Sectors  Size Type
/dev/sdc1      40     409639     409600  200M EFI System
/dev/sdc2  411648 7813967871 7813556224  3.7T Microsoft basic data


Disk /dev/sdd: 9.1 TiB, 10000797794304 bytes, 19532808192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 20708AE7-BBB5-4A46-A6F8-04BAC8712D9D

Device     Start         End     Sectors  Size Type
/dev/sdd1   2048 19532806143 19532804096  9.1T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
Disk /dev/sdf: 3.7 TiB, 4000752599040 bytes, 7813969920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 5F6708BD-B5A8-454F-8FA8-E9719496E6AE

Device      Start        End    Sectors  Size Type
/dev/sdf1      40     409639     409600  200M EFI System
/dev/sdf2  411648 7813967871 7813556224  3.7T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
Disk /dev/sde: 3.7 TiB, 4000752599040 bytes, 7813969920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 5647F2C2-E305-4635-AEBA-154139B110A5

Device      Start        End    Sectors  Size Type
/dev/sde1      40     409639     409600  200M EFI System
/dev/sde2  411648 7813967871 7813556224  3.7T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 2353004543) will be corrected by w(rite).
Disk /dev/sdh: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 5A9F6014-6553-4238-A6DD-4F09DA80579D

Device      Start         End     Sectors  Size Type
/dev/sdh1      40      409639      409600  200M EFI System
/dev/sdh2  409640 19532871679 19532462040  9.1T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
Disk /dev/sdi: 3.7 TiB, 4000752599040 bytes, 7813969920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: CC1C4382-F034-453E-A924-EAE3915F634B

Device      Start        End    Sectors  Size Type
/dev/sdi1      40     409639     409600  200M EFI System
/dev/sdi2  411648 7813967871 7813556224  3.7T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 2353004543) will be corrected by w(rite).
Disk /dev/sdj: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 254B90FC-1E79-467E-8DA4-F27BEF4A4094

Device      Start         End     Sectors  Size Type
/dev/sdj1      40      409639      409600  200M EFI System
/dev/sdj2  409640 19532871679 19532462040  9.1T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 2353004543) will be corrected by w(rite).
Disk /dev/sdg: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 89805E3C-C9EC-470A-8D92-7CBF29A7B62C

Device      Start         End     Sectors  Size Type
/dev/sdg1      40      409639      409600  200M EFI System
/dev/sdg2  411648 19532871679 19532460032  9.1T Microsoft basic data


Disk /dev/sdm: 3.7 TiB, 4000752599040 bytes, 976746240 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FB5BDDA9-5EFD-427B-B9C3-DCC82120A2B9

Device     Start       End   Sectors  Size Type
/dev/sdm1      6     76805     76800  300M EFI System
/dev/sdm2  77056 976745983 976668928  3.7T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
Disk /dev/sdp: 3.7 TiB, 4000752599040 bytes, 7813969920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 744D29FA-5779-4049-A8F7-F328CFBABF0B

Device      Start        End    Sectors  Size Type
/dev/sdp1      40     409639     409600  200M EFI System
/dev/sdp2  411648 7813967871 7813556224  3.7T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
Disk /dev/sdn: 3.7 TiB, 4000752599040 bytes, 7813969920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 0260B244-AE7A-4876-A415-70F62636DB52

Device      Start        End    Sectors  Size Type
/dev/sdn1      40     409639     409600  200M EFI System
/dev/sdn2  411648 7813967871 7813556224  3.7T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
Disk /dev/sdk: 3.7 TiB, 4000752599040 bytes, 7813969920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 5D4E56B1-2206-4D73-9D3D-9ADA0D5A4BC2

Device      Start        End    Sectors  Size Type
/dev/sdk1      40     409639     409600  200M EFI System
/dev/sdk2  411648 7813967871 7813556224  3.7T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
Disk /dev/sdq: 3.7 TiB, 4000752599040 bytes, 7813969920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 8F55DB70-CB8F-411B-A80D-4885F5CEF264

Device      Start        End    Sectors  Size Type
/dev/sdq1      40     409639     409600  200M EFI System
/dev/sdq2  411648 7813967871 7813556224  3.7T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 2353004543) will be corrected by w(rite).
Disk /dev/sdo: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: BC0296DC-E89F-4D3A-BE79-E807BA7ECC46

Device      Start         End     Sectors  Size Type
/dev/sdo1      40      409639      409600  200M EFI System
/dev/sdo2  411648 19532871679 19532460032  9.1T Microsoft basic data


GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
Disk /dev/sdl: 3.7 TiB, 4000752599040 bytes, 7813969920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6D8B5A97-1CA2-4169-9A98-241F1FD6E588

Device      Start        End    Sectors  Size Type
/dev/sdl1      40     409639     409600  200M EFI System
/dev/sdl2  411648 7813967871 7813556224  3.7T Microsoft basic data


Disk /dev/sdr: 115.5 GiB, 124017180672 bytes, 242221056 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: 0x449e29ce

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdr1  *     2048 242221055 242219008 115.5G  7 HPFS/NTFS/exFAT


Disk /dev/sds: 9.1 TiB, 10000797794304 bytes, 19532808192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A99A5B1F-3E5C-4900-9F20-203FDC17CB9A

Device     Start         End     Sectors  Size Type
/dev/sds1   2048 19532806143 19532804096  9.1T Microsoft basic data
odroid@odroid:~$

Last edited by tuxthegreat; 11-22-2021 at 05:36 AM.
 
Old 11-22-2021, 08:24 AM   #4
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
Quote:
Originally Posted by tuxthegreat View Post
Code:
Disk /dev/sdm: 3.7 TiB, 4000752599040 bytes, 976746240 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FB5BDDA9-5EFD-427B-B9C3-DCC82120A2B9

Device     Start       End   Sectors  Size Type
/dev/sdm1      6     76805     76800  300M EFI System
/dev/sdm2  77056 976745983 976668928  3.7T Microsoft basic data
Are you perhaps still running a 4-year-old kernel? What is the output from "uname -r"?

Any vaguely recent kernel should support "4K native" ("4Kn"), 4096-byte physical and logical sector size, disk drives.

Last edited by rknichols; 11-22-2021 at 08:30 AM.
 
Old 11-22-2021, 03:40 PM   #5
tuxthegreat
Member
 
Registered: Mar 2018
Distribution: Ubuntu Mate, OSX, Win10, ODROID-N2+
Posts: 176

Original Poster
Rep: Reputation: Disabled
Noo the kernel is very fresh
Code:
odroid@odroid:~$ uname -r
5.14.17-xanmod1
However the Distro itself is old Ubuntu Mate 16.04, but I keep the kernel fresh.

Last edited by tuxthegreat; 11-22-2021 at 03:45 PM.
 
Old 11-22-2021, 04:16 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Is there a firmware update available for sdm? 4TB seems small for a HDD that doesn't support 512b logical sectors.
 
Old 11-22-2021, 04:45 PM   #7
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
Quote:
Originally Posted by tuxthegreat View Post
Noo the kernel is very fresh
Code:
odroid@odroid:~$ uname -r
5.14.17-xanmod1
However the Distro itself is old Ubuntu Mate 16.04, but I keep the kernel fresh.
Then I have to wonder just what program is producing that error message, because that kernel should support 4Kn just fine. About the only thought that comes to mind is an NTFS filesystem being mounted by an old version of ntfs-3g.
 
Old 11-22-2021, 05:07 PM   #8
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I do note that sdm is the only drive listed that is 4K sectors only. All the others are logical/physical 512/512 or 512/4096. Also, all the other drives except sda, sdm, sdr, & sds display this error.
Code:
 GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
This is the first link found when searching for that error
https://superuser.com/questions/1352...ected-by-write

Last edited by computersavvy; 11-22-2021 at 05:08 PM.
 
Old 11-23-2021, 04:48 AM   #9
tuxthegreat
Member
 
Registered: Mar 2018
Distribution: Ubuntu Mate, OSX, Win10, ODROID-N2+
Posts: 176

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
I do note that sdm is the only drive listed that is 4K sectors only. All the others are logical/physical 512/512 or 512/4096. Also, all the other drives except sda, sdm, sdr, & sds display this error.
Code:
 GPT PMBR size mismatch (4294967294 != 3519002623) will be corrected by w(rite).
This is the first link found when searching for that error
https://superuser.com/questions/1352...ected-by-write
Code:
I fixed the problem by re-creating my gpt disklabel:

    start fdisk
    p to display current partitions
    g to create a new gpt disklabel
    n to add each partition that was previously on this disk. For First sector and Last sector, enter the values outputted by the earlier p command. Do not remove partition signatures.
    w
His solution can't be replicated by me because my fdisk doesn't have the same options
Code:
root@odroid:~# fdisk

Usage:
 fdisk [options] <disk>      change partition table
 fdisk [options] -l [<disk>] list partition table(s)

Display or manipulate a disk partition table.

Options:
 -b, --sector-size <size>      physical and logical sector size
 -B, --protect-boot            don't erase bootbits when create a new label
 -c, --compatibility[=<mode>]  mode is 'dos' or 'nondos' (default)
 -L, --color[=<when>]          colorize output (auto, always or never)
                                 colors are enabled by default
 -l, --list                    display partitions end exit
 -o, --output <list>           output columns
 -t, --type <type>             recognize specified partition table type only
 -u, --units[=<unit>]          display units: 'cylinders' or 'sectors' (default)
 -s, --getsz                   display device size in 512-byte sectors [DEPRECATED]
     --bytes                   print SIZE in bytes rather than in human readable format

 -C, --cylinders <number>      specify the number of cylinders
 -H, --heads <number>          specify the number of heads
 -S, --sectors <number>        specify the number of sectors per track

 -h, --help     display this help and exit
 -V, --version  output version information and exit

Available columns (for -o):
 gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID
 dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S Start-C/H/S
 bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize
 sgi: Device Start End Sectors Cylinders Size Type Id Attrs
 sun: Device Start End Sectors Cylinders Size Type Id Flags

For more details see fdisk(8).
 
Old 11-23-2021, 09:25 AM   #10
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Actually it does. If you start fdisk with the command like 'sudo fdisk /dev/sdX' you will open up the partition table for the designated drive and you will see the options in the menu it displays. What you display is the output of 'fdisk --help' which displays the command line options.

Please don't do the suggested fix unless the drives are not in use and not mounted (and you have a data recovery plan if something goes wrong). Altering anything in the partition table on an active / mounted drive can be disastrous.

Also, gdisk is better for use on drives with a gpt partition table, which those are. It works similarly to fdisk with minor differences.

One thing to note, since this thread is about the sector size on /dev/sdm, is that fdisk can also be used to alter the logical/physical sector size in the disk partition table as well. The errors seen on sdm with the invalid sector size can be eliminated by resetting the sector size. Again, I want to stress that changes in the partition table can cause data loss and should not be done without a backup and must not be done on a drive that is mounted / active.

I would guess that at some point fdisk was used with the -b option on /dev/sdm to set the sector size and that would be the origin of the reported error in this thread. The man page for fdisk says:
Code:
OPTIONS
       -b, --sector-size sectorsize
              Specify the sector size of the disk.  Valid values are 512, 1024, 2048, and 4096.  (Recent kernels know the sector
              size.  Use this option only on old kernels or to override the kernel's ideas.)  Since util-linux-2.17, fdisk  dif‐
              ferentiates between logical and physical sector size.  This option changes both sector sizes to sectorsize.
I bolded the part that led me to that conclusion. Also this from wikipedia leads me to suggest a mismatch in kernel vs the drive sector size as has already been noted.

If you have a backup of any data on /dev/sdm and you want to eliminate the errors a few simple steps will do that. It will, however, wipe out the existing partition information and require that you rebuild the partition table similar to the fix for the other errors and their fix in the link I posted. It also may lead to the potential for needing to reinstall the windows that is on that drive.

The untested fix I would try would be to simply follow the same instructions for the fix given for the other errors, and see what the results are. Since the partition table is the source of the sector size info the new partition table should fix the error. If the sector size error is not fixed then a little more aggressive fix may be needed, but I believe that would work.

Last edited by computersavvy; 11-23-2021 at 09:34 AM.
 
1 members found this post helpful.
Old 11-23-2021, 11:27 AM   #11
tuxthegreat
Member
 
Registered: Mar 2018
Distribution: Ubuntu Mate, OSX, Win10, ODROID-N2+
Posts: 176

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
Actually it does. If you start fdisk with the command like 'sudo fdisk /dev/sdX' you will open up the partition table for the designated drive and you will see the options in the menu it displays. What you display is the output of 'fdisk --help' which displays the command line options.

Please don't do the suggested fix unless the drives are not in use and not mounted (and you have a data recovery plan if something goes wrong). Altering anything in the partition table on an active / mounted drive can be disastrous.

Also, gdisk is better for use on drives with a gpt partition table, which those are. It works similarly to fdisk with minor differences.

One thing to note, since this thread is about the sector size on /dev/sdm, is that fdisk can also be used to alter the logical/physical sector size in the disk partition table as well. The errors seen on sdm with the invalid sector size can be eliminated by resetting the sector size. Again, I want to stress that changes in the partition table can cause data loss and should not be done without a backup and must not be done on a drive that is mounted / active.

I would guess that at some point fdisk was used with the -b option on /dev/sdm to set the sector size and that would be the origin of the reported error in this thread. The man page for fdisk says:
Code:
OPTIONS
       -b, --sector-size sectorsize
              Specify the sector size of the disk.  Valid values are 512, 1024, 2048, and 4096.  (Recent kernels know the sector
              size.  Use this option only on old kernels or to override the kernel's ideas.)  Since util-linux-2.17, fdisk  dif‐
              ferentiates between logical and physical sector size.  This option changes both sector sizes to sectorsize.
I bolded the part that led me to that conclusion. Also this from wikipedia leads me to suggest a mismatch in kernel vs the drive sector size as has already been noted.

If you have a backup of any data on /dev/sdm and you want to eliminate the errors a few simple steps will do that. It will, however, wipe out the existing partition information and require that you rebuild the partition table similar to the fix for the other errors and their fix in the link I posted. It also may lead to the potential for needing to reinstall the windows that is on that drive.

The untested fix I would try would be to simply follow the same instructions for the fix given for the other errors, and see what the results are. Since the partition table is the source of the sector size info the new partition table should fix the error. If the sector size error is not fixed then a little more aggressive fix may be needed, but I believe that would work.
Thank you for the well-put answer, I can tell you took your time explaining it to me to which I am thankful. I am not sure where you get the idea that it's a windows drive, it's an XFat media storage drive filled with data, data which would be hard to back-up as the size of it. The issue has been haunting me for 4+years now so it's not something that is going to create acute damage, and I am very iffish about starting to mess with the sectors and be left with a 1lb paperweight. I am going to call this solved as you have explained in detail what is going on and what can be done about it, thank you again.
 
Old 11-23-2021, 09:27 PM   #12
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by tuxthegreat View Post
Thank you for the well-put answer, I can tell you took your time explaining it to me to which I am thankful. I am not sure where you get the idea that it's a windows drive, it's an XFat media storage drive filled with data, data which would be hard to back-up as the size of it. The issue has been haunting me for 4+years now so it's not something that is going to create acute damage, and I am very iffish about starting to mess with the sectors and be left with a 1lb paperweight. I am going to call this solved as you have explained in detail what is going on and what can be done about it, thank you again.
/dev/sdm IS a windows drive according to the 'fdisk -l' output you posted.
Code:
Disk /dev/sdm: 3.7 TiB, 4000752599040 bytes, 976746240 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FB5BDDA9-5EFD-427B-B9C3-DCC82120A2B9

Device     Start       End   Sectors  Size Type
/dev/sdm1      6     76805     76800  300M EFI System
/dev/sdm2  77056 976745983 976668928  3.7T Microsoft basic data
It has an EFI system partition and a microsoft data partition so it is difficult to tell if it is actually an OS or just data, but fdisk clearly identified it as microsoft. Most disks that are not used for booting would not have an efi system partition. This is why I called it a windows drive.

I am glad we were able to identify the cause of the errors and that you understand the potential fix. I think I would follow along with the same conclusion you iterated if I did not have a suitable drive handy for backups.

HTH and good luck going forward.


Just as an aside. I have 4 3TB drives in my system in raid config for /home, containing about 3.6 TB data. I also have difficulty in doing backups since I do not have a spare drive large enough.
 
  


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
Is it okay if my sector size is "512 bytes / 4096 bytes" Altiris Slackware 5 07-31-2015 03:19 AM
Fdisk shows logical sector size smaller than physical sector size after clonezilla narnie Linux - Hardware 12 07-03-2013 09:01 PM
Please help setting up partitons with 4096 sector size alignment frisil Linux - General 4 03-20-2013 07:49 PM
a question about "sector size 4096" Young_zhang Linux - General 10 11-28-2011 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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