LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2021, 03:08 AM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Rep: Reputation: 8
Creating mount poinf if no exist


I use satellite receiver based on Debian. Is any possibility to create mount point (if no exist) for filesystem by appropriate entry in /etc/fstab ? I mean about situation when during update/upgrade procedure, most of system is overwrite by new version. But in this case system configuration is restored. That is most of /etc dir, including fstab too. So it would be nice to create such dir via fstab. The content of this filesystem is necessary during boot procedure so creating/mounting from script after boot is too late. Is it possible?
 
Old 01-28-2021, 04:46 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
If, after creating your directory & mounting it via fstab, & after a reboot, it is no longer there, you will need to remaster your distro.

If it is a normal distro, an update & upgrade should not lose it.
 
Old 01-28-2021, 10:32 AM   #3
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Yes, "ordinary" update/upgrade is possible. The unit is Debian based but has own repos, dedicated for such devices. But the problem is mainly when any changes in kernel are made. In this case practically all image is installed from beginning and /etc located config files are restored. Its because there is no any kernel tools installed in original image. In such cases /opt dir is lost and it is needed to create one manually. /opt is use to mount SD card with additional commands (entware) not available from original repo. I want to automate whole process and run it from cron so I need to create mount point /opt if not exist, during mounting filesys from fstab. Thats my problem.
 
  


Reply

Tags
fstab, mount point



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Selenium: Check whether button exist or not and if exist whether the the text is in it is desired one or not daichiash General 0 07-03-2020 10:17 AM
[SOLVED] cannot login to funtoo linux. UID 0 does not exist. no users or groups seem to exist. whansard Linux - Security 1 12-19-2018 03:40 AM
mount: mount point /mnt/cdrom does not exist Sujathapm Linux - Newbie 11 07-31-2013 02:19 AM
Redhat Linux 4.8 error -mount: mount point /oracle does not exist for new /etc/fstab entries bellnarm Linux - Server 1 11-23-2011 05:09 AM
mount error: mount point /home/me/x does not exist whil Fedora 3 05-24-2006 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration