Crate auto_mount

Source
Expand description

§auto_mount

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

§example

    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);

Functions§

change_devices_to_gpt
changed to gpt to support devices larger than 4TB
create_partition
one device one partition
filter_unmounted_hdd_devices
find unmounted hdd devices
find_connected_satas
find connected satas
format_devices
mount_devices