[FIXED][SPLIT] Wrong HDD capacity reported

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page 1, 2, 3, 4, 5, 6  Next
Author Message
FireStorm@
DD-WRT User


Joined: 12 Mar 2018
Posts: 88

PostPosted: Wed Jul 20, 2022 10:38    Post subject: [FIXED][SPLIT] Wrong HDD capacity reported Reply with quote
Hello having the following issues:

Firmware: DD-WRT v3.0-r49531 std (07/20/22)
Model: AsRock G10
Reset: YES
Issues: YES (see below)

1. My NTFS 5TB HDD shows up as 18TB and it says 8TB free of 18TB total

This issue persist since I guess 2 months already, but I was always in hope with the next build it will be fixed.

2. My HDD does not show up on Android Devices or TV's. The Samba won't appear. On PC it is visible

3. With newest build I noticed a big performance issue in transfering data. usually I have 20-50mb/s now it is more like 2-10Mb/s

4. my NTFS hard disk (5tb) casually (after restart of router) won't be visible anymore, rather a different partition appears (15mb)

5. Not really an issue, but noticed that the NVRAM increased from 73 to 75kb
Sponsor
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Wed Jul 20, 2022 16:39    Post subject: Reply with quote
For reference older report about this https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1265054#1265054

Other reports of this nature exist.

Please bare in mind this may be a 3rd party component which is not directly developed by DD-WRT which is causing this.

Any other reports should be aggregated here.

Thanks for understanding.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
FireStorm@
DD-WRT User


Joined: 12 Mar 2018
Posts: 88

PostPosted: Wed Jul 20, 2022 18:16    Post subject: Reply with quote
the-joker wrote:
For reference older report about this https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1265054#1265054

Other reports of this nature exist.

Please bare in mind this may be a 3rd party component which is not directly developed by DD-WRT which is causing this.

Any other reports should be aggregated here.

Thanks for understanding.


Thx for your reply. To let u know, it can not be the 3rd party hardware. As it used to show it correctly in previous builds. Since a few weeks / builds it shows wrong.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Wed Jul 20, 2022 18:32    Post subject: Reply with quote
By 3rd party component I meant software. DD-WRT uses many 3rd party libraries/components and including the Kernels.
_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
FireStorm@
DD-WRT User


Joined: 12 Mar 2018
Posts: 88

PostPosted: Thu Jul 21, 2022 7:52    Post subject: Reply with quote
the-joker wrote:
By 3rd party component I meant software. DD-WRT uses many 3rd party libraries/components and including the Kernels.


sorry misunderstood u. However, thx for your reply! Hope it will work soon as it used to be.
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1927

PostPosted: Thu Jul 21, 2022 8:18    Post subject: Reply with quote
When was the last time you ran a chkdsk on the drive while connected to a Windows PC? The "dirty drive" issue may or may not be completely fixed, and it's best to rule out all possibilities, however unlikely they are or not. The only development related to NTFS since the "last good build" seems to be to ntfs-3g, so maybe the update introduced a regression. Who knows.
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Thu Jul 21, 2022 9:20    Post subject: Reply with quote
You are reporting two problems:

About the disk size, is this a samba issue e.g. wrong reporting in windows? or a driver problem
compare:
hdparm -I /dev/sda1 (capital Isaac and assuming your disk is sda1)
fdisk -l (lower case leo)

About the TV not being able to see your samba share could be due to the fact that SMB1/Netbios is deprecated so older clients struggle

As already stated an NTFS disk becomes dirty easily after a reboot and especially after power loss, you then have to run chkdsk

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
FireStorm@
DD-WRT User


Joined: 12 Mar 2018
Posts: 88

PostPosted: Fri Jul 22, 2022 9:29    Post subject: Reply with quote
dale_gribble39 wrote:
When was the last time you ran a chkdsk on the drive while connected to a Windows PC? The "dirty drive" issue may or may not be completely fixed, and it's best to rule out all possibilities, however unlikely they are or not. The only development related to NTFS since the "last good build" seems to be to ntfs-3g, so maybe the update introduced a regression. Who knows.


Actually, after every second or third reboot I need to perform a chkdsk by unplugging it and do it over a windows PC. However, in the past that was never the case, it was smooth.

So yes I guess the update introduced a regression. I hope it will be fixed in the up coming updates. However, I have been living with this issue for more than a year, it is really annoying.
FireStorm@
DD-WRT User


Joined: 12 Mar 2018
Posts: 88

PostPosted: Fri Jul 22, 2022 9:30    Post subject: Reply with quote
egc wrote:
You are reporting two problems:

About the disk size, is this a samba issue e.g. wrong reporting in windows? or a driver problem
compare:
hdparm -I /dev/sda1 (capital Isaac and assuming your disk is sda1)
fdisk -l (lower case leo)

About the TV not being able to see your samba share could be due to the fact that SMB1/Netbios is deprecated so older clients struggle

As already stated an NTFS disk becomes dirty easily after a reboot and especially after power loss, you then have to run chkdsk


This is for sure a samba issue. As many other reported on dd-wrt interface it shows the right size 5TB but on any samba client it shows wrong size. This issue was fixed in a previous release (I guess March 2022) and then it appeared again.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Fri Jul 22, 2022 9:35    Post subject: Reply with quote
We do not control that it is a third party product (ksmbd : https://github.com/namjaejeon/ksmbd )

Just use ext4 as file system and your troubles are gone Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14207
Location: Texas, USA

PostPosted: Fri Jul 22, 2022 14:12    Post subject: Reply with quote
I have to agree that network client issues like this with features in DD-WRT aren't necessarily a DD-WRT problem. If the DD-WRT webUI reports correct information, that is the chief concern. So, reporting it here does not fix the upstream code that DD-WRT relies mostly on. I did notice some back 'n' forth on ntfs3 and an update to ntfs-3g in the public repo commits that may also be of note here. But again, that is usually dependent on 3rd party upstream code or in-house patches. Only way to pinpoint the regression is to step through undoing patches and updates or other research and such. or check upstream mailing lists / code repositories for reports, patches, and fixes submitted.

@egc: I know you don't use ksmbd in your community builds, so asking you to test these theories may be moot here. I'll see if the other working group wants to oblige, but we honestly have considered removal of Samba, Plex, and minidlna among other things from the picture altogether for the sake of performance and other options over "ridiculously unnecessary features". Anyway, hopefully there is a fix in sight soon enough. "In-house proof and bug testing over submission of incomplete work"... and these are a great group of folks, once you get past the nuances, lol.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Fri Jul 22, 2022 15:16    Post subject: Reply with quote
kernel-panic69 wrote:
I have to agree that network client issues like this with features in DD-WRT aren't necessarily a DD-WRT problem. If the DD-WRT webUI reports correct information, that is the chief concern. So, reporting it here does not fix the upstream code that DD-WRT relies mostly on. I did notice some back 'n' forth on ntfs3 and an update to ntfs-3g in the public repo commits that may also be of note here. But again, that is usually dependent on 3rd party upstream code or in-house patches. Only way to pinpoint the regression is to step through undoing patches and updates or other research and such. or check upstream mailing lists / code repositories for reports, patches, and fixes submitted.

@egc: I know you don't use ksmbd in your community builds, so asking you to test these theories may be moot here. I'll see if the other working group wants to oblige, but we honestly have considered removal of Samba, Plex, and minidlna among other things from the picture altogether for the sake of performance and other options over "ridiculously unnecessary features". Anyway, hopefully there is a fix in sight soon enough. "In-house proof and bug testing over submission of incomplete work"... and these are a great group of folks, once you get past the nuances, lol.


Yes we have community build members still using old Samba3 and ntfs3g/fuse so basically the old stuff because he wants utmost stability and not the new shiny paragon ntfs3 kernel driver and ksmbd Smile

I actually have now my R6400v2 running with ksmbd and the ntfs3 kernel driver.

the ntfs3 kernel driver is the one which is picky and flag a drive dirty after a power loss etc. which it is actually expected.
When using ext4 we have the built-in e2fsck which is easy to use (does it run automatically if it detects problems?)

When using ntfs we do not have chkdsk sot that you have to remove the drive and run it externally.

But hey this is Linux just use ext4 (and yes this is transparant for windows user running samba)

About ksmbd well that is a WIP, it is smal, lightweight and fast but not free of bugs Sad

Actually the last few months it is usable.
Before that when copying large amounts of files (i.e. 1000 files several gig) it just blew up, that is improved.

The wrong reporting of size is a known problem for NTFS and several attempts have been made to address it.

So concluding ksmbd is OK if you are using ext2/4 as file system and have clients which use SMB2 (I use Xplore on my android phone which works well)

I have also a router running SAMBA4 that is really huge and a memory hog Sad

Just my personal experience YMMV

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14207
Location: Texas, USA

PostPosted: Fri Jul 22, 2022 16:17    Post subject: Reply with quote
Rather than post details here as the other working group has been a private venture, I will say that we have tackled plenty of ideas over the past couple of years or so. I know that sharing is caring and all, but certain nuances and dynamics within the constraints of this forum and project have prevented - or rather, made us unwilling - to do so. I'll refrain from further comment as it has no possibility of positive impact here.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5690

PostPosted: Fri Jul 22, 2022 16:22    Post subject: Reply with quote
egc wrote:
ksmbd update dealing with sector size? :
https://svn.dd-wrt.com/changeset/48606

Also see @Phil9992 reports from same Broadcom r48607 build thread.

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1260710#1260704

The last known build to show correctly is r48567, thanks to @alkanbw.

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1265054#1265015

https://github.com/cifsd-team/ksmbd-tools/issues
https://github.com/cifsd-team/ksmbd/issues

https://github.com/namjaejeon/ksmbd-tools/issues
https://github.com/namjaejeon/ksmbd/issues

https://github.com/cifsd-team/ksmbd-tools
https://github.com/cifsd-team/ksmbd

https://github.com/namjaejeon/ksmbd-tools
https://github.com/namjaejeon/ksmbd


Last edited by blkt on Thu Jul 28, 2022 15:30; edited 3 times in total
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2963
Location: Germany

PostPosted: Fri Jul 22, 2022 16:23    Post subject: Reply with quote
Just don't use NTFS when it comes to data integrity.
This is simply a bad file system when it comes to power failures.

I can tell a little anecdote about this.

Many many years ago ... I have reinstalled my Windows.
(everybody knows it - by the way, it speaks for the quality of Microsoft products).

After several hours I was finally done and had my Windows installation set up again.

Then suddenly there was a power failure ... 15min later, the power was back ... the computer is just booting up and BANG the power was gone again.
After that the installation was broken again.

Was the last time in my life that I used Windows and NTFS on my own computer.

fucking windows crap

Mr. Green

NTFS only supports metadata journaling
EXT3+4 support metadata + block journaling


Last edited by ho1Aetoo on Fri Jul 22, 2022 17:20; edited 1 time in total
Goto page 1, 2, 3, 4, 5, 6  Next Display posts from previous:    Page 1 of 6
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum