Solved

noatime on boot disk

Posted on 2001-07-12
6
241 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

932 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

7 Experts available now in Live!

Get 1:1 Help Now