{"id":79085,"date":"2026-11-17T01:55:06","date_gmt":"2026-11-17T01:55:06","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=79085"},"modified":"2026-11-17T01:55:06","modified_gmt":"2026-11-17T01:55:06","slug":"linux-intermediate-09-mounts","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=79085","title":{"rendered":"Linux Intermediate 09 \u2014 Block Devices, Filesystems, and Mounts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/bangla.sitestree.com\/?name=linux-course-index\">Linux course index<\/a> \u00b7 <a href=\"https:\/\/bangla.sitestree.com\/?cat=1991\">Linux Intermediate category<\/a> \u00b7 Lesson 9 of 9<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>AI disclosure<\/strong> \u2014 AI-generated content, posted as is. AI can make mistakes. This lesson draws on the linked Open Education posts and adds original explanations or lab examples where useful. The newly written explanations and examples may be freely reused. Linked source material retains its own terms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Learning goal<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Distinguish a block device from a filesystem and a mount point, and inspect each layer without changing it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Concepts and setup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A disk or virtual block device supplies storage. A partition is a region of a device. A filesystem organizes data, and a mount point attaches the filesystem to the directory tree. A mount can hide what was already in that directory. df reports capacity of mounted filesystems. du walks files and adds up their usage, so deleted-but-open files, mounts, permissions, and allocation details can drive differences.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The site&#8217;s cloud volume example uses named devices. Do not reuse an old example\u2019s device name. Device paths can change across machines and boots. For persistent mounts, inspect UUIDs and plan an \/etc\/fstab backup. Do not format or repair anything in this read-only lab.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Inspect the filesystem containing your home directory<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>lsblk -o NAME,TYPE,SIZE,FSTYPE,MOUNTPOINTS\nfindmnt -T &quot;$HOME&quot; -o SOURCE,TARGET,FSTYPE\ndf -h &quot;$HOME&quot;\nlsblk -f<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Possible output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME   TYPE  SIZE FSTYPE MOUNTPOINTS\nvda    disk   30G\n\u2514\u2500vda1 part   30G ext4   \/\nSOURCE    TARGET FSTYPE\n\/dev\/vda1 \/      ext4\nFilesystem      Size Used Avail Use% Mounted on\n\/dev\/vda1        30G 5.0G   23G  18% \/\n...<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Actual layouts can be layered with LVM, encryption, or a separate \/home. Use lsblk and findmnt together to interpret the layout. In a VM, match the disk identity and size to the hypervisor&#8217;s inventory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Compare directory usage to filesystem capacity<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>lab=$(mktemp -d)\nprintf 'Linux storage lab\\n' &gt; &quot;$lab\/example.txt&quot;\ndu -sh &quot;$lab&quot;\ndf -h &quot;$lab&quot;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Possible output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>8.0K    \/tmp\/tmp.ABC\nFilesystem      Size Used Avail Use% Mounted on\n\/dev\/vda1        30G 5.0G   23G  18% \/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The temporary directory might live on tmpfs or a different device. du -sh and df -h measure different things.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Questions only<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Quick-check questions<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Does creating a partition also mount a filesystem?<\/li>\n\n\n<li>Is the source printed by findmnt always a physical disk?<\/li>\n\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Assessment questions<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Which command associates an arbitrary path with its active mount?<\/li>\n\n\n<li>Which two observations would help diagnose a filled \/var?<\/li>\n\n\n<li>Why verify fstab before leaving an administration session?<\/li>\n\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Questions and answers<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Quick-check answers<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li><strong>Does creating a partition also mount a filesystem?<\/strong><br><strong>Answer<\/strong> \u2014 No. A filesystem must exist and be attached to the directory tree separately.<\/li>\n\n\n<li><strong>Is the source printed by findmnt always a physical disk?<\/strong><br><strong>Answer<\/strong> \u2014 No. It may be a logical volume, network filesystem, tmpfs, or another type.<\/li>\n\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Assessment answer key<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li><strong>Which command associates an arbitrary path with its active mount?<\/strong><br><strong>Answer<\/strong> \u2014 findmnt -T \/path\/to\/check.<\/li>\n\n\n<li><strong>Which two observations would help diagnose a filled \/var?<\/strong><br><strong>Answer<\/strong> \u2014 Use df -h \/var to identify the filled filesystem, then locate large visible directories with an appropriately scoped du or inspect for deleted-but-open files.<\/li>\n\n\n<li><strong>Why verify fstab before leaving an administration session?<\/strong><br><strong>Answer<\/strong> \u2014 A mistaken persistent mount can fail at boot or delay startup even if the current session is unaffected.<\/li>\n\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Source articles on this site<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=78691\">Q &amp; A:  Linux: Switch Users, Boot Process, File System<\/a><\/li>\n\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=14038\">On File Systems and Linux Commands (Redhat\/CentOs\/Fedora)<\/a><\/li>\n\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=23317\">Mount EBS Volumes using Ubuntu Command: AWS stuff #Root #By Sayed Ahmed<\/a><\/li>\n\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=76443\">Linux: Disk Space, Memory Space, Running Processes<\/a><\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Continue the course<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Previous lesson 08 \u2014 SSH Keys, Host Identity, and File Transfer. This is the last lesson in this level. See the course index for the next level.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/bangla.sitestree.com\/?name=linux-course-index\">Linux course index<\/a> \u00b7 <a href=\"https:\/\/bangla.sitestree.com\/?cat=1991\">Linux Intermediate category<\/a> \u00b7 Lesson 9 of 9<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Distinguish a block device from a filesystem and a mount point, and inspect each layer without changing it.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1991],"tags":[],"class_list":["post-79085","post","type-post","status-publish","format-standard","hentry","category-linux-intermediate","item-wrap"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":79086,"url":"http:\/\/bangla.sitestree.com\/?p=79086","url_meta":{"origin":79085,"position":0},"title":"Linux Advanced 01 \u2014 LVM and Controlled Filesystem Growth","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Create and expand an isolated LVM stack without touching the system disk.","rel":"","context":"In &quot;Linux Advanced&quot;","block_context":{"text":"Linux Advanced","link":"http:\/\/bangla.sitestree.com\/?cat=1992"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79102,"url":"http:\/\/bangla.sitestree.com\/?p=79102","url_meta":{"origin":79085,"position":1},"title":"Linux Administration Course \u2014 Start Here and Lesson Index","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"A 33-lesson Linux course from shell fundamentals to server administration, performance, and a recovery capstone.","rel":"","context":"In &quot;Linux Basics&quot;","block_context":{"text":"Linux Basics","link":"http:\/\/bangla.sitestree.com\/?cat=1990"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79087,"url":"http:\/\/bangla.sitestree.com\/?p=79087","url_meta":{"origin":79085,"position":2},"title":"Linux Advanced 02 \u2014 NFS and On-Demand Mounting with AutoFS","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Create an indirect AutoFS map and distinguish a running automounter from a successful NFS mount.","rel":"","context":"In &quot;Linux Advanced&quot;","block_context":{"text":"Linux Advanced","link":"http:\/\/bangla.sitestree.com\/?cat=1992"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79098,"url":"http:\/\/bangla.sitestree.com\/?p=79098","url_meta":{"origin":79085,"position":3},"title":"Linux Advanced 2 04 \u2014 Performance Triage with vmstat and PSI","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Use related signals to decide whether to investigate CPU, memory, disk I\/O, or an application bottleneck.","rel":"","context":"In &quot;Linux Advanced 2&quot;","block_context":{"text":"Linux Advanced 2","link":"http:\/\/bangla.sitestree.com\/?cat=1993"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79099,"url":"http:\/\/bangla.sitestree.com\/?p=79099","url_meta":{"origin":79085,"position":4},"title":"Linux Advanced 2 05 \u2014 Kernel Modules and Resource Limits","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Read kernel module information and identify the current process\u2019s resource-control group without changing the kernel.","rel":"","context":"In &quot;Linux Advanced 2&quot;","block_context":{"text":"Linux Advanced 2","link":"http:\/\/bangla.sitestree.com\/?cat=1993"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79084,"url":"http:\/\/bangla.sitestree.com\/?p=79084","url_meta":{"origin":79085,"position":5},"title":"Linux Intermediate 08 \u2014 SSH Keys, Host Identity, and File Transfer","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Verify an SSH host\u2019s identity, use a passphrase-protected key, and transfer a non-sensitive file.","rel":"","context":"In &quot;Linux Intermediate&quot;","block_context":{"text":"Linux Intermediate","link":"http:\/\/bangla.sitestree.com\/?cat=1991"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/79085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79085"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/79085\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79085"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}