You are not logged in.

#1 2014-09-04 09:24:45

mibadt
Member
Registered: 2009-09-25
Posts: 396

[SOLVED] Why the complaint var not empty?

Hi,
I'm on a fully updated Linux_X86-64/KDE with a separate /var partition.
The boot journal complaints that /var directory is not empty (below), although I believe that's a normal state.

Please advise!

Thnaks

-------relevant part of journalctl-----------

Sep 04 12:14:23 miki_desk systemd[1]: var.mount: Directory /var to mount over is not empty, mounting anyway.
Sep 04 12:14:24 miki_desk systemd-journal[190]: Time spent on flushing to /var is 126.236ms for 1025 entries.

and the relevant line in my fstab is

# /dev/sdb3 LABEL=Var
UUID=f3d0d861-1faf-4f69-8aae-81c2974b15c1       /var            ext4            rw,relatime,data=ordered        0 2

Last edited by mibadt (2014-09-06 02:34:34)


Best regards,
Michael Badt

Offline

#2 2014-09-04 09:27:06

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] Why the complaint var not empty?

It means the /var directory on your / filesystem is not empty.


This silver ladybug at line 28...

Offline

#3 2014-09-04 09:45:30

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,953
Website

Re: [SOLVED] Why the complaint var not empty?

Mount your root (/) partition somewhere else (e.g. /mnt) and look in it's /var directory from there (e.g. /mnt/var). What do you see?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2014-09-04 09:51:46

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: [SOLVED] Why the complaint var not empty?

I'll live boot and look at /mnt/var later.
Once there should I delete all /mnt/var contents?
Thanks


Best regards,
Michael Badt

Offline

#5 2014-09-04 09:58:55

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,953
Website

Re: [SOLVED] Why the complaint var not empty?

No need for a liveCD (though it won't hurt).

Whether or not you should delete it depends on what is in there. If you messed up during the installation process, the bulk of your pacman database may be stored there, and you should compare the files and folders there, with the files and folders on your var partition, and safely merge the two.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2014-09-04 10:12:10

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] Why the complaint var not empty?

The fact that your system is running fine means you probably don't need to merge anything in. But of course, take a look what is in there.


This silver ladybug at line 28...

Offline

#7 2014-09-04 13:23:54

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: [SOLVED] Why the complaint var not empty?

Thnaks all


Best regards,
Michael Badt

Offline

#8 2014-09-04 13:48:01

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: [SOLVED] Why the complaint var not empty?

Hi all,
I've found that (within my Arch):
Besides the expected /var (on my separate partition), there is no /mnt/var on my system, yet there is a /usr/var.

This folder contains a single 109b  "grandson" (into second level directory inside above) file dated May 27th name "interpreter". No other files there.

Below you can see  that var location, contents and structure.
Can I delete it altogether?

Thanks
------------/usr/var/----------

/usr/var/lib/iscan $ ls -al
total 12
drwxr-xr-x 2 root root 4096 May 27 11:50 .
drwxr-xr-x 3 root root 4096 May 27 11:50 ..
-rw-r--r-- 1 root root  109 May 27 11:50 interpreter
miki /usr/var/lib/iscan $ cd ..
miki /usr/var/lib $ cd ..
miki /usr/var $ tree
.
└── lib
    └── iscan
        └── interpreter

Best regards,
Michael Badt

Offline

#9 2014-09-04 14:42:46

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,953
Website

Re: [SOLVED] Why the complaint var not empty?

No idea why you have a /usr/var, presumably it's something that you created at some point?

In any case, you misunderstood my post. What I meant for you to do was (while booted into your system proper, not a liveCD):

  1. Mount the root partition to /mnt (so that you can see everything on the filesystem without having to un-mount anything)

  2. Look in the /mnt/var folder, and if it has things in it that look important (e.g. /mnt/var/lib/pacman/local), and if so...

  3. Compare the /mnt/var folder with the /var folder (which should be your mounted var partition)

  4. Merge any differences into the var partition

  5. Clean out anything remaining in the /mnt/var folder, to get rid of the "not empty" mount warning you encounter at boot


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2014-09-06 02:34:06

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: [SOLVED] Why the complaint var not empty?

Thanks all,
Following your guidelines I've successfully removed my /usr/var .


Best regards,
Michael Badt

Offline

Board footer

Powered by FluxBB