Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fstab write ext4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
chrosa
n00b
n00b


Joined: 27 Jul 2013
Posts: 16
Location: Norway

PostPosted: Fri Sep 06, 2013 7:45 pm    Post subject: fstab write ext4 Reply with quote

Hi.
Just having some problems with fstab, and i dont know what im doing wrong. I made a new partitition that i want to use to backup data on. The issue is that i cant seem to get write privileges. I want to be able to write to it with user privileges and this is what i have so far.
Code:
UUID=2c44dc39-3938-4758-9b67-cac34197cf5e /mnt/backup             ext pr4    rw,users    0 0

_________________
Yeah, Windows is great... I used it to download Linux!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Fri Sep 06, 2013 8:10 pm    Post subject: Reply with quote

Quote:
ext pr4
can't have spaces, what file system is ext pr4
_________________
Defund the FCC.
Back to top
View user's profile Send private message
chrosa
n00b
n00b


Joined: 27 Jul 2013
Posts: 16
Location: Norway

PostPosted: Sun Sep 08, 2013 4:09 pm    Post subject: Reply with quote

ohh sorry, something went wrong, it looks like this.

Code:
UUID=2c44dc39-3938-4758-9b67-cac34197cf5e /mnt/backup             ext4    users,rw         0 0

_________________
Yeah, Windows is great... I used it to download Linux!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43387
Location: 56N 3W

PostPosted: Sun Sep 08, 2013 5:02 pm    Post subject: Reply with quote

chrosa,

Ext4 is a real native linux filesystem. You may not use the users option to mount.

Change the owner or group (or both) of the filesystem mount point to allow the permissions you want.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sun Sep 08, 2013 5:38 pm    Post subject: Reply with quote

I created an ext4 partition, a directory /mnt/backup, an fstab entry matching yours except using my UUID, ran
Code:
mount /mnt/backup
mount
received
Quote:
/dev/sdd10 on /mnt/backup type ext4 (rw,noexec,nosuid,nodev)
so the problem is not the fstab entry.

permissions?

read
Code:
man mount
the options user, users, group, owner, and noauto may be of interest.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13982

PostPosted: Sun Sep 08, 2013 6:37 pm    Post subject: Reply with quote

OP: you say you cannot get write permission on it. What error message do you get that tells you that you lack permission?
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6290

PostPosted: Sun Sep 08, 2013 8:50 pm    Post subject: Reply with quote

DONAHUE wrote:
read
Code:
man mount
the options user, users, group, owner, and noauto may be of interest.

As NeddySeagoon has written, you cannot set permissions for an ext4 filesystem in the fstab. You must use chown, chgrp, chmod as for any other file in your main filesystems when it is mounted (noting that the mount-point itself is also such a directory for which the permissions can be changed). If you plan to move the harddisk between different systems you must make sure that their user and group id's are consistent.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum