I can't paste files into some external drives

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

I can't paste files into some external drives

Postby hmslima » Mar 15th, '17, 20:38

I am not able to paste files into some external drives here - more precisely my Samsung cell phone and an USB stick that I use for installing Mageia. But I can do this task in others USB sticks without problems.

The bizarre thing is that I can create a folder and a .txt file in the HD of my cell phone and edit it, but I can't paste a .pdf file into it. The file manager says that I have permission to read and write in this drive.

In the USB stick, which I use for installing Mageia, I can't even create a folder. The permission of this drive is as "only reading", I tried to change the permissions through a file manager (obviously that I opened the program in root mode), but I hadn't success.

Code: Select all
# fdisk -l
[...]
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *           63  83971754  83971692    40G  7 HPFS/NTFS/exFAT
/dev/sda2        83971816 488396799 404424984 192,9G  f W95 Ext'd (LBA)
/dev/sda5        83971818 429674942 345703125 164,9G  7 HPFS/NTFS/exFAT
/dev/sda6       429676544 478502715  48826172  23,3G 83 Linux
/dev/sda7       478504960 482408447   3903488   1,9G 82 Linux swap / Solaris
/dev/sda8       482410496 488396799   5986304   2,9G 83 Linux

Disco /dev/sdb: 1,9 GiB, 1990197248 bytes, 3887104 setores
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes
Tipo de rótulo do disco: dos
Identificador do disco: 0x00000000

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1         131 3887103 3886973  1,9G  6 FAT16

Disco /dev/sdc: 7,2 GiB, 7748222976 bytes, 15133248 setores
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes
Tipo de rótulo do disco: dos
Identificador do disco: 0x3983f878


The Disco /dev/sdb: 1,9 GiB, 1990197248 bytes, 3887104 setores is the cell phone; pySDM says that its type is msdos
The Disco /dev/sdc: 7,2 GiB, 7748222976 bytes, 15133248 setores is the USB stick I use for installing Mageia; pySDM says that sdc1 (mounted) type is dos and sdc2 (unmounted) is vfat

I had to access the Windows system, which I have installed in my computer alongside Mageia, to paste the file in these external drivers. But I would like to do this kind of task in GNU/Linux.
Kamo bleigu aghyerns, dengu middiens, windic posmiddiens ed starwent nocts
User avatar
hmslima
 
Posts: 27
Joined: Dec 30th, '16, 01:57
Location: Bahia - Brazil

Re: I can't paste files into some external drives

Postby doktor5000 » Mar 15th, '17, 22:38

The partition table is not really relevant regarding filesystem permission. It would help if you could paste the output of
Code: Select all
mount

and
Code: Select all
ls -al
on the respective mountpoints
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: I can't paste files into some external drives

Postby hmslima » Mar 20th, '17, 01:13

doktor5000 wrote:The partition table is not really relevant regarding filesystem permission. It would help if you could paste the output of
Code: Select all
mount


Code: Select all
# mount
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=1881208k,nr_inodes=470302,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
/dev/sda6 on / type ext4 (rw,noatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /tmp type tmpfs (rw)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime,mode=755)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/sda1 on /media/win_c type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
/dev/sda8 on /home type ext4 (rw,noatime,data=ordered)
/dev/sda5 on /media/win_d type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=377424k,mode=700,uid=1000,gid=1000)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/sdb1 on /run/media/hmslima/64F8-942F type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/sdc1 on /run/media/hmslima/Mageia-5.1-x86_64 type iso9660 (ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2)


doktor5000 wrote:and
Code: Select all
ls -al
on the respective mountpoints


Cellphone
# ls -al
total 288
drwx------ 9 hmslima hmslima 16384 Dez 31 1969 ./
drwxr-x---+ 4 root root 80 Mar 19 20:06 ../
drwx------ 2 hmslima hmslima 32768 Mar 15 15:25 DOCUMENTOS/
-rw-r--r-- 1 hmslima hmslima 135 Set 21 2015 help.txt
drwx------ 4 hmslima hmslima 32768 Nov 17 20:21 Images/
drwx------ 3 hmslima hmslima 32768 Out 30 12:04 Others/
drwx------ 3 hmslima hmslima 32768 Jan 1 1980 Sounds/
drwx------ 2 hmslima hmslima 32768 Out 24 22:44 System Volume Information/
drwx------ 4 hmslima hmslima 32768 Nov 17 20:20 .Trash-500/
drwx------ 2 hmslima hmslima 32768 Nov 17 20:22 Videos/


USB disk of 8GB that I use to install GNU/Linux
Code: Select all
# ls -al
total 21
dr-xr-xr-x  1 hmslima hmslima  2048 Nov 17 17:54 ./
drwxr-x---+ 4 root    root       80 Mar 19 20:06 ../
-r--r--r--  1 hmslima hmslima    80 Mai 27  2011 autorun.inf
-r--r--r--  1 hmslima hmslima  2048 Nov 22 10:37 boot.catalog
dr-xr-xr-x  1 hmslima hmslima  2048 Mai 27  2011 dosutils/
dr-xr-xr-x  1 hmslima hmslima  2048 Jan 29  2015 EFI/
dr-xr-xr-x  1 hmslima hmslima 10240 Jul  8  2016 isolinux/
dr-xr-xr-x  1 hmslima hmslima  2048 Nov 22 08:23 x86_64/


EDIT: I maked a confusion with the names and used "cellphone" instead "USB stick" and vice versa, but I've already corrected it.
Last edited by hmslima on Mar 26th, '17, 22:22, edited 1 time in total.
Kamo bleigu aghyerns, dengu middiens, windic posmiddiens ed starwent nocts
User avatar
hmslima
 
Posts: 27
Joined: Dec 30th, '16, 01:57
Location: Bahia - Brazil

Re: I can't paste files into some external drives

Postby doktor5000 » Mar 20th, '17, 20:15

What you listed as your cellphone is a mounted Mageia 5.1 ISO image, which is obviously readonly so it's normal that you cannot write anything there
/dev/sdc1 on /run/media/hmslima/Mageia-5.1-x86_64 type iso9660 (ro


For the USB disk, can you show the output of any regular cp command that fails? The mount options and permissions look OK, only thing that I could imagine is if there are any filesystem errors, linux would ignore those and remount it read-only, whereas Windows would usually notice you when you plugin that disk, that a filesystem check needs to be run on that disk.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: I can't paste files into some external drives

Postby hmslima » Mar 25th, '17, 01:53

doktor5000 wrote:What you listed as your cellphone is a mounted Mageia 5.1 ISO image, which is obviously readonly so it's normal that you cannot write anything there


Oh, I am sorry. What I marked as "UBS stick of 2GB" is my cellphone of 2GB and what I marked as "Cellphone" is my 8GB USB stick.
Using the cellphone now I see that I can paste files into it, I don't know what happened before. Maybe a problem with the pdf I was trying to paste, although that file was OK and I could open it? Well, I can paste files into de cellphone now, there is only the problem with the USB stick.

doktor5000 wrote:For the USB disk, can you show the output of any regular cp command that fails?


About the 8GB USB stick, which I use to install Linux, when I use the cd command happens nothing beyond the expected. Which command I use to unblock this USB stick?
Kamo bleigu aghyerns, dengu middiens, windic posmiddiens ed starwent nocts
User avatar
hmslima
 
Posts: 27
Joined: Dec 30th, '16, 01:57
Location: Bahia - Brazil

Re: I can't paste files into some external drives

Postby Ken-Bergen » Mar 25th, '17, 06:05

The 1.9GB partition for the Live image is full as expected.
Create another partition on the unused space.
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: I can't paste files into some external drives

Postby hmslima » Mar 26th, '17, 22:19

Ken-Bergen wrote:The 1.9GB partition for the Live image is full as expected.
Create another partition on the unused space.

I made a mistake in may penultimate post, the 1,9GB external drive is from my cellphone, which is working well now, only have 1,9GB of space. The USB stick that I use for installing GNU/Linux has 8GB of space I would like to paste files into this USB stick.
Kamo bleigu aghyerns, dengu middiens, windic posmiddiens ed starwent nocts
User avatar
hmslima
 
Posts: 27
Joined: Dec 30th, '16, 01:57
Location: Bahia - Brazil

Re: I can't paste files into some external drives

Postby Ken-Bergen » Mar 27th, '17, 00:06

I just looked at an 8G stick with Mageia-5.1-x86_64-DVD on it and I can't see any way to use it without reformatting.
Code: Select all
[ken2@localhost ~]$ df
Filesystem      Size  Used Avail Use% Mounted on                                                                                                             
.......                                                                                                       
/dev/sdb1       3.7G  3.7G     0 100% /run/media/ken2/Mageia-5-x86_64                                                                                       
[ken2@localhost ~]$
says it's full

and gparted
gparted-usb-install.jpeg
gparted-usb-install.jpeg (44.34 KiB) Viewed 1122 times
says there is nowhere to create a partition without making it unusable as install media.
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: I can't paste files into some external drives

Postby hmslima » Mar 27th, '17, 00:27

Ken-Bergen wrote:I just looked at an 8G stick with Mageia-5.1-x86_64-DVD on it and I can't see any way to use it without reformatting.
Code: Select all
[ken2@localhost ~]$ df
Filesystem      Size  Used Avail Use% Mounted on                                                                                                             
.......                                                                                                       
/dev/sdb1       3.7G  3.7G     0 100% /run/media/ken2/Mageia-5-x86_64                                                                                       
[ken2@localhost ~]$
says it's full

and gparted
gparted-usb-install.jpeg
says there is nowhere to create a partition without making it unusable as install media.


Indeed my GParted shows the very same result, but in Windows XP I can paste files into the USB stick without any problem. I don't know what to think.

For now I am with a GNU/Linux traditional installer in this USB stick, but often I use it as a liveUSB in case of an emergency and I use this USB stick to carry some documents. I know that I may have a security issue in using a LiveUSB as ordinary USB stick too, but actually when I go to install a distro, I record a new distro into the USB stick.
Last edited by hmslima on Mar 27th, '17, 00:40, edited 3 times in total.
Kamo bleigu aghyerns, dengu middiens, windic posmiddiens ed starwent nocts
User avatar
hmslima
 
Posts: 27
Joined: Dec 30th, '16, 01:57
Location: Bahia - Brazil

Re: I can't paste files into some external drives

Postby Ken-Bergen » Mar 27th, '17, 00:37

Post the output of
Code: Select all
df
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: I can't paste files into some external drives

Postby benmc » Mar 27th, '17, 02:10

hmslima wrote: an USB stick that I use for installing Mageia.

Ken-Bergen wrote:I just looked at an 8G stick with Mageia-5.1-x86_64-DVD on it and I can't see any way to use it without reformatting.

correct.

If a utility such as isodumper has written the device as a bootable device, the partition table has been written such that no further, i.e. the un-allocated, space is available.
i.e: you would not want to inadvertently install your new system onto your installer medium.
benmc
 
Posts: 1214
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: I can't paste files into some external drives

Postby hmslima » Mar 28th, '17, 02:57

When I opened this USB stick in the Windows system I've noticed that indeed a big amount of space is unavailable, as it was said in Linux, but still there are some space that allows me to paste some very small documents. As I only paste small files in this USB stick, I didn't pay attention to the available space before.

Ken-Bergen wrote:Post the output of
Code: Select all
df


Code: Select all
$ df
Sist. Arq.      Tam. Usado Disp. Uso% Montado em
devtmpfs        1,8G     0  1,8G   0% /dev
tmpfs           1,8G  104K  1,8G   1% /dev/shm
tmpfs           1,8G  680K  1,8G   1% /run
/dev/sda6        23G   15G  7,1G  68% /
tmpfs           1,8G     0  1,8G   0% /sys/fs/cgroup
tmpfs           1,8G  1,4M  1,8G   1% /tmp
/dev/sda1        41G   16G   25G  39% /media/win_c
/dev/sda5       165G  131G   35G  80% /media/win_d
/dev/sda8       2,8G  1,8G  981M  65% /home                                                                                                                 
tmpfs           369M   12K  369M   1% /run/user/1000                                                                                                         
/dev/sdb1       3,7G  3,7G     0 100% /run/media/hmslima/Mageia-5.1-x86_64


Sist. Arq. = File system
Tam. = length
Usado = used
Uso% = use
Montado em = mounted in
Kamo bleigu aghyerns, dengu middiens, windic posmiddiens ed starwent nocts
User avatar
hmslima
 
Posts: 27
Joined: Dec 30th, '16, 01:57
Location: Bahia - Brazil


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron