Results 1 to 8 of 8

Thread: Automatically mount windows drive at startup

  1. #1
    Join Date
    2013-Nov
    Posts
    20

    Automatically mount windows drive at startup

    Hello, this is a short tutorial of how to mount windows drive in kali linux automatically.

    1. Look for the drive that you want to automatically mount via this command
    Code:
    sudo blkid
    2. Go to Applications-System tools-Preferences-Startup applications.

    3. Go to add

    4. Give a name that you'd like to represent the drive you want to mount.
    In command, put this:
    Code:
    udisks --mount /dev/sda2 --mount-options=umask=022
    My windows drive is "sda2." Yours maybe different. Check which windows drive you want to add via this command:
    Code:
    sudo blkid
    Note:
    The first part mounts the drive you want
    Code:
    udisks --mount /dev/sda2
    The second part adds executable permission. you can omit this if you don't want executable permission.

    Code:
    --mount-options=umask=022
    Hope this helps.

    Regards,

    Andrew.

  2. #2
    I think adding a line to the /etc/fstab would be easier and the prefered method for accomplishing this.

  3. #3
    Join Date
    2013-Nov
    Posts
    20
    thanks for the reply. How would you do this?
    Quote Originally Posted by aerokid240 View Post
    I think adding a line to the /etc/fstab would be easier and the prefered method for accomplishing this.

  4. #4
    Open up /etc/fstab in a text editor like vim or nano. Look at the entries there as a reference but adding an entry is relativly easy. Look up other examples on google or type "man fstab" in the terminal..

  5. #5
    Join Date
    2013-Nov
    Posts
    14
    i think downloading ntfs-3g & disk manager would solve this problem in a matter of minutes and would automate everything for you just
    apt-get install ntfs-3g disk-manager
    and voila , you wont have to worry about it anymore

  6. #6
    ntfs-3g should be installed by default. While your recommendation can be a great a solution, i personally don't see the benifit of installing extra packages to accomplish a task that can already be accomplished with tools already in place. My stance on this for OP is that if you wanna get better as kali/linux user, knowing how to use and modify /etc/fstab would be benificial. Using the fstab file to mount disk drives at startup is easy to do and exists for that purpose.

  7. #7
    Join Date
    2014-Mar
    Posts
    14
    Quote Originally Posted by aerokid240 View Post
    Open up /etc/fstab in a text editor like vim or nano. Look at the entries there as a reference but adding an entry is relativly easy. Look up other examples on google or type "man fstab" in the terminal..
    yes and find out the uuid by searching in /dev/disk/by-uuid .

  8. #8
    Quote Originally Posted by my68_ View Post
    yes and find out the uuid by searching in /dev/disk/by-uuid .
    Simple way to accomplish this is to use the "blkid" command.

Similar Threads

  1. I accidentally uncheck "mount at system startup"
    By bulldog12345 in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2022-07-29, 09:13
  2. Automatically mount second encrypted disk
    By Kali_User_Ger in forum General Archive
    Replies: 0
    Last Post: 2021-01-03, 22:05
  3. Is it possible to mount/use an external USB drive in nethunter???
    By krunt0r in forum NetHunter General Questions
    Replies: 3
    Last Post: 2017-05-25, 08:01

Posting Permissions

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