3 ms·
I've been in the linux world for less than a decade, and I miss 'mount' being useful. It's full of spam now - so I've started using 'lsblk' instead... $ mo
by vacri 10y ago
I've been in the linux world for less than a decade, and I miss 'mount' being useful. It's full of spam now - so I've started using 'lsblk' instead...
$ mount | wc -l
32
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 698.7G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 690.3G 0 part /
└─sda3 8:3 0 7.9G 0 part [SWAP] # this was a mistake...
sr0 11:0 1 1024M 0 rom
- twr 10y ago> # this was a mistake... That's not an unfixable mistake: sda3 is at the end of the partition table, so if it's deleted, sda2 can be safely resized offline. For example, parted /dev/sda rm 3 parted /dev/sda "resizepart 2 -0" resize2fs /dev/sda2 # for ext2/3/4 And then you can create a swap file or volume on sda2, so long as it isn't on btrfs.
- groovy2shoes 10y agoCool! I didn't know about `lsblk`. Thanks!