You are not logged in.

#1 2014-07-01 23:55:36

necbot
Member
Registered: 2013-12-05
Posts: 59

[SOLVED]trying to mount disk so all users can read write

I'm trying to mount my hard drive to /mnt/2TB automatically at startup.  My /etc/fstab looks like this...

/dev/sda2       /       ext4    errors=remount-ro       0       1
/dev/sdb1       /mnt/2TB        ntfs    auto,exec,rw,users,uid=1000     0       0

ls / shows...

drwxrwxrwx   3 root root  4096 Jun 30 20:09 mnt

ls /mnt shows...

drwxrwxrwx 1 root root 4096 Jun 20 21:21 2TB

When I restart the disk mounts fine but I cannot write anything to disk.  I want to mount this disk so that anyone can read, write, and execute on it.  I specified these options in my fstab.  What options am I missing?


EDIT:
I figured it out.  I had to install ntfs-3g.  Once I did that I changed my fstab to this...


/dev/sda2       /       ext4    errors=remount-ro       0       1
/dev/sdb1       /mnt/2TB        ntfs-3g defaults,uid=1000       0       0

Then I changed /mnt permissions to ...

drwxr-xr-x   3 root root  4096 Jun 30 20:09 mnt

Then I changed /mnt/2TB permissions to...

drwxrwxrwx 1 necbot users 4096 Jun 20 21:21 2TB

Works great!

Last edited by necbot (2014-07-02 00:07:43)

Offline

#2 2016-09-15 12:33:25

Love_You000
Member
Registered: 2016-09-15
Posts: 1

Re: [SOLVED]trying to mount disk so all users can read write

Hi,

I just wanna say a quick THANK YOU!!!!11111

I worked like 3 days on getting my ntfs usb-stick to mount correctly on my Raspberry Pi. Then I read your answer and dude, thanks.
Everything works smoothly as expected and it worked like a charm.

I am so happy right now, that I created this account just to thank you xD (I'll delete it afterwards)


This solution is so simple, but I didn't find it anywhere (after like 20 hours of googling), so yeah...

Just thanks smile

Offline

#3 2016-09-15 16:37:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: [SOLVED]trying to mount disk so all users can read write

And, on that happy note, I shall use this opportunity to close this old thread.

I created this account just to thank you xD (I'll delete it afterwards)

No need, you are welcome here. Besides, you cannot wink


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB