You are not logged in.
After upgrading to core/initscripts 2011.12.1-1 I have an error on boot: "rm: cannot remove /var/lock : Device or resource busy" - and the same error for /var/run.
I have:
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 201585632 25129488 166216148 14% /
udev 10240 0 10240 0% /dev
/run 10240 244 9996 3% /run
/dev/sda2 201585632 25129488 166216148 14% /
shm 4070328 352 4069976 1% /dev/shm
/dev/sda3 52870104 13765436 36419004 28% /var
/dev/sda1 482214 49947 407368 11% /boot
/dev/sda6 697918096 114133216 548332672 18% /wrk
tmpfs 4070328 88 4070240 1% /tmp
tmpfs 10240 0 10240 0% /var/lock
tmpfs 10240 52 10188 1% /var/run
Is it dangerous situation? Or - can I just ignore the errors?
Last edited by student975 (2011-12-19 04:05:31)
"I exist" is the best myth I know..
Offline
It's related to https://bugs.archlinux.org/task/18157
Just guessing, please disregard if it doesn't make sense:
[karol@black ~]$ ls -l /var/{lock,run}
lrwxrwxrwx 1 root root 9 12-16 14:57 /var/lock -> /run/lock
lrwxrwxrwx 1 root root 4 12-16 14:57 /var/run -> /run
[karol@black ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 7566432 4153964 3028116 58% /
udev 10240 0 10240 0% /dev
/run 10240 172 10068 2% /run
/dev/sda3 7566432 4153964 3028116 58% /
shm 251324 0 251324 0% /dev/shm
tmpfs 251324 20 251304 1% /tmp
/dev/sda1 101105 17237 78647 18% /boot
/dev/sda4 30534108 22558556 6424480 78% /home
If /var/{lock,run} are symlinked to stuff in /run and /run is mounted as /run, maybe it doesn't like that you have /var/{lock,run} mounted as tmpfs.
Last edited by karol (2011-12-19 03:26:43)
Offline
@karol
I'm not sure to have sufficient experience to dig in the task as well into /usr/lib/initscripts/arch-tmpfiles file containing "comments explaining how the different entries work"
"I exist" is the best myth I know..
Offline
I have:
$ ls -l /var/run
total 28
prw------- 1 root root 0 Dec 19 07:02 autofs.fifo-wrk-nas
---------- 1 root root 4 Dec 19 07:02 autofs-running
drwxr-xr-x 2 root root 60 Dec 19 07:02 console
drwxr-xr-x 2 root root 80 Dec 19 07:02 ConsoleKit
-rw-r--r-- 1 root root 4 Dec 19 07:02 crond.pid
drwxr-xr-x 3 root lp 80 Dec 19 07:02 cups
-rw-r--r-- 1 root root 4 Dec 19 07:02 cupsd.pid
drwxr-xr-x 2 dbus dbus 60 Dec 19 07:02 dbus
-rw-r--r-- 1 root root 4 Dec 19 07:02 dbus.pid
drwxr-xr-x 3 root root 60 Dec 19 07:02 dhcpcd
-rw-r--r-- 1 root root 4 Dec 19 07:02 dhcpcd-eth0.pid
-rw-r--r-- 1 root root 4 Dec 19 07:02 gpm.pid
drwxr-xr-x 2 root root 80 Dec 19 07:02 lirc
drwxr-xr-x 4 root root 80 Dec 19 07:02 pm-utils
lrwxrwxrwx 1 root root 4 Dec 19 07:02 run -> /run
-rw-r--r-- 1 root root 4 Dec 19 07:02 sshd.pid
drwx------ 2 root root 40 Dec 19 07:02 udisks
$ ls -l /var/lock
total 0
lrwxrwxrwx 1 root root 9 Dec 19 07:02 lock -> /run/lock
"I exist" is the best myth I know..
Offline
I'm currently reading the bug report comments but no epiphany yet. I see you have a separate /var partition and it may be a factor too (I see it mentioned in the bug report).
Do you bind / mount /var/lock as tmpfs yourself? I'm not seeing this on my computer.
Offline
Yes, I do:
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
UUID=3f6b5248-aef7-4c2a-b2cb-e652806da984 / ext4 defaults,noatime 0 1
UUID=53c21c4c-7e29-4aee-96b1-8f04b8561352 /var ext4 defaults,noatime 0 1
UUID=6c3ffc40-d0e9-4a43-a9d2-dfb7b651131e swap swap defaults 0 0
UUID=f646c6ae-8019-4869-867e-d2f068087dd4 /boot ext2 defaults,noatime 0 1
UUID=ea03e307-35bb-468d-8803-e9fae8293860 /wrk ext4 defaults,noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,nodev,nosuid,mode=1777 0 0
tmpfs /var/lock tmpfs defaults,noatime,nodev,nosuid,noexec,mode=1777,size=10M 0 0
tmpfs /var/run tmpfs defaults,noatime,nodev,nosuid,noexec,mode=0755,size=10M 0 0
"I exist" is the best myth I know..
Offline
Try commenting these entries out.
Offline
Aha, it helped:
$ ls -als /var/{lock,run}
0 lrwxrwxrwx 1 root root 9 Dec 19 08:00 /var/lock -> /run/lock
0 lrwxrwxrwx 1 root root 4 Dec 19 08:00 /var/run -> /run
Thanks!
"I exist" is the best myth I know..
Offline