Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Cannot write to disk

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
Soapm
Posts: 602
Joined: 2012-05-22 04:23
Has thanked: 1 time

Cannot write to disk

#1 Post by Soapm »

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.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Cannot write to disk

#2 Post by p.H »

Please post the output of

Code: Select all

ls -ld /video
and check the permissions on the filesystem root.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Cannot write to disk

#3 Post by debiman »

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
Soapm
Posts: 602
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Cannot write to disk

#4 Post by Soapm »

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
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Cannot write to disk

#5 Post by debiman »

strange.
and now

Code: Select all

cd /video
ls -al
please.

User avatar
Soapm
Posts: 602
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Cannot write to disk

#6 Post by Soapm »

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: 602
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Cannot write to disk

#7 Post by Soapm »

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
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot write to disk

#8 Post by GarryRicketson »

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----

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Cannot write to disk

#9 Post by debiman »

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
Soapm
Posts: 602
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Cannot write to disk

#10 Post by Soapm »

Edited instead of quotes...
Last edited by Soapm on 2017-10-26 05:38, edited 2 times in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Cannot write to disk

#11 Post by p.H »

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.

User avatar
Soapm
Posts: 602
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Cannot write to disk

#12 Post by Soapm »

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
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Cannot write to disk

#13 Post by debiman »

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

User avatar
Soapm
Posts: 602
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Cannot write to disk

#14 Post by Soapm »

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.

Post Reply