Community discussions

MikroTik App
 
User avatar
Sertik
Member
Member
Topic Author
Posts: 435
Joined: Fri Sep 25, 2020 3:30 pm
Location: Russia, Moscow

Remove disk from /files

Thu Oct 12, 2023 3:35 pm

After using SDD or SD, it doesn’t matter, I can’t adequately remove the disk from /files. Even if you correctly eject and delete the directory with the disk from winbox or CLI, after rebooting the router it appears again. I still haven’t found a way to permanently remove the disk other than reflashing the NetInstall router. Maybe there is some less radical way?
 
User avatar
Sertik
Member
Member
Topic Author
Posts: 435
Joined: Fri Sep 25, 2020 3:30 pm
Location: Russia, Moscow

Re: Remove disk from /files

Thu Oct 12, 2023 8:23 pm

Has no one encountered this?
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3606
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Remove disk from /files

Thu Oct 12, 2023 9:12 pm

IDK, I haven't tried disconnected SSDs.

But I think RouterOS must keep disconnected disks name around someplace...so the name doesn't get reused. But it showing up in files if unmounted seems unexpected.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10278
Joined: Mon Jun 08, 2015 12:09 pm

Re: Remove disk from /files

Thu Oct 12, 2023 9:21 pm

One would expect, just like in Linux, to have a checkmark to select automatic mounting on boot yes/no.
Other than that, I don't see an issue. Maybe you can schedule a job at boot to eject the disk when you do not want it to be mounted by default.
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2998
Joined: Mon Apr 08, 2019 1:16 am

Re: Remove disk from /files

Thu Oct 12, 2023 11:31 pm

Has no one encountered this?
Yes have seen that after using multiple USB drives.
They can be removed via System/Disks, and will not re-appear in Files after reboot.
At least this is possible in ROS 7 (may not be the case in ROS6)
 
User avatar
Sertik
Member
Member
Topic Author
Posts: 435
Joined: Fri Sep 25, 2020 3:30 pm
Location: Russia, Moscow

Re: Remove disk from /files

Fri Oct 13, 2023 9:33 am

The fact of the matter is that the nasty Router Mukh stores the names of the disks somewhere and does not delete them from its memory after unmounting. If, say, disk1 was created, then ejected and a new disk is mounted, then it already receives the name disk2, and disk 1, no matter how you delete it, always appears clean again after rebooting the router. How to deal with this?
I haven't tried it on OS 7 router. This error occurs on any version of router OS 6.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10278
Joined: Mon Jun 08, 2015 12:09 pm

Re: Remove disk from /files

Fri Oct 13, 2023 11:01 am

To have it solved you will first have to reproduce it on v7, as v6 is no longer maintained except for security issues.
I think it has been improved in v7. You can now assign a name to a disk yourself and it will stick to that disk.
 
User avatar
Sertik
Member
Member
Topic Author
Posts: 435
Joined: Fri Sep 25, 2020 3:30 pm
Location: Russia, Moscow

Re: Remove disk from /files

Fri Oct 13, 2023 2:38 pm

Come on. And should I upgrade to version 7 because of this? Why did she give herself up to me? I have a lot of devices on version 6 and I'm not going to update it.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10278
Joined: Mon Jun 08, 2015 12:09 pm

Re: Remove disk from /files

Fri Oct 13, 2023 5:20 pm

Fine!
 
optio
Long time Member
Long time Member
Posts: 696
Joined: Mon Dec 26, 2022 2:57 pm

Re: Remove disk from /files

Fri Oct 13, 2023 5:40 pm

I had this issue with USB flash drive, but not after ROS v7.7 - viewtopic.php?t=192427
*) disk - improved external storage file system mounting, formatting and naming;
 
User avatar
Sertik
Member
Member
Topic Author
Posts: 435
Joined: Fri Sep 25, 2020 3:30 pm
Location: Russia, Moscow

Re: Remove disk from /files

Sat Oct 14, 2023 8:25 pm

OK, Thanks !

Who is online

Users browsing this forum: dbrowning2 and 9 guests