Registry / utility / libmount

libmount

JSON →
library0.1.15rscratesunverified

A type-safe wrapper around the mount system call for Linux.

# Cargo.toml [dependencies] libmount = "0.1.15"
INSTALL
IMPORT
SIG · LIBMOUNT
L
libmount
utilityrustv0.1.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mount
✓ use libmount::Mount;

Mount a filesystem using the Mount builder.

use libmount::Mount; fn main() -> std::io::Result<()> { let mount = Mount::new("/dev/sda1", "/mnt"); mount.mount()?; Ok(()) }
Debug
Known issues
gotchaRequires root privileges or appropriate capabilities to mount filesystems.
fix
Run the binary with sudo or ensure the process has CAP_SYS_ADMIN.
affects: >=0.1.0
Upgrade
Version history
0.1.15latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
libmount — cargo add libmount · libregistry