Results 1 to 8 of 8

Thread: Can I automount external drive to /media/{x} instead of /media/[user]/{drivelabel}

  1. #1
    Join Date
    Jul 2009
    Beans
    9

    Can I automount external drive to /media/{x} instead of /media/[user]/{drivelabel}

    When I plug in an external drive it automounts to/media/jfb3/{DriveLabel}.

    I created a directory in /media/TowerOfFiles

    I created an entry in fstab:
    UUID={uuid} /media/TowerOfFiles


    No joy.

    I don't want to turn off automounting of all external media, just for this drive.

    What do I need to do?

    OS version: 13.04
    Last edited by jfb3; June 12th, 2013 at 11:17 PM.

  2. #2
    Join Date
    Jul 2005
    Beans
    2,050

    Re: Can I automount external drive to /media/{x} instead of /media/[user]/{drivelabel

    ~
    Last edited by ahallubuntu; June 24th, 2013 at 02:13 AM.

  3. #3
    Join Date
    Jul 2009
    Beans
    9

    Re: Can I automount external drive to /media/{x} instead of /media/[user]/{drivelabel

    I did make the directory first (that's why I listed that step first).

    So, I changed the mount point to be under /mnt (because why not).

    Either fstab entry:
    Code:
    UUID=AA70755970742D67     /mnt/TowerOfFiles     ntfs
    Code:
    UUID=AA70755970742D67     /mnt/TowerOfFiles     ntfs-3g
    Still no joy.
    Produced the same result.
    It still gets mounted at /media/jfb3/TowerOfFiles.

  4. #4
    Join Date
    Dec 2009
    Beans
    5,387

    Re: Can I automount external drive to /media/{x} instead of /media/[user]/{drivelabel

    Install bindfs:
    Code:
    sudo apt-get install bindfs
    Create a new directory:
    Code:
    sudo mkdir /Disks
    The line in fstab would look like this:
    Code:
    bindfs#/media/jfb3 /Disks fuse mirror=jfb3 0 0
    Then run:
    Code:
    sudo mount /Disks
    Or reboot

    When you plug in a USB device it will mount to the original mount point and to /Disks/LABEL

    BTW: You are never ending the sentence you are creating in fstab. You have nouns but no verbs. This:
    UUID=AA70755970742D67 /mnt/TowerOfFiles ntfs
    Should at least be this:
    UUID=AA70755970742D67 /mnt/TowerOfFiles ntfs defaults 0 0
    Last edited by Morbius1; June 12th, 2013 at 01:27 PM.

  5. #5
    Join Date
    Jul 2009
    Beans
    9

    Re: Can I automount external drive to /media/{x} instead of /media/[user]/{drivelabel

    Your "solution" is all well and good.
    But it doesn't solve my problem.


    But the question remains:
    Why can't I get a disk to mount where I want it and not under some random levels of directories and some random username?
    Why does the drive not get mounted where I want?
    It also won't mount unless I'm logged in as this user. That's unacceptable.
    Should I go ahead and report this bug?

  6. #6
    Join Date
    Jul 2005
    Beans
    2,050

    Re: Can I automount external drive to /media/{x} instead of /media/[user]/{drivelabel

    ~
    Last edited by ahallubuntu; June 24th, 2013 at 01:55 AM.

  7. #7
    Join Date
    Dec 2009
    Beans
    5,387

    Re: Can I automount external drive to /media/{x} instead of /media/[user]/{drivelabel

    I have had some heated arguments over my approach to a problem before but I never had my "solution" put in quotes before.

    Why can't I get a disk to mount where I want it and not under some random levels of directories and some random username?
    You can and the default method is not random. For an external device it will mount to /media/$USER/LABEL where $USER is the person who inserted the device.
    It also won't mount unless I'm logged in as this user. That's unacceptable.
    If you truly mean "mount" your assignment for the day is to investigate what the group "plugdev" does.
    Should I go ahead and report this bug?
    Funny thing about a development group - a bug is defined as something that happens outside of the design parameters. A user might consider something a bug if it doesn't do what he wants it to do. Under that definition I consider Unity a bug. But to the developers it's doing exactly what they were told to build so it ain't no bug.

  8. #8
    Join Date
    Jul 2009
    Beans
    9

    Re: Can I automount external drive to /media/{x} instead of /media/[user]/{drivelabel

    I can (and did) disable automounting (I knew how to do that).
    But that means that nothing is ever mounted automatically (not what I wanted).

    Yeah I know that I didn't show the entire fstab entry for mounting that drive (it's too much typing on another computer).

    Working, but not happily resolved.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •