The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 166β€…    Votes:  2β€…    βœ… Solution
Tags: 18.04   fdisk  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1079566
Title: summary and restricted output from fdisk in ubuntu bionic beaver
ID: /2018/09/29/summary-and-restricted-output-from-fdisk-in-ubuntu-bionic-beaver
Created: September 29, 2018    Edited:  September 29, 2018
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


I use lsdrv (list drive) which is an alias of lsblk ... setup in my ~/.bashrc file.

$ lsdrv
NAME         FSTYPE LABEL            MOUNTPOINT   SIZE MODEL
sr0                                              1024M DVD+/-RW DW316  
sda                                             931.5G HGST HTS721010A9
β”œβ”€sda4       ntfs   WINRETOOLS                    450M 
β”œβ”€sda2                                            128M 
β”œβ”€sda5       ntfs   Image                        11.4G 
β”œβ”€sda3       ntfs   HGST_Win10       /mnt/d       919G 
└─sda1       vfat   ESP                           500M 
nvme0n1                                           477G Samsung SSD 960 PRO 512GB            
β”œβ”€nvme0n1p5  ntfs                                 858M 
β”œβ”€nvme0n1p3                                        16M 
β”œβ”€nvme0n1p1  ntfs                                 450M 
β”œβ”€nvme0n1p8  ntfs   Shared_WSL+Linux /mnt/e         9G 
β”œβ”€nvme0n1p6  ext4   New_Ubuntu_16.04 /           23.7G 
β”œβ”€nvme0n1p4  ntfs   NVMe_Win10       /mnt/c     363.2G 
β”œβ”€nvme0n1p10 ext4   Ubuntu_18.04     /mnt/clone  27.2G 
β”œβ”€nvme0n1p2  vfat                    /boot/efi     99M 
β”œβ”€nvme0n1p9  swap                    [SWAP]       7.9G 
└─nvme0n1p7  ext4   Old_Ubuntu_16.04 /mnt/old    44.6G 

The alias selects the important fields I want to see that fit on a regular screen without line wrapping:

$ alias lsdrv
alias lsdrv='lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,MODEL | grep -v loop'
⇧ Could not find valid key in user session keyring for sig specified in mount option after upgrade from 16.04 to 18.04 Does my system clock automatically sync to the hardware clock?  β‡©