Posted: Sat Oct 23, 2021 23:52 Post subject: Harddrive sda sda1 keeps remounting as sdc sdc1
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.
Joined: 26 Mar 2013 Posts: 1856 Location: Hung Hom, Hong Kong
Posted: Wed Oct 27, 2021 13:15 Post subject: Re: Harddrive sda sda1 keeps remounting as sdc sdc1
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....
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!
/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.
Joined: 26 Mar 2013 Posts: 1856 Location: Hung Hom, Hong Kong
Posted: Thu Oct 28, 2021 13:50 Post subject:
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!
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.