User Tools

Site Tools


disk

Differences

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

Link to this comparison view

Next revision
Previous revision
disk [2021/01/28 05:46] – created - external edit 127.0.0.1disk [2023/09/24 05:30] (current) – [Disk] jhagstrand
Line 6: Line 6:
  
 == fdisk == == fdisk ==
-Used to create partitions on a disk.+ 
 +Used to manage partitions on a disk.
  
   $ sudo fdisk -l # list partitions   $ sudo fdisk -l # list partitions
- +   
-Note: In addition to listing disks and partitions, fdisk also lists loop mounts. A loop mount looks like a disk but is in fact a file containing a file system, created by a snap package install.+  $ sudo fdisk -l | sed -e '/Disk \/dev\/loop/,+5d'   # ignore Snap loop mounts
  
 == df == == df ==
   $ df -T  # disk filesystem format type   $ df -T  # disk filesystem format type
 +  
 +  $ df -H | grep -v ^/dev/loop   # ignore Snap loop mounts
 +
 +
 +== Note on Snap Loop Mounts ==
 +In addition to listing disks and partitions, fdisk and df also list loop mounts. A loop mount looks like a disk but is in fact a file containing a file system, created by a Snap package install.
 +The Snap package system is proprietary to Canonical.
 +It is deeply embedded into Canonical's Ubuntu and therefore should not be uninstalled from Ubuntu.
 +But I uninstalled it anyway according to https://haydenjames.io/remove-snap-ubuntu-22-04-lts/
 +
  
 == du == == du ==
disk.1611830776.txt.gz · Last modified: 2021/01/28 05:46 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki