Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is this a thing? I'm running Slackware and mounting a disk is still done with good ol' `mount`, same as it ever was.


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


> # 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.


Cool! I didn't know about `lsblk`. Thanks!


I was probably being a bit snarky. I have run into cases where getting a drive to show up in the GUI (so, mounting as a user) needed something via dbus.


Ah. Well, I sympathize. When I first started using Linux, one thing I liked about it was the simplicity. Seems that simplicity has been getting eroded slowly but surely since I first started with it, but it has accelerated quite a bit in recent years.

Slackware feels like one of the last holdouts, along with the likes of CRUX and Gentoo, but I fear that soon I will be forced to switch to some BSD -- which I wouldn't mind if my laptop hardware were better supported (I've been running various BSDs on servers for years, but Linux just seems to work better on my laptop; that said, I downloaded the 11.0-RELEASE ISOs a few days ago and I'll give it a shot on the lappy).




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: