Author Topic: testing trim on ssd not working (solved)-ongoing  (Read 2940 times)

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10637
  • MLUs Forever!
Re: testing trim on ssd not working (solved)-ongoing
« Reply #15 on: April 24, 2012, 01:44:02 PM »
thanks j18. ;)
 now for the next issue i discovered :P. diskdrake lists the ssd as sda but when i look at the fstab file it lists the partitions on sdc. :-\ so the obvious question is: when editing the rc.local file do i use sda or sdc? ??? i would venture you would want to use what the fstab file dictates as it is the actual config file ;) and disdrake is only a gui.
  enlighten me :)

Post the terminal output from the command ....

Code: [Select]
blkid -c /dev/null
and the contents of the fstab file

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working (solved)-ongoing
« Reply #16 on: April 24, 2012, 02:42:02 PM »
sorry not as responsive as id like :-\ hotel management you know is a 24 hr job :P, anyway here are the cl returns: :)
ruby@localhost ~]$ su
Password:
[root@localhost ~]# blkid -c /dev/null
/dev/sda1: UUID="d1c07a82-231e-4c59-83b0-3974621f168f" TYPE="ext4"
/dev/sda2: UUID="b1e16be8-d609-4de0-acaa-29180fed2416" TYPE="swap"
/dev/sda3: UUID="78ae2f65-de71-41bf-86da-58f644ad011e" TYPE="ext4"
[root@localhost ~]# cat /etc/fstab
# Entry for /dev/sdc1 :
UUID=d1c07a82-231e-4c59-83b0-3974621f168f / ext4 noatime,nodiratime,discard,errors=remount-ro 1 1
# Entry for /dev/sdc3 :
UUID=78ae2f65-de71-41bf-86da-58f644ad011e /home ext4 noatime,nodiratime,discard,errors=remount-ro 1 2
none /proc proc defaults 0 0
# Entry for /dev/sdc2 :
UUID=b1e16be8-d609-4de0-acaa-29180fed2416 swap swap defaults 0 0
none /dev/pts devpts defaults 0 0
Friends don't let friends boot windows

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10637
  • MLUs Forever!
Re: testing trim on ssd not working (solved)-ongoing
« Reply #17 on: April 24, 2012, 02:54:23 PM »
If you examine the fstab entry, it is using the UUID of the partition to specify it.
That UUID is for /dev/sda1 as is apparent from the blkid output.

The comment
Code: [Select]
# Entry for /dev/sdc1 :
is only that - a comment.
The drive may have been 'seen' as /dev/sdc at the time the fstab was written, but that is one of the reasons the UUID is used to specify the correct partition, regardless the   /dev/   applied to it at any time.

The same applies to the other partitions on the drive.

So, there is nothing at all wrong there ....  the mention of /dev/sdc  was true at the time, but is not now.

I hope I have explained it properly .....

regards
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working (solved)-ongoing
« Reply #18 on: April 24, 2012, 03:21:56 PM »
so if i edit the fstab to reflect the actual sd# ::) it will not change anything because the fstab is using th uuid# anyway :o. thats how i interpret your helpful reply. ;D
Friends don't let friends boot windows

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10637
  • MLUs Forever!
Re: testing trim on ssd not working (solved)-ongoing
« Reply #19 on: April 24, 2012, 03:46:28 PM »
so if i edit the fstab to reflect the actual sd# ::) it will not change anything because the fstab is using th uuid# anyway :o. thats how i interpret your helpful reply. ;D

All lines with a  #   at the beginning are ignored, and this is often used for including information.

So anything you put on such a line makes no difference.

It will make no difference to the OS if you change

Code: [Select]
# Entry for /dev/sdc1 :
to

Code: [Select]
# Entry for /dev/sda1 :
except the information is edited.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline loudog

  • Sr. Member
  • ****
  • Posts: 399
Re: testing trim on ssd not working (solved)-ongoing
« Reply #20 on: April 25, 2012, 09:54:39 AM »
well thank you so much j18. :) :)  now on to the next issue, i guess its not an issue but more of a clairification ;). in some of the tutorials it suggests editing the fstab file using noatime and nodiratime. :-\ the debates i have investigated seem to indicate that noatime includes nodiratime in of itself. ??? how does pclos interpret these?
Friends don't let friends boot windows

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10637
  • MLUs Forever!
Re: testing trim on ssd not working (solved)-ongoing
« Reply #21 on: April 25, 2012, 10:39:24 AM »
well thank you so much j18. :) :)  now on to the next issue, i guess its not an issue but more of a clairification ;). in some of the tutorials it suggests editing the fstab file using noatime and nodiratime. :-\ the debates i have investigated seem to indicate that noatime includes nodiratime in of itself. ??? how does pclos interpret these?

They are there, as I understand it, to reduce unnecessary accesses to the drive.

atime =>  Access time ...  each accessed file would be updated at every access without the noatime mount entry. (in fact I think that relatime is now the default for later kernels ...  someone else would have to confirm or correct that  ;)

If you right click on a file, select properties and then check the information you will find when that file was last accessed.
With the noatime entry this info is not updated each time thus saving writes to the drive.

EDIT:   Just read your question again ......  I am not sure about the noatime in PCLOS (whether it includes nodiratime or not), but, IMO, it does no harm to have nodiratime specified  :D
Maybe someone who knows will read this and comment.


regards
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT