Commands for drive actions #23

Closed
opened 2025-06-07 08:51:07 +00:00 by Ponali · 1 comment
Ponali commented 2025-06-07 08:51:07 +00:00 (Migrated from github.com)

Various commands that allow for editing external drives (hard disks, floppies...) like such:

  • label: Getting and setting a drive label.
  • lsdrv (alias lsblk): List all detected drives in a table, like so:
    TYPE     SIZE ID                                   MOUNT
    
    HDD    4.09MB 7d7e6394-2bd2-4c6d-8a5a-19a438732e46 /
    Floppy  512KB e569face-eb47-42ce-ab00-68ee6c9afc1c /mnt/e56
    
    The table columns could be edited with an -o or --output flag, where for example lsblk -o type,mount will only show the drive type and mountpoint.
    The -s or --show flag would only make some elements show up according to their type (hdd,floppy...)
    • lshdd would be an alias of lsdrv -o size,id,mount -s hdd
    • lsflop would be an alias of lsdrv -o size,id,mount -s flop
  • maindrv: Returns the main drive ID where Halyde is installed.
Various commands that allow for editing external drives (hard disks, floppies...) like such: - `label`: Getting and setting a drive label. - `lsdrv` (alias `lsblk`): List all detected drives in a table, like so: ``` TYPE SIZE ID MOUNT HDD 4.09MB 7d7e6394-2bd2-4c6d-8a5a-19a438732e46 / Floppy 512KB e569face-eb47-42ce-ab00-68ee6c9afc1c /mnt/e56 ``` The table columns could be edited with an `-o` or `--output` flag, where for example `lsblk -o type,mount` will only show the drive type and mountpoint. The `-s` or `--show` flag would only make some elements show up according to their type (`hdd`,`floppy`...) - `lshdd` would be an alias of `lsdrv -o size,id,mount -s hdd` - `lsflop` would be an alias of `lsdrv -o size,id,mount -s flop` - `maindrv`: Returns the main drive ID where Halyde is installed.
Ponali commented 2025-07-15 15:30:10 +00:00 (Migrated from github.com)

Added in c6aa57983a.

Added in c6aa57983ad62b12dd8fae5bac9119478e18af11.
Sign in to join this conversation.