Harddrive sda sda1 keeps remounting as sdc sdc1

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Sat Oct 23, 2021 23:52    Post subject: Harddrive sda sda1 keeps remounting as sdc sdc1 Reply with quote
r7000 build 47510 I have 2 drives. Only peculiarity is sdb is formatted with no partition. At some random time I am getting the new mount for sda sda1, those mounts still exist but only sdc sdc1 have files.
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6866
Location: Romerike, Norway

PostPosted: Sun Oct 24, 2021 9:07    Post subject: Reply with quote
Mount the disk as /opt and use that in the samba configuration.
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Sun Oct 24, 2021 23:06    Post subject: Reply with quote
I already have one mounted as /opt. I could mount the other one as /jffs. I would prefer to fix or understand the problem what ever it is.
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1857
Location: Hung Hom, Hong Kong

PostPosted: Wed Oct 27, 2021 13:15    Post subject: Re: Harddrive sda sda1 keeps remounting as sdc sdc1 Reply with quote
portsup wrote:
r7000 build 47510 I have 2 drives. Only peculiarity is sdb is formatted with no partition. At some random time I am getting the new mount for sda sda1, those mounts still exist but only sdc sdc1 have files.

I noticed that as well. DD-WRT always tried to mount the drive as a whole (e.g. /dev/sda, /dev/sdc). /dev/sda1 and /dev/sdc1 are partitions in the drives. However, partition tables, boot records and superblocks usually start at the beginning of the whole device. SO.... possibly an issue of device letters iteration!

It's weird but in the meantime, just tolerate it. Until the developers have the time and mood to look into it.... Smile

OTOH. remounting USB devices is not happening in my router. I will keep an eye on it ....


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Wed Oct 27, 2021 14:27    Post subject: Reply with quote
/dev/sdb/ is mounted as /mnt/sdb because there is no partition on the drive and the whole drive is formatted.

I haven't had the remounting again but another strange thing I remember is the drive had info that it was remounted as a share I had setup in proftpd. I strangely remember this being related to and happening to me before in an older build with proftpd.
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1857
Location: Hung Hom, Hong Kong

PostPosted: Thu Oct 28, 2021 13:50    Post subject: Reply with quote
portsup wrote:
/dev/sdb/ is mounted as /mnt/sdb because there is no partition on the drive and the whole drive is formatted

Can't remember whether it applies to FAT/FAT32 drives (including floppies)... I don't remember mounting anything as /dev/sdX, but using fdisk and parted.


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Thu Nov 25, 2021 21:52    Post subject: Reply with quote
any help with this sda becoming sdc drive mount problem ?
kernel-panic69
DD-WRT Guru


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

PostPosted: Thu Nov 25, 2021 22:05    Post subject: Reply with quote
Have you tested 47665 yet?
_________________
"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: 12882
Location: Netherlands

PostPosted: Fri Nov 26, 2021 7:55    Post subject: Reply with quote
Not tested it my self but it is from @eibgrad, maybe this is helpful?

https://pastebin.com/VDZ32r2D

_________________
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: 14217
Location: Texas, USA

PostPosted: Fri Nov 26, 2021 8:06    Post subject: Reply with quote
That script may no longer be necessary; Might be a good idea to try 47656 or 47665 first. https://svn.dd-wrt.com/changeset/47627
_________________
"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
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Sat Nov 27, 2021 23:40    Post subject: Reply with quote
Thanks I will try the latest build. I am having other issues with ftp transfer speed, might be usb related.
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Sat Nov 27, 2021 23:51    Post subject: Reply with quote
I just installed the latest build with no reset and it has fixed the ftp speed issue, yet to test long enough if the mount problem is fixed.
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Tue Dec 21, 2021 19:07    Post subject: Reply with quote
portsup wrote:
I already have one mounted as /opt. I could mount the other one as /jffs. I would prefer to fix or understand the problem what ever it is.


I've been over this particular issue over and over again. DD-WRT mixes mount points because it's implementation is questionable. Devs assumed that drives will always appear at the same /dev/path however they don't. Not even under real Linux boxes let alone DD-WRT.

Mounts should always be done by UUID and should be defined manually to avoid those issues.

Have a look at those posts:

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=326462

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=330444&start=22

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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