Results 1 to 5 of 5

Thread: tmpfs /var/log/apt

  1. #1
    Join Date
    Apr 2005
    Beans
    116

    tmpfs /var/log/apt does not mount

    Hi,

    Following http://www.ubuntu-eee.com/wiki/index...ur_Flash_Drive, I added:

    Code:
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
    tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
    tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0 
    tmpfs /var/log/apt tmpfs defaults,noatime 0 0
    to my /etc/fstab but /var/log/apt does not mount. Is there some configuration option that I'm missing? Will a "mkdir /var/log/apt" in rc.local do the same trick?

    Thanks,
    kozi
    Last edited by kozimodo; April 7th, 2009 at 08:35 PM. Reason: choose better title

  2. #2
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: tmpfs /var/log/apt

    Rather than trying to mount a /var/log/apt as tmpfs, instead just create it in rc.local (which gets run after /var/log is mounted). Edit, /etc/rc.local and add the following to it:

    Code:
    mkdir /var/log/apt
    That's what I use for what you are doing and it works fine.
    Don't try to make something "fast" until you are able to quantify "slow".

  3. #3
    Join Date
    Apr 2005
    Beans
    116

    Re: tmpfs /var/log/apt

    Thanks. That is what I had already done. I guess I'm just puzzled since those fstab lines are suggested in numerous places so presumably it works on some installations.

  4. #4
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: tmpfs /var/log/apt

    I found those instructions too and it inspired me to mount a bunch of stuff as tmpfs for power savings reasons. However, as written, I don't think they can ever actually work because apt will always need /var/log/apt and it's doesn't seem to be keen on creating that directory when it doesn't exist. I would almost consider that an apt bug actually.
    Don't try to make something "fast" until you are able to quantify "slow".

  5. #5
    Join Date
    Apr 2005
    Beans
    116

    Re: tmpfs /var/log/apt

    So what else do you mount to tmpfs to save power?

    Just curious since I'm building a digital picture frame from an old dell and it would be nice to keep power consumption to a minimum.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •