User Tools

Site Tools


disk

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
disk [2023/06/18 06:34] jhagstranddisk [2023/09/24 05:30] (current) – [Disk] jhagstrand
Line 10: Line 10:
  
   $ sudo fdisk -l # list partitions   $ sudo fdisk -l # list partitions
 +  
 +  $ sudo fdisk -l | sed -e '/Disk \/dev\/loop/,+5d'   # ignore Snap loop mounts
  
-  sudo fdisk -sed -e '/Disk \/dev\/loop/,+5d'   # ignore Ubuntu snap loop mounts+== df == 
 +  df -T  # disk filesystem format type 
 +   
 +  $ df -H grep -v ^/dev/loop   # ignore Snap loop mounts
  
-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. 
  
 +== 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. The Snap package system is proprietary to Canonical.
 It is deeply embedded into Canonical's Ubuntu and therefore should not be uninstalled from Ubuntu. 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/
  
- 
- 
-== df == 
-  $ df -T  # disk filesystem format type 
  
 == du == == du ==
disk.1687084449.txt.gz · Last modified: 2023/06/18 06:34 by jhagstrand

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