Mounting devices with noatime?

Home Page Forums Network Management ZeroShell Mounting devices with noatime?

This topic contains 2 replies, has 0 voices, and was last updated by  bender02 9 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41581

    bender02
    Member

    Is there a way to mount the device on which databases are stored with ‘option=noatime’? I have it on a CF card, and that would help to increase the lifespan of the card.

    #47891

    raven3433
    Member

    @bender02 wrote:

    … ‘option=noatime’? I have it on a CF card, …

    I haven’t tried but would suggest to add “noatime” to /etc/fstab

    For example:

    /dev/sda1    /boot ext3 noauto,noatime 1 1
    /dev/sda2 / ext3 noatime 0 0
    /dev/sda3 none swap sw 0 0

    (Fulvio please correct me if I’m wrong)

    Greetz RaVEn

    #47892

    bender02
    Member

    Well the problem is that the stuff mounted from fstab in zeroshell is all either in ram or mounted read-only, so there’s no problem with that. The partition that I wanted to mount with noatime is the partition that holds Profiles (it’s even labelled Profiles), and that one is not mentioned in fstab – I assume it’s because not every zeroshell install does necessarily have one; and it’s mounted somewhere from some script.

    #47893

    imported_fulvio
    Participant

    Probably, you just need to put the following command in the pre boot script:

    mount -o remount,noatime /DB
    mount -o remount,noatime /Database

    Regards
    Fulvio

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.