Results 1 to 8 of 8

Thread: How can I automount my windows partition at boot?

  1. #1
    Join Date
    Apr 2011
    Location
    Secunda, South Africa
    Posts
    80

    Default How can I automount my windows partition at boot?

    I have all my music and videos on my NTFS partition. How can I automount it during boot so that I may make links like this:

    Code:
    ln -s /windows/music ~/music
    work automagically in KDE without having to give root password.

  2. #2
    Join Date
    May 2012
    Location
    Thessaloniki, Greece
    Posts
    114

    Default Re: How can I automount my windows partition at boot?

    You need to edit the file /etc/fstab.
    Either using a text editor like kwrite or gedit, or you can open YaST > Partitioner, go to Hard disks, select the partiotion and click 'Edit'. Then select 'Mount' under 'Mounting Options' and choose your mount point. Click 'Finish' and reboot.

    Note that in both ways you can easily mess your system and make it non-bootable, so be careful.

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,274

    Default Re: How can I automount my windows partition at boot?

    Quote Originally Posted by billypap View Post
    You need to edit the file /etc/fstab.
    Either using a text editor like kwrite or gedit, or you can open YaST > Partitioner, go to Hard disks, select the partiotion and click 'Edit'. Then select 'Mount' under 'Mounting Options' and choose your mount point. Click 'Finish' and reboot.

    Note that in both ways you can easily mess your system and make it non-bootable, so be careful.
    And do not forget that your mount point, in your case /home/billypap/music, must be owned by user billypap (and that user must set the access to his liking).
    Henk van Velden

  4. #4
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: How can I automount my windows partition at boot?

    Quote Originally Posted by georgelappies View Post
    I have all my music and videos on my NTFS partition. How can I automount it during boot so that I may make links like this:

    Code:
    ln -s /windows/music ~/music
    work automagically in KDE without having to give root password.
    I use the following line in my fstab to auto mount my Windows hard drive. While you can use a ln command to create a link, I have not found that is require and just point my Linux programs to the native source folder:

    Code:
    /dev/disk/by-id/ata-ST32000641AS_9WM0BWE8-part2                     /Windows             ntfs-3g    defaults,noatime                                  0 0
    Keep in mind my hard drive name is different than yours. You can use the YaST Partitioner to create a similar entry in your fstab file and then edit the fstab file manually and use the suggested options "defaults,noatime" over what is added there for you. You can use the Partitioner to edit any partition, BUT DO NOT FORMAT an Existing One, but only enter a folder name for it to be mounted. The folder will be created if it does not exists and if it does exist, no files or folders should exist within it. To edit system files like /etc/fstab, have a look at my bash script editor program here:

    SYSEdit - System File Editor - Version 1.00 - Blogs - openSUSE Forums

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  5. #5
    Join Date
    Apr 2011
    Location
    Secunda, South Africa
    Posts
    80

    Default Re: How can I automount my windows partition at boot?

    Thanks all for the insightful replies, I got it working now

  6. #6

    Default Re: How can I automount my windows partition at boot?

    Quote Originally Posted by georgelappies View Post
    I have all my music and videos on my NTFS partition. How can I automount it during boot so that I may make links like this:

    Code:
    ln -s /windows/music ~/music
    work automagically in KDE without having to give root password.
    This thread has been here for a while but still it helped me yesterday (Jan 2014) to get a Windoze partition going at boot. I added in /etc/fstab the following line "/dev/disk/by-id/ata-ST32000641AS_9WM0BWE8-part2 /Windows ntfs-3g defaults,noatime 0 0"

    from jdmcdaniel3 which works perfectly - thank you!

    Today I came acroos the following (by chance) but haven't tried it as mine as now working.

    Go to Kickoff Launcher --> System Settings --> Hardware --> Removable Devices. In here one can tick "Enable automatic mounting of removable media". Below that is a list of media which can be ticked/mounted.
    As I said, I haven't tried it but might be worth a try.

    I hope this helps and good luck!

    Best

  7. #7

    Default Re: How can I automount my windows partition at boot?

    Quote Originally Posted by SeemannAhoi View Post
    Go to Kickoff Launcher --> System Settings --> Hardware --> Removable Devices. In here one can tick "Enable automatic mounting of removable media". Below that is a list of media which can be ticked/mounted.
    As I said, I haven't tried it but might be worth a try.
    But this doesn't mount the drive at boot, only if that particular user logs in.
    Depending on your use case/needs this may or may not be sufficient to you.

    Btw, you can also use YaST->System->Partitioner to create that fstab entry, if you don't want to edit the file by hand.
    But this already has been mentioned here anyway.

  8. #8
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    3,974

    Default Re: How can I automount my windows partition at boot?

    Quote Originally Posted by wolfi323 View Post
    But this doesn't mount the drive at boot, only if that particular user logs in.
    Depending on your use case/needs this may or may not be sufficient to you.
    As in Wolfi's reference to "Depending on your use...":

    I only use my NTFS partition for specific jobs, so I don't have it automount at boot.

    Instead, I open Dolphin, choose the partition, enter root password when asked, and it is mounted for current user with the necessary permissions to get my work done.

    When I am finished the work, I use Dolphin to unmount the NTFS partition until needed again.

    That suits my purpose.

    I just do not feel comfortable having an NTFS partition permanently mounted.

    Not that I don't trust Microsoft filesystem security, but ...

    I do not trust Microsoft filesystem security. ;-D


    -fb
    -Gerry Makaro
    Fraser-Bell Info Tech
    Solving Tech Mysteries since the Olden Days!
    ~~
    If I helped you, consider clicking the Star at the bottom left of my post.

Posting Permissions

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