Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: How do you setup the system so it automatically mounts a drive at startup?

  1. #1
    Join Date
    Jun 2009
    Location
    Little Rock, Arkansas
    Beans
    190
    Distro
    Ubuntu 12.04 Precise Pangolin

    Smile How do you setup the system so it automatically mounts a drive at startup?

    Hello -
    I have a dual boot system with Ubuntu on one hard drive a Windows on another.
    The command to mount my Windows drive is this:
    sudo mount -t ntfs /dev/sdb2 /media/Windows
    where the directory /media/Windows is already created
    I would like to setup my system so that the drive is mounted
    automatically upon system startup.
    I tried putting the command (without sudo) in my /etc/profile and
    rebooting, but that didn't seem to work. (Wish I understood why not.)
    What do I have to do to make this work?

    Thanks, we're very fortunate to have this forum. - Randy

  2. #2
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    8,042

    Re: How do you setup the system so it automatically mounts a drive at startup?

    Add it to /etc/fstab

    Do yourself a favour and read the fstab man page before you edit it.

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

    Re: How do you setup the system so it automatically mounts a drive at startup?

    Quote Originally Posted by Randy Schilling View Post
    Hello -
    I have a dual boot system with Ubuntu on one hard drive a Windows on another.
    The command to mount my Windows drive is this:
    sudo mount -t ntfs /dev/sdb2 /media/Windows
    where the directory /media/Windows is already created
    ..........
    Do not ever use /media for direct mounts. /media is a system folder for dynamic mounting.

    Create a mount point under /mnt. Do a search for the multitude of posts that explain all of the steps.
    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

  4. #4
    Join Date
    Jun 2012
    Beans
    9

    Re: How do you setup the system so it automatically mounts a drive at startup?

    try looking in the /etc/mtab file. This is where commands to mount devices are found when the system boots up

  5. #5
    Join Date
    Jun 2009
    Location
    Little Rock, Arkansas
    Beans
    190
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do you setup the system so it automatically mounts a drive at startup?

    dcstar:

    The drive can be mounted using nautilus. When I open nautilus, "1 TB Filesystem" is listed under Places. Clicking this item mounts the drive and the drive is located in /media/8A467EB6467EA29D.
    This is why I chose /media when manually mounting the drive. I will use /mnt from now on.

    Could you please guide me a good reference, among the multitude, for mounting a drive?

    Thanks
    Last edited by Randy Schilling; July 4th, 2012 at 05:02 PM.

  6. #6
    Join Date
    Jun 2009
    Location
    Little Rock, Arkansas
    Beans
    190
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do you setup the system so it automatically mounts a drive at startup?

    mainmeister:

    Yes, when I mount my drive manually, it is added to the mtab list and when I umount it, that listing is removed.

    The problem is getting the system to mount the drive automatically at startup. Are you saying that that this is done by adding an entry directly to the mtab file?
    Last edited by Randy Schilling; July 4th, 2012 at 05:03 PM.

  7. #7
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do you setup the system so it automatically mounts a drive at startup?

    The basic functionalities of MountManager are:
    - Mount and unmount partitions (ext3/2, ntfs, swap, fat, reiserfs, iso9660,
    udf, ...)
    - Show all logical and physical disks
    - Change config file /etc/fstab
    - Descriptions of options and other settings of mounting
    - Restoration system
    - Images mounting and unmounting (Nrg, Mdf , Ccd, Bin , etc)
    - Udev rules creation
    - Disk wizard
    - Etc...


  8. #8
    Join Date
    Jun 2009
    Location
    Little Rock, Arkansas
    Beans
    190
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do you setup the system so it automatically mounts a drive at startup?

    HermanAB:

    fstab manual is very technical. Could you please provide instruction that is less demanding? Why would I edit fstab to mount a drive?

  9. #9
    Join Date
    Oct 2006
    Location
    Dawlish, Devon, UK
    Beans
    603
    Distro
    Kubuntu 14.10 Utopic Unicorn

    Re: How do you setup the system so it automatically mounts a drive at startup?

    Code:
    sudo apt-get install mountmanager
    Then run mountmanager and configure your drive. Easy.
    $> cd /pub
    $> more beer

  10. #10
    Join Date
    Oct 2006
    Location
    Dawlish, Devon, UK
    Beans
    603
    Distro
    Kubuntu 14.10 Utopic Unicorn

    Re: How do you setup the system so it automatically mounts a drive at startup?

    Even easier:

    Code:
    sudo apt-get install pysdm
    Then:

    Code:
    sudo pysdm
    $> cd /pub
    $> more beer

Page 1 of 3 123 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
  •