Results 1 to 5 of 5

Thread: Mount a second harddrive automatically

  1. #1
    Join Date
    Jan 2008
    Beans
    98

    Mount a second harddrive automatically

    I have a second drive, with Windows and various stored files, on it.

    I want it to auto-mount when I boot up Ubuntu, or when I click on its icon ("Local Disk"). However, I get a root password challenge, which is a bother.

    Recently I reinstalled Karmic. Before that, the system did not give such a challenge. It must have had some special configuration setting.

    How can I auto-mount? Can this be configured through the KDE GUI?

  2. #2

    Re: Mount a second harddrive automatically

    You need to add a setting to the fstab file. Can't remember exactly how the line should look but if you open the file it should be fairly obvious.
    Noli illegitimi carborundum

  3. #3
    Join Date
    May 2007
    Beans
    41
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Mount a second harddrive automatically

    I've found it not so trivial, but the following info was helpful for me:

    You have to put an extra line in /etc/fstab through some text editor. This line has some fairly basic settings, maybe 'default' will not work for you, then you have to search a bit for alternatives.
    What could go wrong: The mount point should have sufficient permissions (for example /media/music

    To get your device ID type
    Code:
    blkid
    and to test if your setting worked, remount your fstab list:
    Code:
    sudo mount -a

  4. #4
    Join Date
    Jun 2007
    Location
    K-o-T,
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Mount a second harddrive automatically

    Quote Originally Posted by bigred1 View Post
    I have a second drive, with Windows and various stored files, on it.

    I want it to auto-mount when I boot up Ubuntu, or when I click on its icon ("Local Disk"). However, I get a root password challenge, which is a bother.

    Recently I reinstalled Karmic. Before that, the system did not give such a challenge. It must have had some special configuration setting.

    How can I auto-mount? Can this be configured through the KDE GUI?
    Code:
    sudo apt-get install ntfs-3g ntfs-config
    Then go to System > Administration > NTFS Configuration Tool to open the GUI to mount your NTFS partitions.

    Not sure if it will work for KDE but I think it should.

    Good Luck
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

  5. #5
    Join Date
    Feb 2007
    Beans
    286
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Mount a second harddrive automatically

    Here is the line in my fstab that mounts my Windows partition perfectly with user privileges. On my machine, Windows is on sda2. You will have to create the directory /mnt/Windows by issuing the command
    Code:
    sudo mkdir /mnt/Windows
    first. then add this line to your fstab file
    Code:
    kdesudo kate /etc/fstab
    and save it. You will have to change the "sda2" in the line to the partition your windows is on. Then run
    Code:
    sudo mount -a
    to make sure it is works. After that it will be mounted automatically with user privileges.

    /dev/sda2 /mnt/Windows ntfs-3g uid=1000,gid=1000,locale=en_US.UTF-8 0 0
    Last edited by Detonate; February 23rd, 2010 at 01:28 PM.
    Floyd
    Ault, CO, USA
    Registered Linux User 436727
    Registered Ubuntu User # 13092

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
  •