Questions tagged [var]

30 questions
17
votes
2 answers

Is it safe to delete these snaps?

UPDATE: No, it is not safe to delete these snaps. I deleted them and can no longer open three of my applications. Attempt at opening Visual Studio Code: ~$ code internal error, please report: running "code" failed: cannot find installed snap "code"…
silkthyme
  • 181
  • 1
  • 1
  • 7
13
votes
1 answer

Why do I get the error "failed unmounting /var" during shutdown?

I have a fresh install of Debian 9.0.0. It has a separate 1 GB partition for /var formatted at ext4. When I shutdown from the terminal, using shutdown -h now, there is a bright-red error message stating "failed unmounting /var". What is the fix for…
Village
  • 4,655
  • 14
  • 46
  • 80
6
votes
4 answers

What would likely cause directories in /var/run to disappear / not be created on startup? (CentOS 7.3)

Ran into an issue today where Apache would not load because /var/run/httpd was missing. After much hunting to find that cause of the error I was getting ([Tue Jul 25 00:06:31.574386 2017] [auth_digest:error] [pid 6179] (2)No such file or directory:…
warren
  • 1,778
  • 3
  • 21
  • 38
3
votes
1 answer

Moving /var onto different disk/partition

I moved the /var directory to a new disk/partition, this part worked well, but I forgot to delete/move the old /var path and it is still using space on / (root) partition. How could I delete the old /var without redo all the process? Any ideas? This…
3
votes
2 answers

Does /var keep growing in size?

tldp.org quotes /var as: Files in /var/log can often grow indefinitely, and may require cleaning at regular intervals. So without cleaning, using a system for a long enough period will fill up all of /var. Do some distros rotate logs…
invert
  • 1,743
  • 1
  • 19
  • 24
3
votes
2 answers

Accidentally deleted /var folder

I accidentally moved my /var folder to trash and now unable to login to Mac. The only solution I found until now is to recover OS X. I have tried to move /var back to /private folder in single user mode, since it is read-only and not allowing me to…
Sajjad
  • 139
  • 5
2
votes
0 answers

When to clean up /var/tmp?

/var/tmp is not defined in POSIX, but is defined in FHS: 5.15. /var/tmp : Temporary files preserved between system reboots 5.15.1. Purpose The /var/tmp directory is made available for programs that require temporary files or directories that are…
Jonas Stein
  • 3,898
  • 4
  • 34
  • 55
1
vote
1 answer

Failed to Start After Moving /var to Another Drive

I am running CentOS 7. I have /var on a separate hard drive, and smartctl shows that it has some read error. Hence, I would like to move /var to another hard drive. For the new hard drive, I used gparted to create two partitions (1MB…
HCSF
  • 213
  • 2
  • 9
1
vote
2 answers

Extension partition /var with some giga of partition /home

I have a RHEL 7.9 virtual machine without GUI, and I would like to make updates via the yum update command but it tells me that the disk is full, especially on the /var folder. I thought I'd take 10GB/20GB from the /home partition and transfer it to…
Kanuc
  • 31
  • 6
1
vote
1 answer

Cannot find the files filling up my /var partition

I'm running a python application that keeps crashing with sqlite3.OperationalError: database or disk is full, even though I have 300G in the partition where this is installed and from where I'm running it. However, I noticed my /var partition is…
1
vote
2 answers

I have been trying to move /var to a new partition but the data disappears

I have been attempting to move my /var folder to a new partition. I am using Debian 10.7 and have an 8GB processor so am trying to save space. I have tried several things but part of the data always seems to disappear. Here is what I have…
newBird
  • 11
  • 1
1
vote
1 answer

What enable `mysql` user to write a file into /var/log?

/var/log/ belongs to root user: $ ls -ld /var/log drwxr-xr-x. 13 root root 4096 Mar 31 19:23 /var/log As you can see the other do not have the write privilege and there's no sticky bit (as for the /tmp/ folder). But if I look into this folder the…
yves Baumes
  • 569
  • 1
  • 4
  • 11
1
vote
1 answer

How to find and delete OS junk files on /var

I tried to update my "Fedora" by using Terminal. It worked great at first but after a while it said that "there is not enough space in var/". I added some more space by using Gparted and now everything is OK. My question is, How can I clean all…
ismaeel
  • 21
  • 6
1
vote
1 answer

How can I move /var to spacious partition or increase size of the partition (/dev/sda3 in this case) to say 30G?

I am working on a Debian 9 system. When I try to install a package, dpkg fails with following error: Selecting previously unselected package mariadb-server-10.1. Preparing to unpack .../3-mariadb-server-10.1_10.1.38-0+deb9u1_amd64.deb…
Kusan Biswas
  • 19
  • 1
  • 2
1
vote
2 answers

Bind mounted /var to /raid5/var and CentOS fails to boot

System Background: I am running CentOS 7 in a VM (in VirtualBox) on a host computer running Windows 10. My /dev/sda is on an SSD and then I have three 1TB HDDs /dev/sdb, /dev/sdc, and /dev/sdd configured into a RAID 5 drive called /dev/md5. The…
1
2