Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: TRIM on everything?

  1. #11
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: TRIM on everything?

    Quote Originally Posted by haqking View Post
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda1 during installation
    UUID=2e19524f-b028-4ef3-93a5-bed6757708fc /               ext4    defaults,noatime,nodiratime,discard,errors=remount-ro        0       1
    # /DATA was on /dev/sdc1 during installation
    # UUID=3A2084D220849713 /DATA           ntfs    defaults,umask=007,gid=46 0       0
    # /SSD2DATA was on /dev/sdb1 during installation
    UUID=de961735-1d84-4c72-8abe-fefa7b03a708 /SSD2DATA       ext4    defaults,noatime,nodiratime,discard,errors=remount-ro        0       2
    # /home was on /dev/sda2 during installation
    UUID=5a71aee7-cd8c-431f-bdc3-828bc40226b7 /home           ext4    defaults,noatime,nodiratime,discard,errors=remount-ro        0       2
    # swap was on /dev/sdc2 during installation
    UUID=c01746dc-7f90-40a6-9dda-324aecf9bdce none            swap    sw              0       0
    # Place tmp into ram
    tmpfs       /tmp        tmpfs       defaults,mode=1777      0   0
    tmpfs       /var/tmp    tmpfs       defaults,mode=1777      0   0
    tmpfs       /var/spool  tmpfs       defaults,mode=1777      0   0
    tmpfs       /var/cache  tmpfs       defaults                0   0
    There is no need to specify noatime and nodiratime.

    Just using noatime implicitly specifies nodiratime as well.
    Cheesemill

  2. #12
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,744

    Re: TRIM on everything?

    Quote Originally Posted by Cheesemill View Post
    There is no need to specify noatime and nodiratime.

    Just using noatime implicitly specifies nodiratime as well.
    Spookily enough I was reading an article this evening which was saying the same, I hadnt realised it was a subset, but i am finding conflicting information.

    I am still looking into it, but cheers.
    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  3. #13
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: TRIM on everything?

    You may want to look here where someone looks at the source code.
    Cheesemill

  4. #14
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,744

    Re: TRIM on everything?

    Quote Originally Posted by Cheesemill View Post
    You may want to look here where someone looks at the source code.
    ha, yeah i already had it open in a tab

    Cheers
    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  5. #15
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: TRIM on everything?

    Quote Originally Posted by haqking View Post
    swap shouldnt be on a SSD if you can help it, and wont support discard anyway
    Rubbish, the code for "Discard" has been in the kernel for Swap partition processing for a while now. It is always used and is not a user option.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  6. #16
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,744

    Re: TRIM on everything?

    Quote Originally Posted by dcstar View Post
    Rubbish, the code for "Discard" has been in the kernel for Swap partition processing for a while now. It is always used and is not a user option.
    Interesting.

    However it appears on the arch and debian wiki that it is a user option however ?

    That being said Swap shouldnt be on a SSD where possible though which was my point, as for swap not being able to use it, i wasn't aware it could but it would appear that the user can define it.
    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •