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

changed to gpt to support devices larger than 4TB

one device one partition

find unmounted hdd devices

find connected satas