Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-fs/udev-168-r1 runtime directory /run/udev not writable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
e3k
Apprentice
Apprentice


Joined: 01 Oct 2007
Posts: 151
Location: Slovakia

PostPosted: Sun May 01, 2011 6:02 pm    Post subject: sys-fs/udev-168-r1 runtime directory /run/udev not writable Reply with quote

any idea why i get this error after updating udev and rebooting the machine?

Code:
May  1 17:53:44 localhost udevd[4936]: error: runtime directory '/run/udev' not writable, for now falling back to '/dev/.udev'
Back to top
View user's profile Send private message
delan
n00b
n00b


Joined: 01 May 2011
Posts: 15

PostPosted: Mon May 02, 2011 8:59 am    Post subject: Reply with quote

It's all about udev's move to put their own runtime data in /run/udev, which is a recent change from upstream.

http://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html

Bascially, it's because udev was storing data its own runtime data in /dev/.udev and it was semantically incorrect and ugly. Some have suggested the use of /var/run/udev, but then again, not everyone has /var on the root partition. So the decision was made to create a top-level directory, /run.

Binary distros like Fedora got the new directory through an update to the systemd package, but I'd imagine (though I haven't tried this, and this message still appears in my boot output) that you'd have to create it yourself. Then, udev would stick its files in /run/udev, and the error message would be no more.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2156

PostPosted: Mon May 02, 2011 12:35 pm    Post subject: Reply with quote

Shouldn't the ebuild have created /run directory during installation?
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
delan
n00b
n00b


Joined: 01 May 2011
Posts: 15

PostPosted: Mon May 02, 2011 2:21 pm    Post subject: Reply with quote

Maybe the ebuild should run

Code:
mkdir -p /run/udev


when installing. As in, create /run/udev with the main intent of creating the udev directory, but create /run also if it doesn't exist. I might submit a bug/patch about it tomorrow.
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2722

PostPosted: Mon May 02, 2011 3:21 pm    Post subject: Reply with quote

The /run is a crap from systemd, now udev support and use it, if can.

If there should be /run, it should be included in openrc, and as early as possible openrc should mount tmps wiht 1777 there I think. I see no other option.
_________________
github
Back to top
View user's profile Send private message
e3k
Apprentice
Apprentice


Joined: 01 Oct 2007
Posts: 151
Location: Slovakia

PostPosted: Tue May 03, 2011 10:49 am    Post subject: Reply with quote

as there is a fallback option i will ignore this error and wait until somebody does something ;)
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 845
Location: Mount Vernon, NY

PostPosted: Wed May 04, 2011 2:30 am    Post subject: Reply with quote

I created the directories with full write access and when I booted I had no keyboard or mouse control.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
Raphux
n00b
n00b


Joined: 11 Sep 2004
Posts: 41
Location: Paris

PostPosted: Thu May 05, 2011 3:58 pm    Post subject: Reply with quote

billydv wrote:
I created the directories with full write access and when I booted I had no keyboard or mouse control.


Same behaviour here. Removing /run got my keyboard and mouse work again.
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 845
Location: Mount Vernon, NY

PostPosted: Fri May 06, 2011 1:03 am    Post subject: Reply with quote

I think it's best to just leave this as is until the devs get it sorted out.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1633

PostPosted: Fri May 06, 2011 1:44 am    Post subject: Reply with quote

SlashBeast wrote:
The /run is a crap from systemd, now udev support and use it, if can.


It's not crap from systemd, it's because the current solution of putting random stuff in /dev/.foo is crap. The only relation to systemd it has is that it was proposed by its author.

If you actually read the reason behind it, whatever your stance on systemd is, it's pretty hard to argue against it.

(other than "omg, it's not part of FHS", which seems like it will soon be fixed.)
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1462

PostPosted: Mon May 09, 2011 2:44 pm    Post subject: Reply with quote

Even with /run and /run/udev 777, udev still complains. I also get a message
about a missing udev file, /lib/udev/move_tmp_persistent_rules.sh (but the
keyboard still works).

Another strikingly effective upgrade of an essential package.

Will
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2722

PostPosted: Mon May 09, 2011 2:52 pm    Post subject: Reply with quote

Because when udev starts the rootfs is not writable.
_________________
github
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2156

PostPosted: Mon May 09, 2011 3:26 pm    Post subject: Reply with quote

SlashBeast wrote:
Because when udev starts the rootfs is not writable.


ISTR that proper /run support needs to begin in the initrd. It's requirements seem to be very similar to /dev or devtmpfs.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1086
Location: Motown

PostPosted: Mon May 09, 2011 3:33 pm    Post subject: Reply with quote

Shouldn't need an initrd. The article linked to in the second post makes it clear that /run is supposed to be a tmpfs and that /var/run will eventually symlink to. Problem is currently that some apps store non-volatile data under /var/run which has to be addressed first.
_________________
What I need is an exact list of specific unknown problems we might encounter.
Back to top
View user's profile Send private message
kaszynek
n00b
n00b


Joined: 22 Mar 2011
Posts: 36
Location: Warsaw, Poland

PostPosted: Mon May 09, 2011 4:40 pm    Post subject: Reply with quote

I have the same error :/
But my keybord and mouse don't work after boot...
Any solutions?
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2722

PostPosted: Mon May 09, 2011 6:43 pm    Post subject: Reply with quote

The solution is, stop creating /run dir when you have no idea what you are doing. When this dir exist, it should be writable, propably tmpfs mounted before udev starts, openrc nor udev init does not mount it at this moment.
_________________
github
Back to top
View user's profile Send private message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 406
Location: Venice FL

PostPosted: Sun Oct 02, 2011 8:36 pm    Post subject: Reply with quote

Any new information on this /run directory with respect to Gentoo?

I've been noticing this in the output of df lately.

Code:
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs               287280956 144117224 128570688  53% /
devtmpfs               4091280       336   4090944   1% /dev
tmpfs                  4093492         0   4093492   0% /dev/shm
df: `/run': No such file or directory
/dev/sda3            287280956 144117224 128570688  53% /
tmpfs                  4093492         8   4093484   1% /dev/.initramfs
rc-svcdir                 1024       164       860  17% /lib64/rc/init.d
shm                    4093492         0   4093492   0% /dev/shm



George
Back to top
View user's profile Send private message
e3k
Apprentice
Apprentice


Joined: 01 Oct 2007
Posts: 151
Location: Slovakia

PostPosted: Mon Oct 10, 2011 8:37 pm    Post subject: Reply with quote

Code:
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs               179712996  16072316 161814848  10% /
udev                     10240       204     10036   2% /dev
/dev/sda3            179712996  16072316 161814848  10% /
rc-svcdir                 1024        80       944   8% /lib64/rc/init.d
shm                    2028732        76   2028656   1% /dev/shm


but i did reinstall gentoo 2 weeks ago from scratch as i it was a 4 year old installation and who knows what things have i done to the system in the years.
Back to top
View user's profile Send private message
seenxu
n00b
n00b


Joined: 19 Oct 2009
Posts: 16

PostPosted: Mon Feb 13, 2012 7:22 pm    Post subject: Reply with quote

I am having the same problem, any solution yet?
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2557
Location: Slovenia

PostPosted: Mon Feb 13, 2012 7:36 pm    Post subject: Reply with quote

Which problem exactly?
Back to top
View user's profile Send private message
seenxu
n00b
n00b


Joined: 19 Oct 2009
Posts: 16

PostPosted: Mon Feb 13, 2012 9:31 pm    Post subject: Reply with quote

Gusar wrote:
Which problem exactly?


Code:

error: runtime directory '/run/udev' not writable, for now falling back to '/dev/.udev'


this problem exactly. :)
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2557
Location: Slovenia

PostPosted: Mon Feb 13, 2012 9:48 pm    Post subject: Reply with quote

That's not a problem. While it says "error" at the beginning, it's actually just an informational message, telling you that udev will be using a fallback instead of what it wants to use (and does use on distros that have implemented /run).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum