Easier way to edit fstab settings

Moderators: Gully, peteru

Post Reply
Paul_oz53
Wizard
Posts: 2791
Joined: Sat Jun 13, 2009 02:34
Location: Melbourne

Easier way to edit fstab settings

Post by Paul_oz53 » Wed Dec 23, 2020 14:22

A small anomaly has cropped when using the fstab mount option.

In mount manager I created an fstab mount of the T3. Worked fine but I decided to amend the local name, also via mount manager. Thereafter, I had two identical net mounts: MovieT3 and T3_Movie.

To erase the duplicate I've had to manually edit the file "fstab". Not hard to do when you know what you're doing but it may affect novice users.

Too lazy to go to the PC so I used the remote via Menu >> Sources files. Accessed the file by renaming to fstab.txt and editing it. Saved changes then undid the rename.

Is there a simpler way for direct editing fstab errors by a novice?
__________________________________
Paul
Beyonwiz T4, 2 x U4: FW - 19.3 20211010
Samsung QA85Q80BAWXXY 4K TV
Samsung QA65Q80TAWXXY 4K TV
Samsung HW Q800BXY soundbar
OverlayHD 1.70, IceTV, Foxtel IQ4
2 x Win7 PCs, 2 x Win10 PCs
Denon AVR -X2400H

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Easier way to edit fstab settings

Post by Grumpy_Geoff » Wed Dec 23, 2020 14:44

Did you reboot after the rename?

There is the fstab-Editor plugin (enigma2-plugin-extensions-fstabeditor).

Paul_oz53
Wizard
Posts: 2791
Joined: Sat Jun 13, 2009 02:34
Location: Melbourne

Re: Easier way to edit fstab settings

Post by Paul_oz53 » Wed Dec 23, 2020 15:07

Grumpy_Geoff wrote:
Wed Dec 23, 2020 14:44
Did you reboot after the rename?

There is the fstab-Editor plugin (enigma2-plugin-extensions-fstabeditor).

Reboot is pending- other half just woke up from a nap...

Thanks for the tip. I'll try it out tonight.
__________________________________
Paul
Beyonwiz T4, 2 x U4: FW - 19.3 20211010
Samsung QA85Q80BAWXXY 4K TV
Samsung QA65Q80TAWXXY 4K TV
Samsung HW Q800BXY soundbar
OverlayHD 1.70, IceTV, Foxtel IQ4
2 x Win7 PCs, 2 x Win10 PCs
Denon AVR -X2400H

Paul_oz53
Wizard
Posts: 2791
Joined: Sat Jun 13, 2009 02:34
Location: Melbourne

Re: Easier way to edit fstab settings

Post by Paul_oz53 » Wed Dec 23, 2020 15:37

Tried out Fstabeditor but found it very limited when trying to enter a directory path.

The edit field for device name appears limited to 20 characters. Enough for an IP address and a very short folder name.

The add entry item only allows 1 character!

Basically unusable.

PS Reboot cleared the errant entry.
__________________________________
Paul
Beyonwiz T4, 2 x U4: FW - 19.3 20211010
Samsung QA85Q80BAWXXY 4K TV
Samsung QA65Q80TAWXXY 4K TV
Samsung HW Q800BXY soundbar
OverlayHD 1.70, IceTV, Foxtel IQ4
2 x Win7 PCs, 2 x Win10 PCs
Denon AVR -X2400H

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Easier way to edit fstab settings

Post by prl » Wed Dec 23, 2020 16:22

Paul_oz53 wrote:
Wed Dec 23, 2020 14:22
A small anomaly has cropped when using the fstab mount option.

In mount manager I created an fstab mount of the T3. Worked fine but I decided to amend the local name, also via mount manager. Thereafter, I had two identical net mounts: MovieT3 and T3_Movie.

A while ago I tried to iron out some of the complete mess that is the network mount screens. I improved its robustness quite a bit, I think, but It doesn't surprise me at all that there are still bugs.
Paul_oz53 wrote:
Wed Dec 23, 2020 14:22
To erase the duplicate I've had to manually edit the file "fstab". Not hard to do when you know what you're doing but it may affect novice users.
...
Is there a simpler way for direct editing fstab errors by a novice?

And just what's hard about vi /etc/fstab? (ducks, runs for cover) ;)
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Paul_oz53
Wizard
Posts: 2791
Joined: Sat Jun 13, 2009 02:34
Location: Melbourne

Re: Easier way to edit fstab settings

Post by Paul_oz53 » Wed Dec 23, 2020 16:25

prl wrote:
Wed Dec 23, 2020 16:22

And just what's hard about vi /etc/fstab? (ducks, runs for cover) ;)

:lol: :lol: :lol:
__________________________________
Paul
Beyonwiz T4, 2 x U4: FW - 19.3 20211010
Samsung QA85Q80BAWXXY 4K TV
Samsung QA65Q80TAWXXY 4K TV
Samsung HW Q800BXY soundbar
OverlayHD 1.70, IceTV, Foxtel IQ4
2 x Win7 PCs, 2 x Win10 PCs
Denon AVR -X2400H

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Easier way to edit fstab settings

Post by prl » Wed Dec 23, 2020 16:55

I've been around Unixoid systems long enough to have used systems where the only way to edit fstab was ed /etc/fstab. None of that fancy full-screen editor stuff.

Mind you, ed is probably one of the easiest-to-use and most powerful paper-TTY editors for programmers that I ever used. The command name grep derives from the ed command g/re/p (globally search the file for lines matching the regular expression re and print matching lines).
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Post Reply

Return to “Bug Reporting and Feature Requests”