Solved

noatime on boot disk

Posted on 2001-07-12
6
240 Views
Last Modified: 2012-08-13
I'm developing an embedded system with a flash disk on module root partition mounted in read-only.

Linux keeps on updateing the access time also if it is on a read-only partition. Mounting the partition with the noatime flag solve this problem, but I don't know how to force it at boot time to avoid any kind of remounting once the system is up.

Thank you in advance.
Livio
0
Comment
Question by:livio
  • 2
  • 2
  • 2
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6280905
add the  noauto  option to the corresponding mount point in /etc/fstab
0
 

Author Comment

by:livio
ID: 6281799
The root partition is mounted by the kernel with its own parameters and not with the /etc/fstab options.

I can modify those parameters with rdev, but I do not know how to force the noatime flag.

Thank you.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6281812
oops, didn't read carefully
> .. disk on module root partition ..

how do you mount this? could you please post the command.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 5

Expert Comment

by:bryanh
ID: 6282479
I don't get it.  The system is updating atimes (file access times) on a read only filesystem image?  You can't update anything on a read only filesystem image.  What's the filesystem type?  Is this a special filesystem driver for a "flash disk on module root partition" (I had trouble parsing that sentence)?
0
 

Author Comment

by:livio
ID: 6285232
I read on many news on the embedded mailing-lists that the access time keep on to be updated on the ext2 filesystem also if it is mounted in read-only mode.

I'm using the ext2 filesystem to run my emebedded system that has the root partition on a solid state disk made with flash memories ("disk on module"), so I MUST avoid all those unusefull writes.

The "disk on module" is mounted on a normal IDE connector and there is nothing different between it and a normal hard disk from the linux point of view.

I'm using lilo as a boot loader with the read-only option enabled.
0
 
LVL 5

Accepted Solution

by:
bryanh earned 200 total points
ID: 6288295
Hmm.  It certainly doesn't make any sense that the kernel would update the atime on a read only filesystem image.  And in the source code, update_atime() in fs/inode.c, it quite simply ignores the request if the inode is read-only (which in ext2 is always true when the mount is read-only).  And I just accessed a file on a read-only ext2 filesystem image on my Linux 2.2.19.

So I don't know what you and the people on the mailing lists are experiencing.

The read-only option is settable on the initial root filesystem image only as a special case; you can't set any other mount options, such as NOATIME.

I suppose you could make your initial root filesystem a ramdisk (initrd) and then mount the disk-on-module with the NOATIME option via a startup script.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now