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'