how to mount a EXT4 filesystem writable?

Hi every body,

I have a SD-Card formatted with EXT4, the problem is that only root can write in it and I don’t know how to mount it so that my regular user can write in it too,

this is how I’m mounting it

/dev/disk/by-id/usb-Generic-_Multi-Card_20090516388200000-0:0-part1 /mnt/SD-Card ext4 noatime,user,noauto,rw,data=writeback,acl,user_xattr,suid,dev,exec 0 0

and this is the mounting point

drwsrwxrwx  2 root users 4.0K Apr  8 14:04 /mnt/SD-Card

so the one million dollars question is, what am I doing wrong? or how may i fix it?

thanks in advance!

On 04/08/2012 02:16 PM, juanp 1982 wrote:
>
> Hi every body,
>
> I have a SD-Card formatted with EXT4, the problem is that only root can
> write in it and I don’t know how to mount it so that my regular user can
> write in it too,
>
> this is how I’m mounting it
>
>
> Code:
> --------------------
> /dev/disk/by-id/usb-Generic-_Multi-Card_20090516388200000-0:0-part1 /mnt/SD-Card ext4 noatime,user,noauto,rw,data=writeback,acl,user_xattr,suid,dev,exec 0 0
> --------------------
>
>
> and this is the mounting point
>
>
> Code:
> --------------------
> drwsrwxrwx 2 root users 4.0K Apr 8 14:04 /mnt/SD-Card
> --------------------
>
>
> so the one million dollars question is, what am I doing wrong? or how
> may i fix it?

You need to set the permissions on the mount directory (/mnt/SD-Card) to allow
some other user than root to have write access. If you want ALL users to be able
to write, then ‘sudo chmod 777 /mnt/SD-Card’ will do. If you want only some
users to have access, then use ‘chown’ to change the owner group of the
directory to some special group, and then add the users you wish to have write
access to that group.

Hi lwfinger

I did that, pay attention to my first post in the second line of “code”

that folder belong to the users group and has 777 permissions and still not working :frowning: :’(

On 2012-04-08 21:16, juanp 1982 wrote:

> so the one million dollars question is, what am I doing wrong? or how
> may i fix it?

chown it to your user.

You might also consider to remove the journal to avoid excessive wear.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Hi robin_listas !

I changed the owner’s folder to my regular user now it looks like this:

4.0K drwsrwxrwx  2 jpmolinamatute users 4.0K Apr  8 14:04 SD-Card

however after mounting the SD-Card it looks like this:

4.0K drwxr-xr-x  3 root root  4.0K Apr  8 14:04 SD-Card

**

**I just realized that.

On 2012-04-08 21:36, juanp 1982 wrote:
>
> Hi lwfinger
>
> I did that, pay attention to my first post in the second line of “code”
>
> that folder belong to the users group and has 777 permissions and still
> not working :frowning: :’(

Mmm.

In CLI, change to that folder and create a file as user (touch filename).
Also do an “ls -l”. Put the commands and the response here. Lets see if we
can see what is wrong. Ah, try also “groups”.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Hi robin_listas,

[04:24 PM jpmolinamatute@Goku:/mnt/SD-Card]=> touch myfile
touch: cannot touch `myfile': Permission denied
[04:26 PM jpmolinamatute@Goku:/mnt/SD-Card]=> ls -l
total 16
drwx------ 2 root root 16384 Apr  8 14:04 lost+found

On 2012-04-08 22:06, juanp 1982 wrote

> **I just realized that.

Ah, but you have to do it while mounted.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

it works!!!

Gracias!!!

On 2012-04-08 22:56, juanp 1982 wrote:
>
> it works!!!
>
> Gracias!!!

De nada :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)