LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   reduce SSD wear&tear (https://www.linuxquestions.org/questions/linux-newbie-8/reduce-ssd-wear-and-tear-4175615081/)

Assar 10-05-2017 02:08 AM

reduce SSD wear&tear
 

Rep: Reputation: Disabled

SSD : reduce wear & tear
866/5000
What modifications should be made to reducing wear on SSD? I have read about "noatime" for example but did not get it EXACT how and
WHERE
you enter this in FSTAB! If it is wrong, the computer will not start o The entire installation is corrupt.
This is my current fstab:

# /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> /dev/mapper/mint--vg-root / ext4 rrors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=437af9a5-5c9e-4a15-b07f-22640de64986 /boot ext2 defaults 0 2
/dev/mapper/mint--vg-swap_1 none swap sw 0 0



I used LVM2 when partitioning.


I'm not completely sure HOW I will mount the disks to access fstab if I would have to boot from a MINTSTICK o then try to edit fstab.

business_kid 10-05-2017 05:20 AM

I am using an ssd on /dev/sda. I've had these options for a few years and it hasn't blown up or refused to mount. These are available within 5 minutes with google, and I'm only bothering to answer this because I need to rest for a bit.
Code:

bash-4.3$ cat /etc/fstab
/dev/sda3        /                ext4        noatime,diratime,discard                1  1
/dev/sda2        swap            swap        noatime,diratime,discard                0  1
/dev/sda6        /media/hd0          ext4              noatime,diratime,discard                0  0
/dev/sda1        /boot            auto        noatime,diratime,discard          1  2
/dev/sda5        /home            ext4        noatime,diratime,discard                1  2
/dev/sda7        /mnt/virtual    ext4        noatime,diratime,discard,user    1  2
/dev/sr0        /mnt/cdrom      auto        noauto,user,ro,comment=x-gvfs-show 0  0
/dev/mmcblk0p1    /mnt/zip          vfat        noauto,relatime,diratime,user,exec,dev,suid,nofail    0  0
/dev/sdb1        /mnt/hd          auto              relatime,diratime,user,exec,dev,suid,nofail    0  0
/dev/sdb2        /mnt/tmp        auto        relatime,diratime,user,exec,dev,suid,nofail    0  0
/dev/sdb3        /mnt/dvd        auto              relatime,diratime,user,exec,dev,suid,nofail    0  0
/dev/sdc1        /media/hd1      auto        relatime,diratime,user,exec,dev,suid,nofail    0  0
/dev/sdc2        /media/zip1      auto        relatime,diratime,user,exec,dev,suid,nofail    0  0
/dev/sdc3        /media/dvd1      auto        relatime,diratime,user,exec,dev,suid,nofail    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
tmpfs            /dev/shm        tmpfs      defaults        0  0

sdb & sdc are usb disks. BTW, mount really tries to mount stuff even if it gets stupid or incomprehensible options. It throws "you're a twit" type errors but you usually get going read only. You can remount even / rw with the sane options.


All times are GMT -5. The time now is 01:40 PM.