Author Topic: Set all media to -noatime?  (Read 4165 times)

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Set all media to -noatime?
« Reply #15 on: May 06, 2010, 07:51:59 AM »
"Spell out what you want."

Just want to mount/unmount my external drives by clicking on "device notifier" with noatime setting in our case.
With mount it can be done but not with "device notifier".
When I add some entries into fstab to mount it to /media or /mnt none of them work with the notifier.

Now the setting is:
LABEL=extData /mnt/extData ext4 rw,user,noauto,noatime 0 0
(/mnt/extData is of course created)

Maybe the "device notifier" is unable to mount partitions when there are some settings in fstab for them. (see the pictures below)

mikkl
I hope you also meant the same thing when you started this thread.  :)

ps:
old-polack
Your post are always great when it comes to hard disks, partitions, grub etc. You should write some book about it. It would be BestSeller.  ;D


PC --> More Applications --> Monitoring --> KDiskFree should bring up a window something like;



Right click on the line with the LABEL=extData partition you want to mount, and choose Mount Device. It should mount above the area with the label, and present a partition usage line in blue. Right click that line and choose Open in File Manager.

See if you can now create a new folder there.

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline marian

  • Hero Member
  • *****
  • Posts: 608
  • Hi
Re: Set all media to -noatime?
« Reply #16 on: May 06, 2010, 01:50:28 PM »
It looks like it is working with KDiskFree.
However after mounting there are two lines for LABEL=extData (the second is called dev/sdb4 which is mounted) and it looks like it has the noatime parameter:

mount
.....
/dev/sdb4 on /mnt/extData type ext4 (rw,noexec,nosuid,nodev,noatime,user=majo)
.....

Unfortunately in Dolphin or with device notifier it is not possible to mount or unmount this drive but it's not a big deal for me.

I will have to find a compromise (noatime or easy manipulation) because I am not the only one who use this computer.  ;D

But thanks anyway.
I think I am not the only one who has learned a lot from your excelent posts O-P.  ;)
Freedom is the only way!

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Set all media to -noatime?
« Reply #17 on: May 06, 2010, 02:28:43 PM »
It looks like it is working with KDiskFree.
However after mounting there are two lines for LABEL=extData (the second is called dev/sdb4 which is mounted) and it looks like it has the noatime parameter:

mount
.....
/dev/sdb4 on /mnt/extData type ext4 (rw,noexec,nosuid,nodev,noatime,user=majo)
.....

Unfortunately in Dolphin or with device notifier it is not possible to mount or unmount this drive but it's not a big deal for me.

I will have to find a compromise (noatime or easy manipulation) because I am not the only one who use this computer.  ;D

But thanks anyway.
I think I am not the only one who has learned a lot from your excelent posts O-P.  ;)

I never trusted My Computer in KDE3, and I don't trust Dolphin in KDE4, so I bypassed both with KDiskFree. My desktop 16 has KDiskFree open on it always.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline PcPrisoner

  • Full Member
  • ***
  • Posts: 215
Re: Set all media to -noatime?
« Reply #18 on: May 07, 2010, 07:59:15 PM »
You can get drives to automatically mount by writing your own /etc/udev/rules.d/ .rules file to run a "mount LABEL=" command, after you do the fstab entry.

Offline ElCuervo

  • Hero Member
  • *****
  • Posts: 4147
  • I'm walking on sunshine!
Re: Set all media to -noatime?
« Reply #19 on: May 08, 2010, 03:32:19 PM »
...But thanks anyway.
I think I am not the only one who has learned a lot from your excellent posts O-P.  ;)
here is at least +1 - thanks from this bystander, o-p...

I never trusted My Computer in KDE3, and I don't trust Dolphin in KDE4, so I bypassed both with KDiskFree. My desktop 16 has KDiskFree open on it always.
... you crotchety old MLU! ;D
"If there were no change, there would be no butterflies" - Walt Disney

http://linuxcounter.net/cert/433721.png

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Set all media to -noatime?
« Reply #20 on: May 08, 2010, 03:59:49 PM »
...But thanks anyway.
I think I am not the only one who has learned a lot from your excellent posts O-P.  ;)
here is at least +1 - thanks from this bystander, o-p...

I never trusted My Computer in KDE3, and I don't trust Dolphin in KDE4, so I bypassed both with KDiskFree. My desktop 16 has KDiskFree open on it always.
... you crotchety old MLU! ;D

That's IOFLU to you... thank you very much! ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline marian

  • Hero Member
  • *****
  • Posts: 608
  • Hi
Re: Set all media to -noatime?
« Reply #21 on: June 03, 2010, 02:45:52 AM »
I am very pleased to inform you that after a few weeks of trying and searching a very easy way to set noatime for external drives has been discovered.  :)

For my external extImages partition I added to fstab this line:
/dev/disk/by-label/extImages /mnt/extImages ext4 rw,user,noauto,noatime 0 0

and wow, it works  ;D

Now mount shows me:
/dev/sdb3 on /mnt/extImages type ext4 (rw,noexec,nosuid,nodev,noatime,user=majo)

And finally, it can be un/mounted with Dolphin and with device notifier.

Regards  ;)
Freedom is the only way!

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: Set all media to -noatime?
« Reply #22 on: June 03, 2010, 01:40:32 PM »
Is there a way to set all media to -noatime?

I have used fstab to do this for / and ~ and would like to do the same for file systems automagically mounted to /media.  Is this something I could set at the /media level that would propagate down to the mounted devices, for example?

TIA,

mikkl

When you plug in a USB device and mount it, have a look at the hidden files in the /media directory where the new mount point will be located.
In there is a file called .hal-mtab and in that file you will see a line representing the mounting of each removable device. For instance this is the line that appears in that file when I mount a DVD media .....

Code: [Select]
/dev/sr0  500  0 udf nosuid,nodev,uhelper=hal,uid=500   /media/P9194SE_1
As you can see the mount parameters are preset for the media.

This one is the line representing the mounting of a named partition on a USB flash drive (called PCLOS)
Code: [Select]
/dev/sdh2 500 0 ext3 nosuid,nodev,uhelper=hal /media/PCLOS
So at least we know what mount parameters are being used.
Presumably those presets are editable .......  if one knew where they were located.
I have not looked to try to find them, so if anyone knows please post.

Changing this noatime parameter in KDE3 was a doddle ......  they were available for editing in the right click menu of the Properties of the Desktop icon.
I have not found a similar simple means of doing the same thing in KDE4.

I too would like to find an easy method of determinimg if some of those partitions are to be mounted with or without noatime invoked.
In my case I would want it to be for individual partitions as with KDE3 and not by changing the preset for all such partitions.

regards.