WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: du -a tmp/ run/  (Read 2656 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
du -a tmp/ run/
« on: February 20, 2012, 02:07:27 PM »
What are these files/folders for?

tc@thinkpad:~/jo$ du -a tmp/ run/
0   tmp/aberr
4   tmp/98-tc.rules
4   tmp/
0   run/udev
0   run/

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11210
Re: du -a tmp/ run/
« Reply #1 on: February 20, 2012, 07:40:20 PM »
Hi hiro
A grep search for aberr on /usr returned   /usr/bin/tce-setup   and   /usr/bin/appsaudit   which probably use it for logging errors.

The file   /etc/init.d/tc-config   contains the line   mv /tmp/98-tc.rules /etc/udev/rules.d/. 2>/dev/null
It looks like the boot code   nofstab   bypasses that line leaving  98-tc.rules  in  /tmp/

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10959
Re: du -a tmp/ run/
« Reply #2 on: February 21, 2012, 05:07:31 AM »
See the FHS for tmp and run. Actually /run might not be in the latest FHS yet, but udev requires it. It used to be /var/run.
The only barriers that can stop you are the ones you create yourself.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
Re: du -a tmp/ run/
« Reply #3 on: February 21, 2012, 06:01:24 AM »
So 98-tc.rules gets moved later on because we need a different behavior on boot?

Ok I read something on Poetterings /run dir and from what I understand udev breaks down without it or something. Nevermind...

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11210
Re: du -a tmp/ run/
« Reply #4 on: February 21, 2012, 08:26:03 AM »
Hi hiro
Upon booting  98-tc.rules  is initially  under  /tmp  because that's how it was saved when  tinycore.gz  was made.
98-tc.rules  just calls  /usr/sbin/rebuildfstab  when a drive is added or removed from the system, like a USB thumb drive.
If you use the boot code   "nofstab"   then  /etc/fstab  is not created and  /tmp/98-tc.rules is simply left where it is.
If you do not use the boot code   "nofstab"   then  /etc/fstab  is created and  /tmp/98-tc.rules is moved to its proper
location (/etc/udev/rules.d/) and the system is told those rules exist.
Without  /etc/fstab  anyone not in the sudoers list can not mount a drive.