SD card hasn't cut option

On my son’s pc with opensuse 13.1 and kde 4.11.5 when he insert an SD card (used in a camera and formatted FAT32) it is mounted in /var/run/media/username/SDcardname when rightclick on a file the cut option is greyed and doesnt works.
The same SDcard inserted on my pc with opensuse 13.1 and kde 4.14.1 the cut option works.
-the card isn’t locked
-the card is mounted in the same path
-the SDcard has been formatted with windows and it happens again
How can I get the SDcard mounted with the working cut option in my son’s pc???

Maybe it is be mounted read only. Sounds like it. do a mount command and see what is what

yes could be, but in the other pc it isn’t, so I would like to know where this setting could be found in order to modify the behaviour of the pc that mount readonly like the pc that mount read and write.
if I do a mount command (I don’t know how to do it with sdcard… mount /dev/sda /mnt/media… which /dev is my sdcard?) I think sdcard can be mounted read and write but I don’t solve the automatic mount… :slight_smile: :slight_smile:

On 2014-10-18 19:26, pier andreit wrote:
>
> gogalthorp;2670105 Wrote:
>> Maybe it is be mounted read only. Sounds like it. do a mount command and
>> see what is what
> yes could be, but in the other pc it isn’t,

He is asking you to find out for sure. Just issue “mount” with no
options in the problematic machine and find out.

Solving will come later, when the problem and cause are found.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

User gogalthorp meant for you to exectute

mount

in both systems to compare any differences with the way KDE/udisks2 mounted the media.

For example, I get the following with my camera SD card (openSUSE 13.1, KDE 4.14.1)

/dev/sdb1 on /run/media/dean/CANON_DC type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/sdb1 on /var/run/media/dean/CANON_DC type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro)

…:)many thanks and sorry my mistake…:slight_smile: I havent both machines in my hand now, as soon I’ll have I’ll post …:slight_smile:

hallo again, :slight_smile: I made the following try:

–I tried with two sd cards to be sure it do not depend on a specific sd card
–the lock notches on both the sd cards are blocked with adhesive tape.
–I tried on two machines, the working one (pla) an the not working one (eros)
–sometimes the not working machine (eros) works…
–working means that the cut option is present in the context menu
–NOT working means that the cut option is greyed in the context menu

this is the mount output on the working machine(pla):
using KODAK sd card the cut option works

pla@suseST-pla:~> mount
...cut...
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/mmcblk0p1 on /run/media/pla/KODAK type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/mmcblk0p1 on /var/run/media/pla/KODAK type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro)
pla@suseST-pla:~> 

tried with the second sd card
using FOTOEROS sd card the cut option works

pla@suseST-pla:~> mount
...
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/mmcblk0p1 on /run/media/pla/FOTOEROS type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/mmcblk0p1 on /var/run/media/pla/FOTOEROS type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro)
pla@suseST-pla:~> 

this is the mount output on the NOT working machine(eros):
using KODAK sd card the cut option DO NOT works

eros@linux-eros1:~> mount
....cut
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/mmcblk0p1 on /run/media/eros/KODAK type vfat (ro,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/mmcblk0p1 on /var/run/media/eros/KODAK type vfat (ro,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro)
eros@linux-eros1:~> 

tried with the second sd car
using FOTOEROS sd card the cut option DO NOT works

eros@linux-eros1:~> mount
.....cut
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/mmcblk0p1 on /run/media/eros/FOTOEROS type vfat (ro,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/mmcblk0p1 on /var/run/media/eros/FOTOEROS type vfat (ro,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro)
eros@linux-eros1:~> 

SOMETIMES IT WORKS ON THE NOT WORKING MACHINE(eros) !!!
this is the mount output on the NOT (now working) working machine(eros):
using FOTOEROS sd card the cut option works

eros@linux-eros1:~> mount
....cut
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/mmcblk0p1 on /run/media/eros/FOTOEROS type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/mmcblk0p1 on /var/run/media/eros/FOTOEROS type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro)
eros@linux-eros1:~> 

I can see that when it works the sd card is mounted with rw option but I don’t know why it happens casually in the not working machine

many thanks for any help…
ciao :slight_smile: pier :slight_smile:

Where there is the ro option mentioned (instead of rw), you have the problem .

You could check the end of

dmesg

immediatly after the inserting, to see what messages are loged during the mount. It probably will tell you it is mounted read-only because of problems.

This problem mostly arrises when the file ystem is not properly shut down on a windoiwindos system (e/g/ when removed after hibernate instead of shutdown). Using it on a windows system and then either properly shutdown or Remoce Sabely, should repair it.

here is:
this is the dmesg output on the working machine(pla):
using KODAK sd card the cut option works

[45005.065042] mmc0: new SD card at address aaaa
[45005.065679] mmcblk0: mmc0:aaaa SD02G 1.84 GiB 
[45005.067628]  mmcblk0: p1
[45005.158105] mmcblk0: error -110 transferring data, sector 3862264, nr 8, cmd response 0x900, card status 0x80000b00
[45005.158111] mmcblk0: retrying using single block read
[45005.457349] mmcblk0: error -110 transferring data, sector 3862267, nr 8, cmd response 0x900, card status 0x80000b00
[45005.457360] mmcblk0: retrying using single block read
[45059.725757] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[45103.494848] type=1400 audit(1414854901.980:100): apparmor="DENIED" operation="change_hat" info="unconfined" error=-1 pid=15822 comm="cron"
[45119.198477] SFW2-INext-ACC-TCP IN=em1 OUT= MAC=00:26:b9:d4:11:15:e0:cb:4e:ab:c5:e4:08:00 SRC=192.168.1.2 DST=192.168.1.81 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=14363 DF PROTO=TCP SPT=36311 DPT=1714 WINDOW=14600 RES=0x00 SYN URGP=0 OPT (020405B40402080A19F1D25F0000000001030307) 
pla@suseST-pla:~> 

this is the dmesg output on the NOT working machine(eros):
using KODAK sd card the cut option DO NOT works

 5410.305722] mmc0: new SD card at address aaaa
 5410.381922] mmcblk0: mmc0:aaaa SD02G 1.84 GiB (ro)
 5410.383685]  mmcblk0: p1
eros@linux-eros1:~> 

using KODAK sd card the cut option DID NOT work the first time, then the sdcard has been removed and reinserted and the cut option WORKED!!

 5539.691442] mmc0: card aaaa removed
[13129.895625] mmc0: new SD card at address aaaa
[13129.895909] mmcblk0: mmc0:aaaa SD02G 1.84 GiB (ro)
[13129.897678]  mmcblk0: p1
[13168.375297] mmc0: card aaaa removed
[13173.886943] mmc0: new SD card at address aaaa
[13173.887115] mmcblk0: mmc0:aaaa SD02G 1.84 GiB 
[13173.889604]  mmcblk0: p1
[13196.209179] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
eros@linux-eros1:~> 


yes, but why the very same sdcard on one machine works and on the other not???

many thanks, :slight_smile: , ciao, pier :slight_smile:

using KODAK sd card the cut option DID NOT work the first time, then the sdcard has been removed and reinserted and the cut option WORKED!!

 5539.691442] mmc0: card aaaa removed
[13129.895625] mmc0: new SD card at address aaaa
[13129.895909] mmcblk0: mmc0:aaaa SD02G 1.84 GiB (ro)
[13129.897678]  mmcblk0: p1
[13168.375297] mmc0: card aaaa removed
[13173.886943] mmc0: new SD card at address aaaa
[13173.887115] mmcblk0: mmc0:aaaa SD02G 1.84 GiB 
[13173.889604]  mmcblk0: p1
[13196.209179] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
eros@linux-eros1:~> 
unmount /dev/mmcblk0p1
dosfsck -a -w -v /dev/mmcblk0p1

When finished re-insert the device, and see if it now gets mounted rw.

yes, but why the very same sdcard on one machine works and on the other not???

many thanks, :slight_smile: , ciao, pier :slight_smile:

It does appear to be a strange issue, but the meesage ‘FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.’ could be indicitive of a problem that needs correcting. (I have no idea why the the other machine does not report the same.) Anyway, you could try

umount /dev/mmcblk0p1
dosfsck -a -w -v /dev/mmcblk0p1

then re-insert your device and see if gets mounted rw.

On 2014-11-01 18:56, pier andreit wrote:

> here is:
> this is the dmesg output on the working machine(pla):
> using KODAK sd card the cut option works
>
> Code:
> --------------------
> [45005.065042] mmc0: new SD card at address aaaa
> [45005.065679] mmcblk0: mmc0:aaaa SD02G 1.84 GiB
> [45005.067628] mmcblk0: p1
> [45005.158105] mmcblk0: error -110 transferring data, sector 3862264, nr 8, cmd response 0x900, card status 0x80000b00
> [45005.158111] mmcblk0: retrying using single block read
> [45005.457349] mmcblk0: error -110 transferring data, sector 3862267, nr 8, cmd response 0x900, card status 0x80000b00
> [45005.457360] mmcblk0: retrying using single block read
> [45059.725757] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
> [45103.494848] type=1400 audit(1414854901.980:100): apparmor=“DENIED” operation=“change_hat” info=“unconfined” error=-1 pid=15822 comm=“cron”
> pla@suseST-pla:~>
>
> --------------------

There are I/O errors in there, and it recommends running fsck on it.

Do you safely umount before placing the card on the second machine?

> using KODAK sd card the cut option DID NOT work the first time, then the
> sdcard has been removed and reinserted and the cut option WORKED!!
>
> Code:
> --------------------
> [13196.209179] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
> eros@linux-eros1:~>
> --------------------

So do it… both machines tell you the same. fsck!


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

done with superuser

linux-eros1:/home/eros # umount /dev/mmcblk0p1
umount: /dev/mmcblk0p1: not mounted
linux-eros1:/home/eros # dosfsck -a -w -v /dev/mmcblk0p1
fsck.fat 3.0.22 (2013-07-19)
fsck.fat 3.0.22 (2013-07-19)
open: File system in sola lettura>>>this means read only file system
linux-eros1:/home/eros # 
 

but after this the re-inserted sdcard is mounted ro

manythanks, :slight_smile: ciao :slight_smile: pier