N
N
Neznayka xD2017-02-17 13:17:48
linux
Neznayka xD, 2017-02-17 13:17:48

Where to mount /var/log?

I created a separate logical partition /var
And also a separate logical partition /var/log
But I got confused and don’t understand where they should be mounted, or rather:
I mounted the /var partition to /mnt
But, /var/log where to mount to /mnt or /var??
i.e. I did this:
mount /dev/sda5 /mnt/var
I also created a separate logical partition /var/log, but I don’t understand where to mount it?
mount /dev/sda6 /mnt/var/log - is it correct to do so or how?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rsa97, 2017-02-17
@Rsa97

/var mount in /var
/var/log, respectively, in /var/log

A
Alexander Chernykh, 2017-02-17
@sashkets

/etc/fstab show

R
Ruslan Fedoseev, 2017-02-17
@martin74ua

don't do nonsense. Put Linux on one partition, you have enough for now.
PS. Why separate /var and /var/log ?
ZZY. You need to mount where you use them. The fact that you mount a separate partition in / mnt / var - from this / var it will not become;)

C
CityCat4, 2017-02-17
@CityCat4


Partition /var mounted to /mnt
Why, sorry?
The /var section is mounted to the root (/), and /var/log - respectively, to /var. There must be a /var mount point in the root, and a /var/log mount point in /var.
In fact - I think this crushing is redundant. Overflowing /var/log is fraught with problems, especially if there is no LVM (and judging by the names, there is none)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question