samba: how to control share name

  • I re-located my large media drive to connect to LE via USB, and it's working great sharing files.

    If I attach another drive and reboot, what was originally:

    Code
    /var/media/sda1-ata-WDC_WD60EDAZ-11U

    became

    Code
    /var/media/sdb1-ata-WDC_WD60EDAZ-11U

    which screwed up everything. It may have clobbered media library paths after scanning the source. I know how to generally use UUID in fstab, but I don't see any /etc/fstab to configure.

    How could I make LE use a UUID for drives?

    Also, is there a way to alias it so that setting up client access to these drives doesn't require typing an UUID? eg: smb://foo-computer/5Twd

  • If you label the partiton that it being mounted udevil will mount it as /var/media/<label>

    How you label depends on the filesystem type, e.g. ext4 partitions are done using e2label.