You are not logged in.

#1 2010-05-09 07:18:31

figo1802
Member
Registered: 2009-08-03
Posts: 37

how mount ext4 partition with read/write

i use archlinux  , and i have a ext4 partition, i want to mount it , add it on /etc/fstab

/dev/sda7  /mnt/sda7  ext4  defaults,noatime  0 0

i reboot, i found the ext4 partition, i have no right to R/W for user mode? why?

Offline

#2 2010-05-09 07:24:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: how mount ext4 partition with read/write

You don't have that field in your fstab: http://wiki.archlinux.org/index.php/Fstab


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-05-09 07:27:14

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: how mount ext4 partition with read/write

Unmount the partition and run fsck on it and then mount it again.

Edit: So, you can r/w with root? Permissions problem?

Last edited by Ashren (2010-05-09 07:28:39)

Offline

#4 2010-05-09 07:28:47

figo1802
Member
Registered: 2009-08-03
Posts: 37

Re: how mount ext4 partition with read/write

what field? "defaults,noatime" ?    how to motify the fstab for ext4?

Offline

#5 2010-05-09 07:32:14

figo1802
Member
Registered: 2009-08-03
Posts: 37

Re: how mount ext4 partition with read/write

to Ashren:

i have R/W for root, but i login for user mode, the ext4 partition no right for RW, why?

BTW, i have another patrition for NTFS, it is work well in user mode.

Offline

#6 2010-05-09 07:37:00

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: how mount ext4 partition with read/write

If you can write to the disk as root, you should be able to do it as non-root...

What folder do you need to write to?
Could you give us the permissions of the folder you are trying to write to?
i.e.

 cd /your/folder/
ls -lah

NTFS is a windows system, and therefore will not operate with permissions as other filesystems does smile

Last edited by toffyrn (2010-05-09 07:39:01)

Offline

#7 2010-05-09 07:47:04

figo1802
Member
Registered: 2009-08-03
Posts: 37

Re: how mount ext4 partition with read/write

the ext4 partition is another linux, fedora 13, i want to mount it on archlinux.

[figo@myhost sda7]$ ls -lah
total 136K
dr-xr-xr-x  24 root root 4.0K May  9 15:28 .
drwxr-xr-x   7 root root 4.0K May  9 15:35 ..
drwx------   4 root root 4.0K May  9 15:28 .Trash-0
-rw-r--r--   1 root root    0 May  8 20:17 .autofsck
drwx------   3 root root 4.0K May  1 18:28 .dbus
drwx------   2 root root 4.0K May  1 18:28 .pulse
-rw-------   1 root root  256 May  1 18:28 .pulse-cookie
dr-xr-xr-x   2 root root 4.0K May  8 21:41 bin
dr-xr-xr-x   4 root root 4.0K May  8 21:42 boot
drwxr-xr-x   4 root root 4.0K Oct  1  2009 dev
drwxr-xr-x 117 root root  12K May  8 21:45 etc
drwxr-xr-x   4 root root 4.0K May  1 18:29 home
dr-xr-xr-x  17 root root  12K May  8 21:43 lib
drwx------   2 root root  16K Apr  8 02:48 lost+found
drwxr-xr-x   2 root root 4.0K Oct  1  2009 media
drwxr-xr-x   2 root root 4.0K Oct  1  2009 mnt
drwxr-xr-x   2 root root 4.0K Oct  1  2009 opt
drwxr-xr-x   2 root root 4.0K Apr  8 02:48 proc
dr-xr-x---   7 root root 4.0K May  8 20:21 root
dr-xr-xr-x   2 root root  12K May  8 21:44 sbin
drwxr-xr-x   3 root root 4.0K Apr  8 03:02 selinux
drwxr-xr-x   3 root root 4.0K Oct  1  2009 srv
drwxr-xr-x   2 root root 4.0K Apr  8 02:48 sys
drwxrwxrwt  16 root root 4.0K May  8 21:42 tmp
drwxr-xr-x  13 root root 4.0K Apr  8 02:49 usr
drwxr-xr-x  21 root root 4.0K May  8 21:41 var

Offline

#8 2010-05-09 08:07:29

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: how mount ext4 partition with read/write

The only folder you can write to as non-root is temporary.
drwxrwxrwt  16 root root 4.0K May  8 21:42 tmp

this is completly normal, and would be the same way even in a current install.
root owns everything, you own only your home folder (usually).

You can change the permissions using "chmod" and "chown" but be aware that you may experience problems when you go back using the disk in fedora!!!

The easiest thing to do, i think, is to use sudo when needed.

A good thing to do is to read wikipedias article about "filesystem permissions", and get familiar with commands chmod and chown smile

Last edited by toffyrn (2010-05-09 08:09:06)

Offline

Board footer

Powered by FluxBB