Cannot write to disk

New to Debian (Or Linux in general)? Ask your questions here!

Cannot write to disk

Postby Soapm » 2017-10-23 22:56

I just upgraded my video server RAID 5 drives and now I can only write to the RAID when I am using "root". This is how it should be mounting, from what I can see it should be "rw". Was there a step I missed during the creation of this RAID to failed to properly propagate permissions? I didn't have this problem wiith the previous RAID and the only difference was upgrading the drives from 3tb to 4tb.

Code: Select all
chuck@lenny:/video$ cat > test.txt
-bash: test.txt: Permission denied


Code: Select all
chuck@lenny:/video$ mount | grep '/video'
/dev/md0 on /video type xfs (rw,nosuid,nodev,relatime,attr2,inode64,sunit=128,swidth=384,noquota)


I have the same problem trying to create a folder from my windows machine via samba. This is the shares settings. I up'd it to 777 from 766 to see if that made a difference.

Code: Select all
[video]
        comment = Video on Lenny
        path = /video
        readonly = No
        create mask = 0777
        guest ok = Yes
        delete readonly = Yes


I have tons of space...

Code: Select all
chuck@lenny:/video$ df -h /video/
Filesystem      Size  Used Avail Use% Mounted on
/dev/md0         11T  6.5T  4.5T  59% /video
Last edited by Soapm on 2017-10-26 05:40, edited 1 time in total.
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: Cannot write to disk

Postby p.H » 2017-10-24 07:10

Please post the output of
Code: Select all
ls -ld /video

and check the permissions on the filesystem root.
p.H
 
Posts: 160
Joined: 2017-09-17 07:12

Re: Cannot write to disk

Postby debiman » 2017-10-24 15:02

Soapm wrote:from what I can see it should be "rw".

yes but for which user?
who owns it?
(same answer as previous post)
User avatar
debiman
 
Posts: 1545
Joined: 2013-03-12 07:18

Re: Cannot write to disk

Postby Soapm » 2017-10-24 15:34

This is the output of the command.

Code: Select all
root@lenny:/# ls -ld /video
drwxr-xr-x 110 chuck chuck 4096 Oct 23 07:02 /video


I believe this is what you mean by filesystem root???

Code: Select all
root@lenny:/# ls -ld /dev/md0
brw-rw---- 1 root disk 9, 0 Oct 24 00:56 /dev/md0
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: Cannot write to disk

Postby debiman » 2017-10-24 15:43

strange.
and now
Code: Select all
cd /video
ls -al
please.
User avatar
debiman
 
Posts: 1545
Joined: 2013-03-12 07:18

Re: Cannot write to disk

Postby Soapm » 2017-10-24 16:14

This is a sample, I have 6tb oof files so the list is quite lengthy.

Code: Select all
root@lenny:/video# ls -al
total 3458720
drwxr-xr-x 110 chuck        chuck             4096 Oct 23 07:02 .
drwxr-xr-x  41 root         root              4096 Oct 23 23:07 ..
drwxrwxrwx   5 chuck        chuck               69 Nov 27  2013 XXXXXX
drwxrwxrwx   9 chuck        chuck              122 Jan 15  2014 XXXXXXX
-rwxrw-rw-   1 chuck        chuck         29256745 Dec 27  2016 XXXXXX.mp4
-rwxrw-rw-   1 chuck        chuck        146753276 Dec 27  2016 XXXXXX.mp4


Ps... The original problems seems to have fixed itself, cat > test.txt now works using user name chuck.

But I'm still not able to create, move or rename the files via samba from my windows machine. I get the attached error when I try.

Whoops, I get an error saying the attachment quota has been reached, so I can't attach the screen print but the error says I "need permission too preform this action."
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: Cannot write to disk

Postby Soapm » 2017-10-24 21:53

I see the single dot “.” Says chuck.

What’s up with the double dots “..” and how can I change them to chuck as owner/group?
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: Cannot write to disk

Postby GarryRicketson » 2017-10-25 03:02

What do the 2 dots mean in a linux directory

how can I change them to chuck as owner/group?



Code: Select all
man chown

CHOWN(8) System Manager's Manual CHOWN(8)
NAME
chown - change file owner and group
--- read it all , and learn something----

Code: Select all
man chgrp

CHGRP(1) General Commands Manual CHGRP(1)

NAME
chgrp - change group
--- read it all , and learn something----
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4366
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot write to disk

Postby debiman » 2017-10-25 05:14

Soapm wrote:I see the single dot “.” Says chuck.

What’s up with the double dots “..” and how can I change them to chuck as owner/group?

everything is in order with that ls output.
the double dot is the directory one up. you do not want to change its permissions (in this case it's / so you really do not want to change that).

now the first problem is clarified, the rest of it - well it must have something to do samba.
retrace your steps for making samba work, you must have left out something or done it wrong.

PS:
it's weird to have the executable bit set on movies. where did that come from.
User avatar
debiman
 
Posts: 1545
Joined: 2013-03-12 07:18

Re: Cannot write to disk

Postby Soapm » 2017-10-25 09:48

Edited instead of quotes...
Last edited by Soapm on 2017-10-26 05:38, edited 2 times in total.
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: Cannot write to disk

Postby p.H » 2017-10-25 10:17

Soapm wrote:did I do something wrong making the raid? Was I supposed to put a partition on the raid before adding the file system?

No, and no. RAID has nothing to do with filesystem permissions.
p.H
 
Posts: 160
Joined: 2017-09-17 07:12

Re: Cannot write to disk

Postby Soapm » 2017-10-26 05:38

Code: Select all
[video]
        readonly = no
       




At last, I figured it out, this share had "readonly" instead of "read only". I can't believe all the stress and time that little lost space caused me ROFL... :lol:
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: Cannot write to disk

Postby debiman » 2017-10-28 07:53

^ how goes the saying?
"computers never do what you want, only what was implemented."
User avatar
debiman
 
Posts: 1545
Joined: 2013-03-12 07:18

Re: Cannot write to disk

Postby Soapm » 2017-10-29 04:07

debiman wrote:^ how goes the saying?
"computers never do what you want, only what was implemented."


So true, so true. What I need is one that does what I mean and not what I tell it.
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23


Return to Beginners Questions

Who is online

Users browsing this forum: mindflow and 6 guests

fashionable