{"id":2517,"date":"2024-08-23T10:17:52","date_gmt":"2024-08-23T10:17:52","guid":{"rendered":"https:\/\/www.andreaswacker.com\/blog\/?p=2517"},"modified":"2024-08-23T10:19:18","modified_gmt":"2024-08-23T10:19:18","slug":"when-the-internet-leads-you-astray-trust-the-source","status":"publish","type":"post","link":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/","title":{"rendered":"When the Internet Leads You Astray \u2013 Trust the Source"},"content":{"rendered":"\n<p><strong>Putting a USB SSD on My Ubuntu Machine: A Journey Through Confusion<\/strong><\/p>\n\n\n\n<p>Recently, I decided to add a USB SSD to my Ubuntu machine. Pretty straightforward task, right? So, I set it up, partitioned it, and formatted it with an ext4 filesystem. Then came the question: <strong>What happens if the drive isn\u2019t connected when I boot my system?<\/strong><\/p>\n\n\n\n<p>Since it\u2019s an external drive and not critical to my system\u2019s operation, I didn\u2019t want my machine to throw a fit if the SSD wasn\u2019t present at boot time. So naturally, I turned to GPT-4 for advice.<\/p>\n\n\n\n<p><strong>GPT-4\u2019s Advice: The \u201cnofail\u201d Option<\/strong><\/p>\n\n\n\n<p>GPT-4 responded quickly and gave me a clear suggestion: use the nofail option in the \/etc\/fstab file. This would ensure that the system attempts to mount the USB drive if present but continues to boot even if the drive is not connected.<\/p>\n\n\n\n<p>That made sense, and GPT-4 also reassured me that using this option for non-critical filesystems is common practice. But something bugged me. <strong>\u201cnofail\u201d<\/strong> sounded counterintuitive\u2014shouldn\u2019t this be used for important, \u201cmust mount\u201d filesystems? So I turned to my trusty search engine to verify what exactly \u201cdefaults,nofail\u201d meant.<\/p>\n\n\n\n<p><strong>The Internet Confusion Begins<\/strong><\/p>\n\n\n\n<p>I did a quick search using Kagi (or Google\u2014take your pick, I got the same results). On the <strong>first page<\/strong>, I came across this page from Rackspace\u2019s docs: <a href=\"https:\/\/docs.rackspace.com\/docs\/linux-nobootwait-nofail\">Rackspace Docs on Linux &#8211; Nobootwait and Nofail<\/a>.<\/p>\n\n\n\n<p>It flat-out stated the opposite of what GPT-4 had told me! It described nofail as an option for critical filesystems, implying that the system <em>would wait<\/em> until the drive was mounted. This seemed strange since I wanted the system to boot even when the drive wasn\u2019t there. This increased my doubts, so I dug deeper.<\/p>\n\n\n\n<p><strong>Deeper Dive \u2013 The Web Only Adds to the Confusion<\/strong><\/p>\n\n\n\n<p>I kept browsing, checking multiple sources. Each page seemed to explain nofail slightly differently. Some agreed with Rackspace, others said the opposite. At this point, I was more confused than when I started. <strong>How could such a basic option be so misunderstood on the web?<\/strong><\/p>\n\n\n\n<p><strong>The Answer Was in the Man Pages All Along<\/strong><\/p>\n\n\n\n<p>Frustrated, I decided to check the <strong>man pages<\/strong>\u2014the original source of truth for Linux users. Sure enough, GPT-4 was right. The nofail option is specifically there to ensure that the boot process does not stop or fail if the specified filesystem is not present. Perfect for my use case, as I wanted the system to keep booting even if the USB SSD was missing.<\/p>\n\n\n\n<p><strong>Conclusion: Crazy World We\u2019re Living In<\/strong><\/p>\n\n\n\n<p>So here we are, in a world where search engines and online documentation can sometimes steer you in the wrong direction, while an AI (GPT-4) was spot on from the beginning. It\u2019s crazy how something as fundamental as mounting a drive can be so muddled online.<\/p>\n\n\n\n<p>I\u2019ve learned two things from this: first, always double-check your sources\u2014especially with something as complex as Linux configuration. And second, never underestimate the value of consulting the <strong>man pages<\/strong>. In this crazy, confused world of information overload, sometimes the simplest and most direct solution is the right one.<\/p>\n\n\n\n<p>Oh, and yeah, nofail is exactly what you need for external drives that you don\u2019t want to hold up your boot process. Crazy name? Maybe. But it does the job.<\/p>\n\n\n\n<p>And, yes, this was written by gpt4o as well, based on the cryptic text<br><br><\/p>\n\n\n\n<p>Intersting.&nbsp;<\/p>\n\n\n\n<p>putting USB SSD on ubuntu machine.&nbsp;<\/p>\n\n\n\n<p>Asking gpt4o what to do. Works.&nbsp;<\/p>\n\n\n\n<p>worried about this being external drive that boot would not stop when it is not there. So I ask, and it says should be fine, but to use &#8220;nofail&#8221; to be sure.&nbsp;<\/p>\n\n\n\n<p>I think: weird naming for option in open source.&nbsp;<\/p>\n\n\n\n<p>Use Kagi (or google, the same result) to look for &#8220;defaults,nofail meaning&#8221;<\/p>\n\n\n\n<p>FIRST page&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/docs.rackspace.com\/docs\/linux-nobootwait-nofail\n<\/div><\/figure>\n\n\n\n<p>says opposite of gpt4.&nbsp;<\/p>\n\n\n\n<p>I look further on the net. Confusion. Finally I look at the man page,&nbsp;<\/p>\n\n\n\n<p>gpt4o was right. The Internet as seen via search is plain wrong.&nbsp;<\/p>\n\n\n\n<p>Crazy world we are living in<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Putting a USB SSD on My Ubuntu Machine: A Journey Through Confusion Recently, I decided to add a USB SSD to my Ubuntu machine. Pretty straightforward task, right? So, I set it up, partitioned it, and formatted it with an ext4 filesystem. Then came the question: What happens if the drive isn\u2019t connected when I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,15,12,41],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>When the Internet Leads You Astray \u2013 Trust the Source - Andreas Wacker<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"When the Internet Leads You Astray \u2013 Trust the Source - Andreas Wacker\" \/>\n<meta property=\"og:description\" content=\"Putting a USB SSD on My Ubuntu Machine: A Journey Through Confusion Recently, I decided to add a USB SSD to my Ubuntu machine. Pretty straightforward task, right? So, I set it up, partitioned it, and formatted it with an ext4 filesystem. Then came the question: What happens if the drive isn\u2019t connected when I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/\" \/>\n<meta property=\"og:site_name\" content=\"Andreas Wacker\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-23T10:17:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-23T10:19:18+00:00\" \/>\n<meta name=\"author\" content=\"Andreas Wacker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@_andreaswacker\" \/>\n<meta name=\"twitter:site\" content=\"@_andreaswacker\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andreas Wacker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/\"},\"author\":{\"name\":\"Andreas Wacker\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\"},\"headline\":\"When the Internet Leads You Astray \u2013 Trust the Source\",\"datePublished\":\"2024-08-23T10:17:52+00:00\",\"dateModified\":\"2024-08-23T10:19:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/\"},\"wordCount\":706,\"publisher\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\"},\"articleSection\":[\"AI\",\"internet\",\"linux\",\"unix\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/\",\"url\":\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/\",\"name\":\"When the Internet Leads You Astray \u2013 Trust the Source - Andreas Wacker\",\"isPartOf\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#website\"},\"datePublished\":\"2024-08-23T10:17:52+00:00\",\"dateModified\":\"2024-08-23T10:19:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.andreaswacker.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"When the Internet Leads You Astray \u2013 Trust the Source\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#website\",\"url\":\"https:\/\/www.andreaswacker.com\/blog\/\",\"name\":\"Andreas Wacker\",\"description\":\"weblog\",\"publisher\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.andreaswacker.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\",\"name\":\"Andreas Wacker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png\",\"contentUrl\":\"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png\",\"width\":248,\"height\":248,\"caption\":\"Andreas Wacker\"},\"logo\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.andreaswacker.com\",\"https:\/\/www.instagram.com\/_andreaswacker\/\",\"https:\/\/x.com\/_andreaswacker\",\"https:\/\/www.youtube.com\/channel\/UCWwFtVC_HATVr-R5EiNmhHw\"],\"url\":\"https:\/\/www.andreaswacker.com\/blog\/author\/admin2\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"When the Internet Leads You Astray \u2013 Trust the Source - Andreas Wacker","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/","og_locale":"en_US","og_type":"article","og_title":"When the Internet Leads You Astray \u2013 Trust the Source - Andreas Wacker","og_description":"Putting a USB SSD on My Ubuntu Machine: A Journey Through Confusion Recently, I decided to add a USB SSD to my Ubuntu machine. Pretty straightforward task, right? So, I set it up, partitioned it, and formatted it with an ext4 filesystem. Then came the question: What happens if the drive isn\u2019t connected when I [&hellip;]","og_url":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/","og_site_name":"Andreas Wacker","article_published_time":"2024-08-23T10:17:52+00:00","article_modified_time":"2024-08-23T10:19:18+00:00","author":"Andreas Wacker","twitter_card":"summary_large_image","twitter_creator":"@_andreaswacker","twitter_site":"@_andreaswacker","twitter_misc":{"Written by":"Andreas Wacker","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/#article","isPartOf":{"@id":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/"},"author":{"name":"Andreas Wacker","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a"},"headline":"When the Internet Leads You Astray \u2013 Trust the Source","datePublished":"2024-08-23T10:17:52+00:00","dateModified":"2024-08-23T10:19:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/"},"wordCount":706,"publisher":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a"},"articleSection":["AI","internet","linux","unix"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/","url":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/","name":"When the Internet Leads You Astray \u2013 Trust the Source - Andreas Wacker","isPartOf":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#website"},"datePublished":"2024-08-23T10:17:52+00:00","dateModified":"2024-08-23T10:19:18+00:00","breadcrumb":{"@id":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.andreaswacker.com\/blog\/2024\/08\/23\/when-the-internet-leads-you-astray-trust-the-source\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.andreaswacker.com\/blog\/"},{"@type":"ListItem","position":2,"name":"When the Internet Leads You Astray \u2013 Trust the Source"}]},{"@type":"WebSite","@id":"https:\/\/www.andreaswacker.com\/blog\/#website","url":"https:\/\/www.andreaswacker.com\/blog\/","name":"Andreas Wacker","description":"weblog","publisher":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.andreaswacker.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a","name":"Andreas Wacker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png","contentUrl":"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png","width":248,"height":248,"caption":"Andreas Wacker"},"logo":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.andreaswacker.com","https:\/\/www.instagram.com\/_andreaswacker\/","https:\/\/x.com\/_andreaswacker","https:\/\/www.youtube.com\/channel\/UCWwFtVC_HATVr-R5EiNmhHw"],"url":"https:\/\/www.andreaswacker.com\/blog\/author\/admin2\/"}]}},"_links":{"self":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts\/2517"}],"collection":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/comments?post=2517"}],"version-history":[{"count":1,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts\/2517\/revisions"}],"predecessor-version":[{"id":2518,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts\/2517\/revisions\/2518"}],"wp:attachment":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/media?parent=2517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/categories?post=2517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/tags?post=2517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}