Results 1 to 5 of 5

Thread: Automount external HD

  1. #1
    Join Date
    Nov 2006
    Beans
    639

    Automount external HD

    I have an external HD that has 2 partitions(ntfs), External1 & External2

    I can mount them as root (sudo) only from the command line.

    I would like both /media/External1 & /media/External2 to automount when I turn the external HD on.

    When I try to unmount either form the right click context menu, I get a warning that I can't unmount, that I don't have priviledges. Of course, I would like to be able to unmount from the right click context menu, not the command line.

    Any ideas?

    Here is my fstab...

    # /etc/fstab: static file system information.
    #
    # -- This file has been automaticly generated by ntfs-config --
    #
    # <file system> <mount point> <type> <options> <dump> <pass>

    proc /proc proc defaults 0 0
    # Entry for /dev/hda3 :
    UUID=b3f86e43-239d-485d-9f72-735bfa55cec2 / ext3 defaults,errors=remount-ro 0 1
    # Entry for /dev/hda1 :
    UUID=0000649A00001B58 /media/hda1 ntfs-3g defaults,locale=en_US.UTF-8 0 1
    # Entry for /dev/hda4 :
    UUID=4633-DE83 /media/hda4 vfat defaults,utf8,umask=007,gid=46 0 1
    # Entry for /dev/hda2 :
    UUID=ad10c4c1-f699-493d-aa8f-09faef6f26bc none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,auto,exec 0 0
    /dev/sda5 /media/External1 ntfs-3g defaults 0 0
    /dev/sda6 /media/External2 ntfs-3g defaults 0 0

  2. #2
    Join Date
    Nov 2006
    Beans
    639

    Re: Automount external HD

    bump

  3. #3
    Join Date
    Nov 2006
    Beans
    639

    Re: Automount external HD

    bump x2

  4. #4
    Join Date
    Nov 2006
    Beans
    639

    Re: Automount external HD

    Solved!

    Added...

    /dev/sda5 /media/External1 ntfs-3g defaults,users 0 0
    /dev/sda6 /media/External2 ntfs-3g defaults users 0 0

    I made sure I added directories for External1 & External2 (sudo mkdir /media/External1
    ) & (sudo mkdir /media/External2)

    Then made sure to give permissions to both (sudo chown -R USERNAME /media/External1) & (sudo chown -R USERNAME /media/External2)

    I also edited (sudo gedit /etc/rc.local)...adding
    mkdir /media/External1 && sudo mount /dev/sda5 /media/External1
    mkdir /media/External2 && sudo mount /dev/sda6 /media/External2



    Seems to have solved the problem & hope this may help others.
    Last edited by DapperMe17; August 31st, 2008 at 04:14 AM.

  5. #5
    Join Date
    Nov 2006
    Beans
    639

    Re: Automount external HD

    Oooops...spoke too fast.


    Ok, my external HD mounts just fine "if" the drive is powered on "prior" to starting Ubuntu.

    Lonely problem, the external HD "won't" mount if Ubuntu is "already running". (Unable to Mount warning indicating something about rebuilding ntfs-3g & FUSE & root permissions..)

    Any idea?

    Again, my fstab....

    # /etc/fstab: static file system information.
    #
    # -- This file has been automaticly generated by ntfs-config --
    #
    # <file system> <mount point> <type> <options> <dump> <pass>

    proc /proc proc defaults 0 0
    # Entry for /dev/hda3 :
    UUID=b3f86e43-239d-485d-9f72-735bfa55cec2 / ext3 defaults,errors=remount-ro 0 1
    # Entry for /dev/hda1 :
    UUID=0000649A00001B58 /media/hda1 ntfs-3g defaults,locale=en_US.UTF-8 0 1
    # Entry for /dev/hda4 :
    UUID=4633-DE83 /media/hda4 vfat defaults,utf8,umask=007,gid=46 0 1
    # Entry for /dev/hda2 :
    UUID=ad10c4c1-f699-493d-aa8f-09faef6f26bc none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
    /dev/sda5 /media/External1 ntfs-3g defaults,users 0 0
    /dev/sda6 /media/External2 ntfs-3g defaults,users 0 0

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
  •