Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: [SOLVED] Automount partition

  1. #1
    Join Date
    Jul 2008
    Location
    Australia
    Beans
    147
    Distro
    Ubuntu 10.10 Maverick Meerkat

    [SOLVED] Automount partition

    Hey guys,

    i have a windows partition that i store all of my music on, i've configured amarok to use the folder it's all stored in, i was wondering if anyone knew how to make Ubuntu auto mount that partition when i logged into session,

    would help out a lot thanks guys

  2. #2
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Automount partition

    Post whatever displays when you issue the commands below:

    Code:
    cat /etc/fstab
    
    sudo fdisk -l
    
    sudo blkid
    So, we could tailor your need for auto-mounting.
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  3. #3
    Join Date
    Jul 2008
    Location
    Australia
    Beans
    147
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Automount partition

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda5
    UUID=246699c0-1262-4d0d-94dd-6496b33467d4 / ext3 relatime,errors=remount-ro 0 1
    # /dev/sda6
    UUID=60f73491-2563-4300-aabd-b926215b83f8 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0



    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x30000000

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 26134 209921323+ 7 HPFS/NTFS
    /dev/sda2 26135 37607 92156872+ 7 HPFS/NTFS
    /dev/sda3 37608 38913 10490445 5 Extended
    /dev/sda5 37608 38851 9992398+ 83 Linux
    /dev/sda6 38852 38913 497983+ 82 Linux swap / Solaris



    /dev/sda1: UUID="A644B11B44B0EF65" TYPE="ntfs"
    /dev/sda2: UUID="44542ECD542EC192" LABEL="Do Not touch" TYPE="ntfs"
    /dev/sda5: UUID="246699c0-1262-4d0d-94dd-6496b33467d4" TYPE="ext3"
    /dev/sda6: TYPE="swap" UUID="60f73491-2563-4300-aabd-b926215b83f8"


    Posted in order of commands.


    don't worry about the "do not touch" partition, i'll be fixing that into the non labeled ntfs partition soon

  4. #4
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Automount partition

    Say, it's the /dev/sda2 that needs to be auto-mounted:

    First thing to do is to install ntfs-3g driver.

    Code:
    sudo apt-get install ntfs-3g
    Then, create the mount point for that device:

    Code:
    sudo mkdir /media/musicdrive
    Open /etc/fstab file for editing:

    Code:
    gksudo gedit /etc/fstab
    and add the line of code below to the last part of the file:

    /dev/sda2 /media/musicdrive ntfs-3g defaults 0 0
    Save and Close the File: Drop to your terminal and issue the command:

    Code:
    sudo mount -a
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  5. #5
    Join Date
    Jul 2008
    Location
    Australia
    Beans
    147
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Automount partition

    awesome

    thanks for your help

  6. #6
    Join Date
    Sep 2009
    Location
    Santiago, Chile
    Beans
    44
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Automount partition

    Quote Originally Posted by iaculallad View Post
    Say, it's the /dev/sda2 that needs to be auto-mounted:

    First thing to do is to install ntfs-3g driver.

    Code:
    sudo apt-get install ntfs-3g
    Then, create the mount point for that device:

    Code:
    sudo mkdir /media/musicdrive
    Open /etc/fstab file for editing:

    Code:
    gksudo gedit /etc/fstab
    and add the line of code below to the last part of the file:

    /dev/sda2 /media/musicdrive ntfs-3g defaults 0 0

    Save and Close the File: Drop to your terminal and issue the command:

    Code:
    sudo mount -a
    I there.. new to this linux/Ubuntu world so i would like to ask you if there could be a problem if i make a mistake editing the fstab file .. ie something that you could not ..undone .. .

    thanks in advance..-
    regards.
    im new to this...(but i am a fast learner) so please bare for me a while.
    =============
    My Newbie Threads ...please help me to learn:
    Conky Compiling 8.04 | Waiting for 9.10 | Errors & Log Files|

  7. #7
    Join Date
    Aug 2008
    Location
    127.0.0.1
    Beans
    65
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Automount partition

    Quote Originally Posted by Kaizzer View Post
    I there.. new to this linux/Ubuntu world so i would like to ask you if there could be a problem if i make a mistake editing the fstab file .. ie something that you could not ..undone .. .

    thanks in advance..-
    regards.
    Thanks for pointing me to this thread, Kaizzer.

    In Linux, there is very little you can do that you cannot undo. The problem I've encountered is that sometimes it takes a while to get the help you need, and the waiting can be almost unbearable. If you are patient, though, there is almost always someone willing to answer your questions and help you out of whatever jam you've gotten yourself into.

    Also, don't get your hopes up on this thread... It's been solved for over a year.

    Acer Aspire One netbook - Intel 1.33 Ghz, 2 Gb RAM, 250 Gb HDD | XP - Kubuntu - 7

  8. #8
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,505
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Automount partition

    Quote Originally Posted by Kaizzer View Post
    I there.. new to this linux/Ubuntu world so i would like to ask you if there could be a problem if i make a mistake editing the fstab file .. ie something that you could not ..undone .. .
    There are GUI tools that can achieve exactly what you want in this area without having to take risks manually editing these files. Simply install the pysdm package: System-Administration-Storage Device Manager.

    I cannot fathom why people continually tell new Linux users to stuff around with these files when a better option has existed for a very long time.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  9. #9
    Join Date
    Aug 2008
    Location
    127.0.0.1
    Beans
    65
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Automount partition

    Quote Originally Posted by dcstar View Post
    There are GUI tools that can achieve exactly what you want in this area without having to take risks manually editing these files. Simply install the pysdm package: System-Administration-Storage Device Manager.

    I cannot fathom why people continually tell new Linux users to stuff around with these files when a better option has existed for a very long time.
    I had never heard of these, and had no clue what ntfs-config did. (I assumed that ntfs-3g would take care of the config for my NTFS partitions.)

    Thanks! That's working great now.

    Kaizzer... Don't forget to take care of the naming scheme for your NTFS partition in your conkyrc.

    Acer Aspire One netbook - Intel 1.33 Ghz, 2 Gb RAM, 250 Gb HDD | XP - Kubuntu - 7

  10. #10
    Join Date
    Sep 2009
    Location
    Santiago, Chile
    Beans
    44
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Automount partition

    Quote Originally Posted by erictherev View Post
    Kaizzer... Don't forget to take care of the naming scheme for your NTFS partition in your conkyrc.
    thanks .. i wont .. when im done with the conky upgrade that is driving me nuts since im on 8.04 ..


    read you in "the other" thread
    im new to this...(but i am a fast learner) so please bare for me a while.
    =============
    My Newbie Threads ...please help me to learn:
    Conky Compiling 8.04 | Waiting for 9.10 | Errors & Log Files|

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •