Le samedi 17 octobre 2009 C 15:03 +0200, Ingo Schwarze a C)crit : > Hi Jean-Francois, > > jean-francois wrote on Sat, Oct 17, 2009 at 12:25:31PM +0200: > > > I could clarify one thing more : the disk with home and var and usr > > and / and all system points is a SSD so always running. > > > > I have mounted two separately drives which are both high capacity > > classic rotating hard drives. > > > > The daily script wakes them up and I would like to avoid this because > > sometimes it really is not necessary to run the disks for some time and > > it is useless to simply wake and asleep them each day. > > > > They are only data disks mounted in /mnt > > Shots in the dark, but you could try to: > > * Set > VERBOSESTATUS=0 > in /etc/daily.local > which will, among others, avoid running df(1), > see daily(8) for details. > * Set > SUIDSKIP=/mnt > in /etc/daily.local > which will avoid scanning /tmp for setuid/setgid files and devices. > Of course, mount all file systems on the disks nosuid,nodev > before doing this, and do not forget to update fstab(5). > * In /etc/security, > comment out the paragraph below > # Make backups of the labels for any mounted disks > * Check that /mnt does not appear in the path to the home directory > of any user on the system, as security(8) checks some special > files in home directories. > > I'm not guaranteeing this will suffice, but i hope so. > > Alternatively, consider simply unmounting the disks in the first place. > Why have them mounted when you don't want access to them? > > It is not recommended to disable security(8) and probably not needed > for your purpose. > > I'm not discussing which non-default features you might have switched > on that might be causing additional disk access. Several exist. > > Yours, > Ingo
Hi Ingo, Reason is I settled sort of a nas server which means it is actually deserving files to the network. For it is my personal server, there are from time to time couple of days even couple of weeks where there's no reason to read those datas. It is working 24/7 and needs to be available at all time, reason why it's mounted. Moreover, the disk is a 1 tera therefore it's very long to start, reason why I want to avoid it to be started each and every day if it's not necessary. I think the few answers I received will be useful to sort this out. In the first place, I use to change the time of the cron job because it used to start in a big noise (this disk is very noisy compared to the server itself) at 1 o clock in the night, waking me up (!) nearly every time. I'm also thinking of making something as an OpenBSD based NAS server for few of my friends in order to replace the industrial ones because of the security issues they seem to have. In the end, for all those reasons actually, thanks for your help.