Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:x250 [2017/08/12 22:19]
stwn +luks
doc:x250 [2018/02/01 01:12] (current)
stwn [SSD and Filesystem] hdparm
Line 13: Line 13:
 Filesystem ext4 and TRIM (discard option or use fstrim command). Put "​noatime"​ or "​relatime"​ in the option of the partitions in the fstab file. Do not create swap partition. Change I/O scheduler if needed. Filesystem ext4 and TRIM (discard option or use fstrim command). Put "​noatime"​ or "​relatime"​ in the option of the partitions in the fstab file. Do not create swap partition. Change I/O scheduler if needed.
  
-tmpfs for /tmp+tmpfs for /tmp
 +  tmpfs   /​tmp ​  ​tmpfs ​  ​noatime,​nosuid,​nodev,​noexec ​  ​0 ​  0
  
 Add periodic cron, for example weekly. Put '​fstrim -a' in /​etc/​cron.weekly/​fstrim Add periodic cron, for example weekly. Put '​fstrim -a' in /​etc/​cron.weekly/​fstrim
 +
 +fstrim -av
  
 systcl.conf,​ add "​vm.swappiness = 10" or "​vm.swappiness = 1" systcl.conf,​ add "​vm.swappiness = 10" or "​vm.swappiness = 1"
  
 lsblk lsblk
 +lsblk -D
  
 /​sys/​block/​sdX/​queue/​rotational /​sys/​block/​sdX/​queue/​rotational
 +
 +/​sys/​block/​sda/​queue/​discard_granularity
  
 smartctl -a /dev/sdX smartctl -a /dev/sdX
  
-If you use LUKS encrypted partition, don't forget to activate discard in crypttab. The implication is the less secure storage since the firmware knows where the data stored in the encrypted partition.+# sfdisk -d /dev/sdX
  
 +If you use LUKS encrypted partition, don't forget to activate "​discard"​ option in crypttab. The implication is the less secure storage since the firmware knows where the data stored in the encrypted partition. LVM has also "​discard"​ option.
 +
 +  edisk  UUID=XYZ none luks,​discard
 +
 +  dmsetup table /​dev/​mapper/​edisk --showkeys
 +  ​
 +sudo hdparm -I /​dev/​sda|grep TRIM
 ===== Packages ===== ===== Packages =====
 +
 +==== From Repository ====
 +
   calibre dia git gimp cups eog evince ffmpeg file-roller freeplane frogr gdm gksu gnash   calibre dia git gimp cups eog evince ffmpeg file-roller freeplane frogr gdm gksu gnash
   gnumeric gns3 libreoffice mc nixnote2 nmap plymouth plymouth-themes qemu rhythmbox   gnumeric gns3 libreoffice mc nixnote2 nmap plymouth plymouth-themes qemu rhythmbox
-  simple-scan synaptic tlp totem wine wireshark+  ​screen ​simple-scan synaptic tlp totem wine wireshark 
 + 
 +==== GNOME and Qt ==== 
 + 
 +  adwaita-qt adwaita-qt4 gnome-themes-standard qt4-qtconfig 
 + 
 +==== Official ==== 
 + 
 +  - Atom 
 +  - GNS3 
 +  - Mozilla Firefox 
 +  - Mozilla Thunderbird 
 +  - Telegram 
 +  - VirtualBox
  
 ===== Configuration ===== ===== Configuration =====
Line 56: Line 85:
 ==== TLP ==== ==== TLP ====
  
 +  START_CHARGE_THRESH_BAT0=75
 +  STOP_CHARGE_THRESH_BAT0=80
 +  START_CHARGE_THRESH_BAT1=75
 +  STOP_CHARGE_THRESH_BAT1=80
 ===== Backup ===== ===== Backup =====
  
 
doc/x250.1502576379.txt.gz · Last modified: 2017/08/12 22:19 by stwn · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki