You are not logged in.

#1 2013-12-19 19:14:28

mibadt
Member
Registered: 2009-09-25
Posts: 396

Arch: Why can't I write into a partition

Hi,
I'm on  a fresh installed Arch-X86-64/KDE.
I've a backup partition, yet can't (as usual user named miki) write to that partition (details  below).
Secondary issue (in KDE's terminal): Why does the system add the  'â' )see below), and do I fix this?

Thanks up front!

The error I get (and the â)

miki ~ $ cp ~/MUshlam.pdf  /lin_back/
cp: cannot create regular file â/lin_back/MUshlam.pdfâ: Permission denied

permissions

miki ~ $ whoami
miki
miki ~ $ stat -c %A  /lin_back/
drwxr-xr-x
miki ~ $ stat -c %A  /home/miki/
drwx------

my fstab

$ cat /etc/fstab
# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sdb2 LABEL=Root
UUID=6ee857d9-95d1-47c4-ad47-18b979f49e74       /               ext4            rw,relatime,data=ordered        0 1

# /dev/sda2
UUID=76af1051-313e-4736-a61c-7c6c8dbaf6ba       /boot           ext4            rw,relatime,data=ordered        0 2

# /dev/sdb3 LABEL=Var
UUID=f3d0d861-1faf-4f69-8aae-81c2974b15c1       /var            ext4            rw,relatime,data=ordered        0 2

# /dev/sda3 LABEL=HOME
UUID=9d6eb8a2-be83-477b-976e-e6d1ad560f8d       /home           ext4            rw,relatime,data=ordered        0 2

# /dev/sdb4 LABEL=Lin_Back
UUID=2cb4235e-d0e5-4df1-b665-ed9f7a9c91c4       /lin_back       xfs             rw,relatime,attr2,inode64,noquota       0 2

# /dev/sdb5 LABEL=Images
UUID=ae89a70f-5102-41ee-8ff8-49f1f85a1675       /images         xfs             rw,relatime,attr2,inode64,noquota       0 2

# /dev/sdb6
UUID=9f259b5f-dd18-4fdf-becf-3e62086bc059       none            swap            defaults        0 0

# /dev/sda1
UUID=67AD726A113E664B                           /windows        ntfs-3g         defaults        0 0

# /dev/sdc8
UUID=24B39CB761075197                           /photos         ntfs-3g         defaults        0 0

# /dev/sdb3
#UUID=71AF0020700759D6                          /oldphotos      ntfs-3g         defaults        0 0

Best regards,
Michael Badt

Offline

#2 2013-12-19 19:22:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Arch: Why can't I write into a partition

'â' should be double quotes.
What's the output of 'locale', locale -a' and 'localectl'?
If you got that in tty (outside of X), what's the output of 'cat /etc/vconsole.conf'?


Can you copy if you use sudo / su?

$ stat -c %A /media/usb/
drwxr-xr-x
$ cp shot0100.jpg /media/usb/
cp: cannot create regular file ‘/media/usb/shot0100.jpg’: Permission denied
$ sudo cp shot0100.jpg /media/usb/
$

Last edited by karol (2013-12-19 19:24:32)

Offline

#3 2013-12-19 19:24:23

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Arch: Why can't I write into a partition

You've shown permissions, but ownership is also relevant.

Regarding the 'â', all I can tell you is that it is supposed to be a quote of some sort

$ cp ~/.vimrc /mnt
cp: cannot create regular file ‘/mnt/.vimrc’: Permission denied

though you probably already know this.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2013-12-19 19:47:10

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: Arch: Why can't I write into a partition

Thanks Karol and alphaniner.
Indeed /lin_back is owned by root.
I've got all those messages using KDE's terminal (not in tty).
Here's the output of the locale (3 variations):

# locale
LANG=C
LC_CTYPE=en_US.utf8
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE=C
LC_MONETARY="C"
LC_MESSAGES=en_US.utf8
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=


[root@miki_desk /]# locale -a
C
POSIX
en_US.utf8
he_IL.utf8


[root@miki_desk /]# localectl
   System Locale: n/a

       VC Keymap: n/a
      X11 Layout: n/a

How do I proceed with the fonts?

Thanks


Best regards,
Michael Badt

Offline

#5 2013-12-19 19:48:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Arch: Why can't I write into a partition

Use utf locale settings, not plain C.
https://wiki.archlinux.org/index.php/Lo … ystem-wide

Last edited by karol (2013-12-19 19:50:00)

Offline

#6 2013-12-20 03:38:36

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: Arch: Why can't I write into a partition

Thanks a lot Karol.
I'll try once I return to my computer


Best regards,
Michael Badt

Offline

#7 2013-12-20 03:58:04

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: Arch: Why can't I write into a partition

Thanks again Karol. Font problem -solved!
The main permission issue-still not (can it be related to the fact that the target partition uses xfs FS?).


Best regards,
Michael Badt

Offline

#8 2013-12-20 04:01:19

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Arch: Why can't I write into a partition

It is owned by root. So you cannot write to it as yourself. Either you need to do the backup with root privileges or you need to change the mount options so that your user can write there. Or you could create a sub-directory and give yourself permission to write there. But you can't write to a directory with rwxr-x-r-x permissions unless you are the owner.

You should read https://wiki.archlinux.org/index.php/Permissions.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-12-20 04:07:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Arch: Why can't I write into a partition

xfs is a linux filesystem, so it respects ownership etc.
What's the output of

stat -c "%U %G" /lin_back

?

It should be something like

miki users

if you want to be able to write there as a regular user.
If it says 'root' and not 'miki', follow cfr's advice.

Offline

#10 2013-12-20 04:19:48

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Arch: Why can't I write into a partition

mibadt wrote:

Indeed /lin_back is owned by root.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB