Automount HD

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
la_monda
Level 2
Level 2
Posts: 65
Joined: Wed Apr 02, 2008 6:54 pm

Automount HD

Post by la_monda »

I was wondering how can i automount my ntfs disk upon startup without having to doubleclick on it and insert password.
thnx
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Re: Automount HD

Post by Husse »

You add a line to /etc/fstab like this one

Code: Select all

/dev/sda1		 /media/sda1     ntfs    defaults,umask=007,gid=46
Open fstab with gksudo gedit or in KDE kdesu kate
Of course you probably do not have sda1, open gparted and check what you have
you also have to make a directory in media named as the "dev"

Code: Select all

sudo mkdir /media/sda1
MagnusB
Level 6
Level 6
Posts: 1252
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Automount HD

Post by MagnusB »

Is, umask=007 strictly necessary, since defaults contains user, Husse?
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
Husse

Re: Automount HD

Post by Husse »

Hey MagnusB - you're probably right
This is the line I got automagically at some time - I just open fstab and copy it - it works nicely for me :)
MagnusB
Level 6
Level 6
Posts: 1252
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Automount HD

Post by MagnusB »

Ok, I was just curious. I always thought defaults made sure that the user had full read/write access to the disk.
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
Husse

Re: Automount HD

Post by Husse »

man mount
Fred

Re: Automount HD

Post by Fred »

MagnusB ,

I usually put it in too. You would be correct if the defaults were always set like we expect them to be. But that isn't always the case. The defaults are whatever whoever put the distro together decided they were. It doesn't hurt to have it and it might prevent an additional problem from popping up.

Fred
la_monda
Level 2
Level 2
Posts: 65
Joined: Wed Apr 02, 2008 6:54 pm

Re: Automount HD

Post by la_monda »

I folloed your guide and with the help of a similar ubuntu thread i managed it out! It seems that the defaults for umask are zeros...i guess here is my fstab file to check it out!
Locked

Return to “Beginner Questions”