Linux将引入/run目录
- qiang_liu8183
- 论坛版主
- 帖子: 10701
- 注册时间: 2006-09-10 22:36
- 系统: Arch Debian
- 来自: 北京
Linux将引入/run目录
未来Linux发行版的根目录下将增加一个/run目录。过去几周,Debian、Suse、Ubuntu和Fedora等发行版阵营的重要人物讨论了/dev目录被滥用的情况,希望在该问题还没有扩大化前找到解决方案。
他们提出了各种方案,但所有方案都归结到一点,/var/run目录不应在/var目录下,它可以提升到根目录下,这是唯一简洁明了的方案。阻止其实现的唯一原因是担心口水战。Fedora 15开发者已经上传一个新版systemd,能在根目录下建立一个/run目录。
他们提出了各种方案,但所有方案都归结到一点,/var/run目录不应在/var目录下,它可以提升到根目录下,这是唯一简洁明了的方案。阻止其实现的唯一原因是担心口水战。Fedora 15开发者已经上传一个新版systemd,能在根目录下建立一个/run目录。
干不了大事就把小事干的大气点
-
- 帖子: 22323
- 注册时间: 2010-07-19 21:41
- 系统: OS X
- 月下叹逍遥
- 论坛版主
- 帖子: 33994
- 注册时间: 2010-10-07 14:23
- 系统: Archdows10
- 来自: 某系某星某洲某国某省某市
- 联系:
- nmsfan
- 帖子: 18958
- 注册时间: 2009-10-16 22:46
- 来自: finland
Re: Linux将引入/run目录
新闻看见了,都在转载
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
- bsfmig
- 帖子: 220
- 注册时间: 2008-11-03 18:14
-
- 帖子: 3030
- 注册时间: 2009-10-03 23:31
Re: Linux将引入/run目录
实在看不出“/dev目录被滥用”“与/var/run目录不应在/var目录下”有神马关系?
- 白开水隐士
- 帖子: 85
- 注册时间: 2008-07-01 20:49
- 来自: 中国四川
Re: Linux将引入/run目录
临时文件不该放在/dev下,那是硬件设备相关的。很多人将/var单独分区,开机时刚挂载根分区就需要用到/run,这时还没挂载/var……levee 写了:实在看不出“/dev目录被滥用”“与/var/run目录不应在/var目录下”有神马关系?
-
- 帖子: 3030
- 注册时间: 2009-10-03 23:31
Re: Linux将引入/run目录
临时文件不是大多在/tmp和/var下么。临时文件不该放在/dev下
挂载根分区为什么要用到/run?开机时刚挂载根分区就需要用到/run
- bsfmig
- 帖子: 220
- 注册时间: 2008-11-03 18:14
Re: Linux将引入/run目录
实例(够长的,一个换行分隔一组):
[root@poo bsfmig]# ls -la /run
总用量 84
drwxr-xr-x 28 root root 1080 4月 2 16:37 .
dr-xr-xr-x. 24 root root 4096 4月 2 13:47 ..
drwxr-xr-x 2 root root 80 4月 2 13:47 abrt
-rw-r--r-- 1 root root 4 4月 2 13:47 abrtd.pid
-rw-r--r-- 1 root root 4 4月 2 13:47 acpid.pid
srw-rw-rw- 1 root root 0 4月 2 13:47 acpid.socket
-rw-r--r-- 1 root root 4 4月 2 13:47 atd.pid
-rw-r--r-- 1 root root 4 4月 2 13:47 auditd.pid
drwxr-xr-x 2 root root 80 4月 2 13:47 console
drwxr-xr-x 2 root root 60 4月 2 13:47 ConsoleKit
-rw-r--r-- 1 root root 5 4月 2 13:47 console-kit-daemon.pid
-rw-r--r-- 1 root root 4 4月 2 13:47 crond.pid
---------- 1 root root 0 4月 2 13:47 cron.reboot
drwxr-xr-x 3 root lp 80 4月 2 13:47 cups
-rw-r--r-- 1 root root 5 4月 2 13:47 cupsd.pid
drwxr-xr-x 2 root root 60 4月 2 13:47 dbus
drwxr-xr-x 2 root root 40 4月 2 13:47 faillock
drwx--x--x 4 root gdm 80 4月 2 13:47 gdm
-rw-r--r-- 1 root root 5 4月 2 13:47 gdm.pid
-rw-rw-r-- 1 root root 4 4月 2 13:47 gpm.pid
drwxr-xr-x 2 root root 60 4月 2 2011 initramfs
-rw-r--r-- 1 root root 4 4月 2 13:47 ksmtune.pid
drwxr-xr-x 5 root root 140 4月 2 13:47 libvirt
-rw-r--r-- 1 root root 5 4月 2 13:47 libvirtd.pid
drwxr-x--- 2 root root 60 4月 2 13:47 lldpad
-rw------- 1 root root 32 4月 2 13:47 lldpad.pid
drwxrwxr-x 6 root lock 120 4月 2 14:12 lock
drwx------ 2 root root 40 4月 2 13:47 lvm
srwxrwxr-x 1 root root 0 4月 2 13:47 mcelog-client
drwxr-xr-x 2 root root 60 4月 2 13:47 mdadm
-rw-r--r-- 1 root root 4 4月 2 13:47 messagebus.pid
drwxrwxr-x 2 root root 40 4月 2 13:47 netreport
drwxr-xr-x 2 root root 40 4月 2 13:47 net-snmp
drwxr-xr-x 2 root root 40 4月 2 13:47 plymouth
drwxrwxr-x 4 root root 80 4月 2 13:47 pm-utils
drwxr-xr-x 2 root root 60 4月 2 13:47 portreserve
drwxr-xr-x 2 root root 80 4月 2 13:48 ppp
-rw-r--r-- 1 root root 5 4月 2 13:47 ppp0.pid
drwxr-x--- 2 root root 40 4月 2 13:47 pptp
-r--r--r-- 1 root root 0 4月 2 13:47 rpcbind.lock
srw-rw-rw- 1 root root 0 4月 2 13:47 rpcbind.sock
-rw-r--r-- 1 rpcuser rpcuser 5 4月 2 13:47 rpc.statd.pid
drwxr-xr-x 2 root root 40 4月 2 13:47 saslauthd
srw-rw-rw- 1 root root 0 4月 2 13:47 sdp
-rw------- 1 root smmsp 33 4月 2 13:48 sendmail.pid
drwxr-xr-x 2 root root 40 4月 2 13:47 sepermit
drwxr-xr-x 2 root root 40 4月 2 13:47 setrans
-rw-r--r-- 1 smmsp smmsp 49 4月 2 13:48 sm-client.pid
-rw------- 1 root root 5 4月 2 13:47 sm-notify.pid
-rw-r--r-- 1 root root 4 4月 2 13:47 syslogd.pid
drwxr-xr-x 5 root root 180 4月 2 14:06 systemd
drwxr-xr-x 7 root root 160 4月 2 13:47 udev
drwxr-xr-x 3 root root 80 4月 2 17:01 user
-rw-rw-r-- 1 root utmp 3456 4月 2 16:36 utmp
--------------------------------------------------------------------------------------------------------------------------------------------------------------
[root@poo bsfmig]# mount
/proc on /proc type proc (rw,relatime)
/sys on /sys type sysfs (rw,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1949600k,nr_inodes=487400,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
/dev/sda6 on / type ext4 (rw,relatime,barrier=1,data=ordered)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/ns type cgroup (rw,nosuid,nodev,noexec,relatime,ns)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /sys/kernel/debug type autofs (rw,relatime,fd=27,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /dev/mqueue type autofs (rw,relatime,fd=29,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /dev/hugepages type autofs (rw,relatime,fd=30,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /sys/kernel/security type autofs (rw,relatime,fd=31,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda6 on /tmp type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sda6 on /var/tmp type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sda6 on /home type ext4 (rw,relatime,barrier=1,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
gvfs-fuse-daemon on /home/bsfmig/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=500,group_id=500)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
[root@poo bsfmig]# ls -la /run
总用量 84
drwxr-xr-x 28 root root 1080 4月 2 16:37 .
dr-xr-xr-x. 24 root root 4096 4月 2 13:47 ..
drwxr-xr-x 2 root root 80 4月 2 13:47 abrt
-rw-r--r-- 1 root root 4 4月 2 13:47 abrtd.pid
-rw-r--r-- 1 root root 4 4月 2 13:47 acpid.pid
srw-rw-rw- 1 root root 0 4月 2 13:47 acpid.socket
-rw-r--r-- 1 root root 4 4月 2 13:47 atd.pid
-rw-r--r-- 1 root root 4 4月 2 13:47 auditd.pid
drwxr-xr-x 2 root root 80 4月 2 13:47 console
drwxr-xr-x 2 root root 60 4月 2 13:47 ConsoleKit
-rw-r--r-- 1 root root 5 4月 2 13:47 console-kit-daemon.pid
-rw-r--r-- 1 root root 4 4月 2 13:47 crond.pid
---------- 1 root root 0 4月 2 13:47 cron.reboot
drwxr-xr-x 3 root lp 80 4月 2 13:47 cups
-rw-r--r-- 1 root root 5 4月 2 13:47 cupsd.pid
drwxr-xr-x 2 root root 60 4月 2 13:47 dbus
drwxr-xr-x 2 root root 40 4月 2 13:47 faillock
drwx--x--x 4 root gdm 80 4月 2 13:47 gdm
-rw-r--r-- 1 root root 5 4月 2 13:47 gdm.pid
-rw-rw-r-- 1 root root 4 4月 2 13:47 gpm.pid
drwxr-xr-x 2 root root 60 4月 2 2011 initramfs
-rw-r--r-- 1 root root 4 4月 2 13:47 ksmtune.pid
drwxr-xr-x 5 root root 140 4月 2 13:47 libvirt
-rw-r--r-- 1 root root 5 4月 2 13:47 libvirtd.pid
drwxr-x--- 2 root root 60 4月 2 13:47 lldpad
-rw------- 1 root root 32 4月 2 13:47 lldpad.pid
drwxrwxr-x 6 root lock 120 4月 2 14:12 lock
drwx------ 2 root root 40 4月 2 13:47 lvm
srwxrwxr-x 1 root root 0 4月 2 13:47 mcelog-client
drwxr-xr-x 2 root root 60 4月 2 13:47 mdadm
-rw-r--r-- 1 root root 4 4月 2 13:47 messagebus.pid
drwxrwxr-x 2 root root 40 4月 2 13:47 netreport
drwxr-xr-x 2 root root 40 4月 2 13:47 net-snmp
drwxr-xr-x 2 root root 40 4月 2 13:47 plymouth
drwxrwxr-x 4 root root 80 4月 2 13:47 pm-utils
drwxr-xr-x 2 root root 60 4月 2 13:47 portreserve
drwxr-xr-x 2 root root 80 4月 2 13:48 ppp
-rw-r--r-- 1 root root 5 4月 2 13:47 ppp0.pid
drwxr-x--- 2 root root 40 4月 2 13:47 pptp
-r--r--r-- 1 root root 0 4月 2 13:47 rpcbind.lock
srw-rw-rw- 1 root root 0 4月 2 13:47 rpcbind.sock
-rw-r--r-- 1 rpcuser rpcuser 5 4月 2 13:47 rpc.statd.pid
drwxr-xr-x 2 root root 40 4月 2 13:47 saslauthd
srw-rw-rw- 1 root root 0 4月 2 13:47 sdp
-rw------- 1 root smmsp 33 4月 2 13:48 sendmail.pid
drwxr-xr-x 2 root root 40 4月 2 13:47 sepermit
drwxr-xr-x 2 root root 40 4月 2 13:47 setrans
-rw-r--r-- 1 smmsp smmsp 49 4月 2 13:48 sm-client.pid
-rw------- 1 root root 5 4月 2 13:47 sm-notify.pid
-rw-r--r-- 1 root root 4 4月 2 13:47 syslogd.pid
drwxr-xr-x 5 root root 180 4月 2 14:06 systemd
drwxr-xr-x 7 root root 160 4月 2 13:47 udev
drwxr-xr-x 3 root root 80 4月 2 17:01 user
-rw-rw-r-- 1 root utmp 3456 4月 2 16:36 utmp
--------------------------------------------------------------------------------------------------------------------------------------------------------------
[root@poo bsfmig]# mount
/proc on /proc type proc (rw,relatime)
/sys on /sys type sysfs (rw,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1949600k,nr_inodes=487400,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
/dev/sda6 on / type ext4 (rw,relatime,barrier=1,data=ordered)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/ns type cgroup (rw,nosuid,nodev,noexec,relatime,ns)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /sys/kernel/debug type autofs (rw,relatime,fd=27,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /dev/mqueue type autofs (rw,relatime,fd=29,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /dev/hugepages type autofs (rw,relatime,fd=30,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /sys/kernel/security type autofs (rw,relatime,fd=31,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda6 on /tmp type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sda6 on /var/tmp type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sda6 on /home type ext4 (rw,relatime,barrier=1,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
gvfs-fuse-daemon on /home/bsfmig/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=500,group_id=500)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
- 白开水隐士
- 帖子: 85
- 注册时间: 2008-07-01 20:49
- 来自: 中国四川
Re: Linux将引入/run目录
因为开机时那些很底层的程序需要向原来的/var/run写入文件,但整个文件系统尚未挂载好,系统启动初期只有一个根分区挂载上来,如果你/var单独分区就比较悲剧。所以移到/runlevee 写了:临时文件不是大多在/tmp和/var下么。临时文件不该放在/dev下
挂载根分区为什么要用到/run?开机时刚挂载根分区就需要用到/run
- TeliuTe
- 论坛版主
- 帖子: 7675
- 注册时间: 2007-11-25 13:29
- 系统: 16/18/20/w7
- 来自: 新疆博乐
- 联系:
- wtry
- 帖子: 923
- 注册时间: 2009-03-18 9:26
Re: Linux将引入/run目录
学习了
我的/dev也被滥用了
/dev/shm/firefox/
其实我也不知道这算不算是呗滥用呵呵…………
我的/dev也被滥用了
/dev/shm/firefox/



其实我也不知道这算不算是呗滥用呵呵…………
- ooinzaghi
- 帖子: 1767
- 注册时间: 2010-11-18 15:55
- 系统: ubuntu16.04+win10
- 来自: Auir
Re: Linux将引入/run目录
白开水隐士 写了:因为开机时那些很底层的程序需要向原来的/var/run写入文件,但整个文件系统尚未挂载好,系统启动初期只有一个根分区挂载上来,如果你/var单独分区就比较悲剧。所以移到/runlevee 写了:临时文件不是大多在/tmp和/var下么。临时文件不该放在/dev下
挂载根分区为什么要用到/run?开机时刚挂载根分区就需要用到/run


-
- 帖子: 32
- 注册时间: 2010-05-09 16:26
Re: Linux将引入/run目录
大侠们,折腾吧。让linux越来越好用,让所有软件企业都重视上他,让MS滚蛋。最后我希望在此基础上有一个国产的发行版本(或档次再高一点儿,内核上有所建树
)。

-
- 帖子: 716
- 注册时间: 2008-10-31 3:18
- 联系:
Re: Linux将引入/run目录
能够提高速度?
Ubuntu 桌面培训
Duo T6400 GeForce 9300MGS 4G win10 Lubuntu18.04 64bit双系统奔跑中
P3 667 512M GeForce MX200 Lbuntu10.04
从零开始学游泳 萨顶顶
Duo T6400 GeForce 9300MGS 4G win10 Lubuntu18.04 64bit双系统奔跑中
P3 667 512M GeForce MX200 Lbuntu10.04
从零开始学游泳 萨顶顶