Published multiple files
All checks were successful
Build and Deploy Quartz / build (push) Successful in 26s
All checks were successful
Build and Deploy Quartz / build (push) Successful in 26s
This commit is contained in:
101
content/10-19 LIFE/13 TECH SETUP/13.13 OS SETUP/Disks.md
Normal file
101
content/10-19 LIFE/13 TECH SETUP/13.13 OS SETUP/Disks.md
Normal file
@@ -0,0 +1,101 @@
|
||||
---
|
||||
publish: true
|
||||
permalink: /10-19 LIFE/13 TECH SETUP/13.13 OS SETUP/Disks.md
|
||||
title: Disks
|
||||
created: 2026-01-29T21:46:53.106-07:00
|
||||
modified: 2026-02-05T09:21:21.430-07:00
|
||||
tags:
|
||||
- disks
|
||||
- automount
|
||||
- usb
|
||||
cssclasses: ""
|
||||
---
|
||||
|
||||
Automounting removable drives with udiskie.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
sudo pacman -S udiskie udisks2
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Start udiskie
|
||||
|
||||
Run in background (auto-mounts drives):
|
||||
```bash
|
||||
udiskie &
|
||||
```
|
||||
|
||||
With tray icon:
|
||||
```bash
|
||||
udiskie --tray &
|
||||
```
|
||||
|
||||
### Hyprland Integration
|
||||
|
||||
Add to `~/.config/hypr/hyprland.conf`:
|
||||
```bash
|
||||
exec-once = udiskie --tray
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
Config location: `~/.config/udiskie/config.yml`
|
||||
|
||||
```yaml
|
||||
program_options:
|
||||
tray: true
|
||||
notify: true
|
||||
automount: true
|
||||
|
||||
device_config:
|
||||
- device_file: /dev/sda1
|
||||
options:
|
||||
- noexec
|
||||
```
|
||||
|
||||
## Manual Control
|
||||
|
||||
```bash
|
||||
# Mount
|
||||
udisksctl mount -b /dev/sdb1
|
||||
|
||||
# Unmount
|
||||
udisksctl unmount -b /dev/sdb1
|
||||
|
||||
# Power off (safely eject)
|
||||
udisksctl power-off -b /dev/sdb
|
||||
|
||||
# List drives
|
||||
lsblk
|
||||
```
|
||||
|
||||
## Encrypted Drives
|
||||
|
||||
udiskie handles LUKS-encrypted drives automatically — prompts for password when detected.
|
||||
|
||||
For command line:
|
||||
```bash
|
||||
# Unlock
|
||||
udisksctl unlock -b /dev/sdb1
|
||||
|
||||
# Then mount
|
||||
udisksctl mount -b /dev/dm-0
|
||||
```
|
||||
|
||||
## Mount Points
|
||||
|
||||
By default, drives mount to `/run/media/$USER/<label>`
|
||||
|
||||
## Tips
|
||||
|
||||
- Use `--no-automount` if you prefer manual mounting
|
||||
- Notifications require a notification daemon (e.g., [[10-19 LIFE/13 TECH SETUP/13.13 OS SETUP/Mako]])
|
||||
- For NTFS support: `sudo pacman -S ntfs-3g`
|
||||
|
||||
## Resources
|
||||
|
||||
- GitHub: https://github.com/coldfix/udiskie
|
||||
- Arch Wiki: https://wiki.archlinux.org/title/Udisks
|
||||
Reference in New Issue
Block a user