Skip to content

ski0090/auto_mount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto_mount

auto_mount has a function that automatically mounts a newly inserted device as a gpt partition.

Important Caution

All hdds in /dev/sd* will be formatted.

example

use auto_mount::{
    change_devices_to_gpt, create_partition, filter_unmounted_hdd_devices, find_connected_satas,
    format_devices, mount_devices,
};

fn main() {
    let devices = find_connected_satas();
    let devices = filter_unmounted_hdd_devices(devices);
    change_devices_to_gpt(&devices);
    let devices = create_partition(&devices);
    format_devices(&devices);
    mount_devices(&devices);
}

Thanks for read

Please register improvements, etc. in the issue

gool luck!

About

auto_mount has a function that automatically mounts a newly inserted device as a gpt partition.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages