Warning: Undefined array key 1 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505

Warning: Undefined array key 2 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 557

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
{"id":2037,"date":"2019-03-30T17:04:35","date_gmt":"2019-03-30T17:04:35","guid":{"rendered":"http:\/\/www.yogindar.com\/news\/?p=2037"},"modified":"2019-03-30T17:04:35","modified_gmt":"2019-03-30T17:04:35","slug":"how-to-disable-disk-write-caching-in-ubuntu-to-prevent-data-loss-ubuntuhandbook","status":"publish","type":"post","link":"http:\/\/blog.yogindar.org\/?p=2037","title":{"rendered":"How to Disable Disk Write Caching in Ubuntu To Prevent Data Loss | UbuntuHandbook"},"content":{"rendered":"

Disk write cache is a feature provided by drive vendors to improve the performance of the disks.
\nThis feature can result in data loss if there are sudden power outages.
\nIt depends on the application to decide whether to enable disk write cache or not.
\nFor SATA SSD drives the following commands can be used to enable and disable write caching.<\/p>\n

To know write caching is enabled\/disabled
\nhdparm -W \/dev\/sda<\/p>\n

To enable write cache
\nhdparm -W 1 \/dev\/sda<\/p>\n

To disable write cache
\nhdparm -W 0 \/dev\/sda<\/p>\n

where, \/dev\/sda is example SATA SSD used.<\/p>\n

You can get the details of the drive susing lsscsi command.<\/p>\n

Source: How to Disable Disk Write Caching in Ubuntu To Prevent Data Loss | UbuntuHandbook<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"

Disk write cache is a feature provided by drive vendors to improve the performance of the disks. This feature can result in data loss if there are sudden power outages. It depends on the application to decide whether to enable disk write cache or not. For SATA SSD drives the following commands can be used […]<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[1506,1507,1505,1504,1495,1508],"class_list":["post-2037","post","type-post","status-publish","format-standard","hentry","category-tips","tag-disk","tag-drive","tag-hdparm","tag-sata-ssd","tag-storage","tag-write-cache"],"_links":{"self":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2037"}],"version-history":[{"count":1,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2037\/revisions"}],"predecessor-version":[{"id":2038,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2037\/revisions\/2038"}],"wp:attachment":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2037"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}