how to mount internal extra sata disk for users rw access?

July 20th, 2012 - 02:51 pm ET by Cat22 | Report spam
I have a spare internal SATA disk partioned into 2 ext4 partitions, one is
for swap space (that works ok) the other is extra data space.

How do i mount this partition (/dev/sdb2) so that any ordinary user can read
or write to it?

Does it make a diference where its mounted?

What I see is that no matter what the permissions or owner of the mount
point is, or who has perms to mount it, when it gets mounted it always
becomes owned by root and is not writeable by an ordinary user.

How do I fix this?
I'm using Opensuse 12.1

google only shows non-working solutions as near as I can tell, I cant find
an answer that deals with non-removable media like my internal extra sata
drive.

Thanks
Cat22
email Follow the discussionReplies 19 repliesReplies Make a reply

Similar topics

Replies

#1 houghi
July 20th, 2012 - 05:03 pm ET | Report spam
Cat22 wrote:
I have a spare internal SATA disk partioned into 2 ext4 partitions, one is
for swap space (that works ok) the other is extra data space.

How do i mount this partition (/dev/sdb2) so that any ordinary user can read
or write to it?



Use YaST.

Does it make a diference where its mounted?



No.

What I see is that no matter what the permissions or owner of the mount
point is, or who has perms to mount it, when it gets mounted it always
becomes owned by root and is not writeable by an ordinary user.



Then chown and/or chmod the directory.

How do I fix this?
I'm using Opensuse 12.1



say your partition is mounted on /media/boobies, you just do
`chmod 777 /media/boobies` as root.

houghi
We all came out to Montreux Frank Zappa and the Mothers
On the Lake Geneva shoreline Were at the best place around
To make records with a mobile But some stupid with a flare gun
We didn't have much time Burned the place to the ground
Replies Reply to this message
#2 unruh
July 20th, 2012 - 06:14 pm ET | Report spam
On 2012-07-20, houghi wrote:
Cat22 wrote:
I have a spare internal SATA disk partioned into 2 ext4 partitions, one is
for swap space (that works ok) the other is extra data space.

How do i mount this partition (/dev/sdb2) so that any ordinary user can read
or write to it?





in /etc/fstab
/dev/sdb2 /users ext4 relatime 1 3

Make sure that /users ( or whereever you want to mount it) is rwx for
all
chmod a+rwx /users
when you create the directory /users.





Use YaST.

Does it make a diference where its mounted?



No.

What I see is that no matter what the permissions or owner of the mount
point is, or who has perms to mount it, when it gets mounted it always
becomes owned by root and is not writeable by an ordinary user.



Then chown and/or chmod the directory.



There are two permissions on the directory. That on the mount point and
that on the mounted directory. It is best to make sure that both give
sufficent permission.



How do I fix this?
I'm using Opensuse 12.1



say your partition is mounted on /media/boobies, you just do
`chmod 777 /media/boobies` as root.



Do that once before you mount the partition, and once afterwards.



houghi
Replies Reply to this message
#3 Ulick Magee
July 21st, 2012 - 04:59 am ET | Report spam
On 20/07/12 22:03, houghi wrote:

say your partition is mounted on /media/boobies, you just do
`chmod 777 /media/boobies` as root.



http://www.theregister.co.uk/2012/0..._in_linux/

Microsoft has ‘fessed up to inserting the hexadecimal string
“0xB16B00B5” in the Linux kernel.




Ulick Magee

Free software and free formats for free information for free people.
LibreOffice for Windows/OSX/Linux: www.documentfoundation.org/download
openSUSE Linux: http://en.opensuse.org
Replies Reply to this message
#4 Shmuel (Seymour J.) Metz
July 22nd, 2012 - 07:51 am ET | Report spam
In <juc9c4$bpd$, on 07/20/2012
at 11:51 AM, Cat22 said:

How do i mount this partition (/dev/sdb2) so that any ordinary user
can read or write to it?



Do you mean so that each user can have a directory into which he can
store files, or do you mean so that all users can store into the same
directory. The later is not a good idea.

Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to
Replies Reply to this message
#5 houghi
July 22nd, 2012 - 08:59 am ET | Report spam
Shmuel Metz wrote:
Do you mean so that each user can have a directory into which he can
store files, or do you mean so that all users can store into the same
directory. The later is not a good idea.



In most cases you are right. However sometimes you want people to be
able to work on e.g. the same documents. If that is the case or not, we
can only guess. ;-)

What I do is mount on e.g. /share/data_1 and then make the different
directories in there. I then chmod and chown and do whatever I want to
do with those directories.

In the past used /media, but unless you have the devices mounted from
the beginning, the directories will not be available, because /media is
tmpfs.

I also use /share now, because that is what my NAS uses. That way I can
use the same scripts on my NAS as on my PC when I am writing to the same
data.

houghi
Let's not be too tough on our own ignorance. It's the thing that makes
America great. If America weren't incomparably ignorant, how could we
have tolerated the last eight years? -- Frank Zappa, in 1988
Replies Reply to this message
Help Create a new topicNext page Replies Make a reply
Search Make your own search