https://github.com/flier/mounted
Get information about the mounted file systems
https://github.com/flier/mounted
Last synced: 10 months ago
JSON representation
Get information about the mounted file systems
- Host: GitHub
- URL: https://github.com/flier/mounted
- Owner: flier
- License: apache-2.0
- Created: 2016-10-08T16:21:32.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-17T18:33:38.000Z (almost 10 years ago)
- Last Synced: 2025-03-15T07:12:09.712Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overview
Get information about the mounted file systems.
# Features
- [x] list the mounted file system
- [x] support Linux
- [x] support MacOS/BSD
- [x] support Windows
- [x] command line tools (fstab)
# Install
```bash
$ go get github.com/flier/mounted
```
# Usage
```go
fstab, err := mounted.FileSystems()
if err != nil {
fmt.Printf("fail to get mounted file systems, %s", err)
os.Exit(-1)
}
for _, fs := range fstab {
fmt.Printf("%s\n", fs)
}
```
# Tools
```bash
$ go get github.com/flier/mounted/cmd/fstab
$ fstab
...
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
...
```