LinuxQuestions.org
Review your favorite Linux distribution.
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 11-13-2018, 09:17 PM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
The importance of a mount point


I use centos 7.4 and it is a web server .

All the web files ( program , application .. ) are located at /webfiles , it is our standard setting , but now there is no /webfiles mount point now.

Code:
existing 
========
Filesystem               1K-blocks    Used  Available Use% Mounted on
/dev/mapper/centos-root 2084722116 1195644 2083526472   1% /
devtmpfs                   8121668       0    8121668   0% /dev
tmpfs                      8133668       0    8133668   0% /dev/shm
tmpfs                      8133668    8988    8124680   1% /run
tmpfs                      8133668       0    8133668   0% /sys/fs/cgroup
/dev/sda2       104806400    246448  104559952   1% /home
/dev/sdb1          508588    116036     392552  23% /boot
I just would like to ask , if I re-install the server , is it good to create such mount point as below when installation ?

Code:
Filesystem               1K-blocks    Used  Available Use% Mounted on
/dev/mapper/centos-root 2084722116 1195644 2083526472   1% /
devtmpfs                   8121668       0    8121668   0% /dev
tmpfs                      8133668       0    8133668   0% /dev/shm
tmpfs                      8133668    8988    8124680   1% /run
tmpfs                      8133668       0    8133668   0% /sys/fs/cgroup
/dev/sda2       104806400    246448  104559952   1% /home
/dev/sdb1          508588    116036     392552  23% /boot
/dev/sda1              1638450532 527778796 1110671736  33% /webfiles

Last edited by catiewong; 11-13-2018 at 10:02 PM.
 
Old 11-13-2018, 09:53 PM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by catiewong View Post
I use centos 7.4 and it is a web server .

All the web files ( program , application .. ) are located at /webfiles , it is our standard setting , but now there is no /webfiles mount point now.
[output snipped]

I just would like to ask , if I re-install the server , is it good to create such mount point as below ?
[output snipped]
A 'mount point' is simply a folder that is the point at which you access a particular filesystem - hence, it's the point at which that particular filesystem is mounted to the filesystem hierarchy.

Why not just re-create the mount point ?
 
1 members found this post helpful.
Old 11-13-2018, 10:09 PM   #3
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
A 'mount point' is simply a folder that is the point at which you access a particular filesystem - hence, it's the point at which that particular filesystem is mounted to the filesystem hierarchy.

Why not just re-create the mount point ?
you mean it it better to create the mount point when installation as my second list ?
 
Old 11-13-2018, 10:18 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Set the proper server root for the mount point you create and it should find your files.

Code:
root.......# grep -i Root /etc/apache2/apache2.conf 
# ServerRoot: The top of the directory tree under which the server's
#ServerRoot "/etc/apache2"
 
1 members found this post helpful.
Old 11-13-2018, 10:20 PM   #5
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by HappyTux View Post
Set the proper server root for the mount point you create and it should find your files.

Code:
root.......# grep -i Root /etc/apache2/apache2.conf 
# ServerRoot: The top of the directory tree under which the server's
#ServerRoot "/etc/apache2"
Yes , I have set the apache conf. file , but in the view of server management , is it good to create such mount point ?
 
Old 11-13-2018, 10:48 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
A mount point is a directory. usually in /mnt or /media, to which you mount a partition (file system).

http://www.linfo.org/mount_point.html

Based on the scanty information in OP's post, /webfiles looks like a directory, not like a partition, so it would not rate a mount point. It might rate a symlink.

More information might help.
 
1 members found this post helpful.
Old 11-14-2018, 12:10 AM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I have never created a mount point for the web DocumentRoot. It lives where it lives. In fact, I've one server whose configuration is so old that the DocumentRoot is at /home/httpd -- is, and has been, working like that for nearly 20 years. Turns out to be handy, since the default CentOS 7 disk configuration doesn't have lots of room at / (where /var/www would be), but lots of room at /home
 
1 members found this post helpful.
Old 11-14-2018, 12:16 AM   #8
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
A mount point is a directory. usually in /mnt or /media, to which you mount a partition (file system).

http://www.linfo.org/mount_point.html

Based on the scanty information in OP's post, /webfiles looks like a directory, not like a partition, so it would not rate a mount point. It might rate a symlink.

More information might help.
so do not think it is better to create /webfiles when installation ?
 
Old 11-14-2018, 12:42 AM   #9
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
As I know , I can not create it after the OS has been installed , right ?

If I did not create it , I have to create /webfiles on / directory , and I will not see /webfiles when use the command "df" , is there any benefit to create /webfiles when installation of OS ?
 
Old 11-14-2018, 01:04 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
as it was explained a mount point is just a directory and you can create it any time you wish. There is no need to install anything. But I think you misunderstood something. Creating a directory will not make it work as mount point - and every directory can be used as mount point. I think you want to mount something, but I have no idea what.
 
1 members found this post helpful.
Old 11-14-2018, 01:14 AM   #11
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
as it was explained a mount point is just a directory and you can create it any time you wish. There is no need to install anything. But I think you misunderstood something. Creating a directory will not make it work as mount point - and every directory can be used as mount point. I think you want to mount something, but I have no idea what.
Maybe I rephase my question .

I will re-install OS for some reason , in my case , is it good to create /webfiles when installation ?
 
Old 11-14-2018, 01:22 AM   #12
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by catiewong View Post
Maybe I rephase my question .

I will re-install OS for some reason , in my case , is it good to create /webfiles when installation ?
Both are OK: create it at installation time, or create it later, before you mount the partition and start the web server.

Personally, I would do a standard installation and create the mount point when the server is installed. It’s probably easier. But whatever suits you better.

Last edited by berndbausch; 11-14-2018 at 01:23 AM.
 
1 members found this post helpful.
Old 11-14-2018, 01:27 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by catiewong View Post
Maybe I rephase my question .

I will re-install OS for some reason , in my case , is it good to create /webfiles when installation ?
yes, it is irrelevant. But if you wish to have a partition "behind" that /webfiles probably better to create it (=the partition, not the mount point) during installation.
 
1 members found this post helpful.
Old 11-14-2018, 02:21 AM   #14
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Both are OK: create it at installation time, or create it later, before you mount the partition and start the web server.

Personally, I would do a standard installation and create the mount point when the server is installed. It’s probably easier. But whatever suits you better.
you mean if I do not create it , I can do it later ( what I want is run "df" command" , it will show this mount point ) ?
 
Old 11-14-2018, 02:32 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
df does not care about mount points. (you would need to read the man page of df to understand how it works).
df will print the free space on partitions. If anything was mounted on any mount point df would handle it. But not the mount point itself.
 
1 members found this post helpful.
  


Reply



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
USB mount point is not shown in /dev entry point garryhk Linux - Software 3 12-12-2012 05:28 PM
puppy+grub saves ram installed mount point as HD install mount point agualust Linux - Newbie 0 04-10-2009 11:23 AM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 12:17 PM
Importance of IT certifications rbr28 Linux - Certification 3 04-06-2004 05:16 PM

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

All times are GMT -5. The time now is 08:08 AM.

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