problem deleting images (Solved)

Hi All,
Just lately I have been getting a problem trying to delete images from my camera.
Normally I insert the card into the slot on my computer and it is recognised and asks if I want to open gThumb Import Photo Tool. I click on that and it opens a page with the photos on it, and asks if I want to download. I accept that and tick the ‘Delete files from source’ box.
This is where it goes wrong, it now says ‘Could not perform the operation. error removing file : Read only filesystem’.
Anyone experienced this ? any clues to what has gone wrong ?
I also find that when I try to format the card it comes up with a page to format a USB stick with the ‘Format’ greyed out

Is the switch on the side of the SDcard set to “locked”, or broken ?

Hi Mark,
The camera is a Canon Ixus 145 and some months ago I fiddled with the settings to get better pictures of my pens, close ups etc.
I have 2 SD cards and they are both unlocked and both show the same problem.
I can put the card back in the camera and erase the pics so it is all right there.

Hi, Don.

I had a similar problem. My solution was (with the card in the PC):

[ol]- Highlight the photos to be deleted

  • Press Shift+Delete [/ol]

Although I use this method all the time it might not be right for you - do let us know if it works.

Keith

Thanks Keith,
I tried that but I don’t get the option to Delete. When I highlight the photos the option is greyed out.

Don W

If you right click on a photo, select Properties and then Permissions, does that give a clue?
Alternatively, a long-winded way of deleting might be via the Terminal. You can find the device name by typing df at the prompt then navigating to the file.

Hi Keith,
In Properties it has, Owner Access Read and Write, Group Access Read Only, Others Access Read Only ??

Yes, so does mine, but I can delete files.
Have you tried deleting via the terminal?

Keith

Keith,
I can put the card back in the camera and delete the images. I don’t have a problem with that.
My problem is with gThumb (I think). I put the SD card into the computer and gThumb opens and asks if I want to import images, I select Yes and open gThumb, it then asks if I want to delete files from source,I select yes and it starts to import the files. It only imports the first file and says there is a problem as the system is Read Only.
I can Copy the files to the computer and then Delete on the camera, but I used to use gThump to do it at the one setting. I don’t know what has happened, whether the problem is gThumb or the camera ?

Are you saying you cannot even delete a file via the file manager ?

if you plug in the SDcard, then run:

dmesg | tail -n 40

what’s the output ?

I suggest that you don’t use GThumb for just transferring photos - it’s useful but does have quirks.
It sounds like you have set gThumb as the default action. I suggest that you change this so that it asks you what action you want to perform. Then when you insert the card into the PC you are asked what application you want to use - choose “File” and the file manager will open with your card listed. You can then move & delete photos - this is the way I always deal with them.

When I tried Mark’s suggestion I had many lines of:
[16751.577506] FAT-fs (mmcblk0p1): Directory bread(block 187) failed
followed by:
WARNING!!! The filesystem is mounted. If you continue you WILL
cause SEVERE filesystem damage.

… but then I have been messing around with the card!

Keith

Copy the pics off via the file manager … and once you have them copied, try formatting the card.

Hi Mark
don@ldwatson ~ $ dmesg | tail -n 40
[ 1659.938352] wlan0: deauthenticated from 20:0c:c8:7d:08:18 (Reason: 6=CLASS2_FRAME_FROM_NONAUTH_STA)
[ 1659.961509] cfg80211: Calling CRDA to update world regulatory domain
[ 1659.965758] cfg80211: World regulatory domain updated:
[ 1659.965764] cfg80211: DFS Master region: unset
[ 1659.965766] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 1659.965770] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 1659.965773] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 1659.965775] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 1659.965778] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 1659.965780] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 1661.337572] wlan0: authenticate with 20:0c:c8:7d:08:18
[ 1661.363100] wlan0: send auth to 20:0c:c8:7d:08:18 (try 1/3)
[ 1661.365191] wlan0: authenticated
[ 1661.368672] wlan0: associate with 20:0c:c8:7d:08:18 (try 1/3)
[ 1661.372782] wlan0: RX AssocResp from 20:0c:c8:7d:08:18 (capab=0x411 status=0 aid=1)
[ 1661.372887] wlan0: associated
[ 1661.373509] cfg80211: Calling CRDA for country: GB
[ 1661.376750] cfg80211: Regulatory domain changed to country: GB
[ 1661.376755] cfg80211: DFS Master region: unset
[ 1661.376757] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 1661.376760] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 1661.376763] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 1661.376765] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm), (0 s)
[ 1661.376767] cfg80211: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm), (0 s)
[ 1661.376770] cfg80211: (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[ 1888.206103] mmc0: cannot verify signal voltage switch
[ 1888.318025] mmc0: new ultra high speed SDR104 SDHC card at address e624
[ 1888.349518] mmcblk0: mmc0:e624 SE16G 14.8 GiB (ro)
[ 1888.359063] mmcblk0: p1
[ 1923.663188] systemd-hostnamed[3062]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 1973.459037] mmc0: card e624 removed
[ 1985.512814] mmc0: cannot verify signal voltage switch
[ 1985.624952] mmc0: new ultra high speed SDR104 SDHC card at address e624
[ 1985.626894] mmcblk0: mmc0:e624 SE16G 14.8 GiB (ro)
[ 1985.636699] mmcblk0: p1
[ 2028.810325] mmc0: card e624 removed
[ 2146.772076] mmc0: cannot verify signal voltage switch
[ 2146.884363] mmc0: new ultra high speed SDR104 SDHC card at address e624
[ 2146.886336] mmcblk0: mmc0:e624 SE16G 14.8 GiB (ro)
[ 2146.897803] mmcblk0: p1

Hi Mark,
When I right click on the Canon_DC menu and select format, it shows a box that says USB Stick Formatter.
This box has nothing against Format: and it says FAT 32 in the next box, below that it says Volume Label : USB Stick with nothing in the next box and the OK box greyed out

SDcard is most likely screwed (or the lock is on), but try formatting it in GParted.

[EDIT]

In fact after reading the output above, I’m fairly certain the card is dead.

Hi Mark,
I have tried the other SD card with this result
don@ldwatson ~ $ dmesg | tail -n 40
[ 1661.376770] cfg80211: (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[ 1888.206103] mmc0: cannot verify signal voltage switch
[ 1888.318025] mmc0: new ultra high speed SDR104 SDHC card at address e624
[ 1888.349518] mmcblk0: mmc0:e624 SE16G 14.8 GiB (ro)
[ 1888.359063] mmcblk0: p1
[ 1923.663188] systemd-hostnamed[3062]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 1973.459037] mmc0: card e624 removed
[ 1985.512814] mmc0: cannot verify signal voltage switch
[ 1985.624952] mmc0: new ultra high speed SDR104 SDHC card at address e624
[ 1985.626894] mmcblk0: mmc0:e624 SE16G 14.8 GiB (ro)
[ 1985.636699] mmcblk0: p1
[ 2028.810325] mmc0: card e624 removed
[ 2146.772076] mmc0: cannot verify signal voltage switch
[ 2146.884363] mmc0: new ultra high speed SDR104 SDHC card at address e624
[ 2146.886336] mmcblk0: mmc0:e624 SE16G 14.8 GiB (ro)
[ 2146.897803] mmcblk0: p1
[ 2512.782385] systemd-hostnamed[3392]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 4412.769923] usb 2-1.1: new full-speed USB device number 5 using ehci-pci
[ 4412.865061] usb 2-1.1: New USB device found, idVendor=04b8, idProduct=0883
[ 4412.865072] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4412.865077] usb 2-1.1: Product: EPSON Epson Stylus SX130 Series
[ 4412.865082] usb 2-1.1: Manufacturer: EPSON
[ 4412.865086] usb 2-1.1: SerialNumber: NBLK286466
[ 4412.918764] WARNING! power/level is deprecated; use power/control instead
[ 4412.942993] usblp 2-1.1:1.1: usblp0: USB Bidirectional printer dev 5 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0883
[ 4412.943031] usbcore: registered new interface driver usblp
[ 4425.468108] usblp0: removed
[ 4438.723959] usblp 2-1.1:1.1: usblp0: USB Bidirectional printer dev 5 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0883
[ 4544.625809] usb 2-1.1: USB disconnect, device number 5
[ 4544.628288] usblp0: removed
[ 6104.730728] JFS: nTxBlock = 8192, nTxLock = 65536
[ 6231.112299] mmc0: card e624 removed
[ 6242.690165] mmc0: cannot verify signal voltage switch
[ 6242.801956] mmc0: new ultra high speed SDR104 SDHC card at address e624
[ 6242.803942] mmcblk0: mmc0:e624 SE16G 14.8 GiB (ro)
[ 6242.815456] mmcblk0: p1
[ 6488.086559] mmc0: card e624 removed
[ 6591.428698] mmc0: new SD card at address aaaa
[ 6591.431002] mmcblk0: mmc0:aaaa SD02G 1.84 GiB
[ 6591.433661] mmcblk0: p1

I have taken a couple of pictures and they have been imported onto the computer as usual via gThumb and deleted via gThumb.
The only difference I can see between the two cards is the first one is formatted FAT 32 (16 Gb) and the second card is FAT 16 (2Gb) but the second one is working ok. In GParted it says the first card is opened Read Only ?

I took some more pictures on this card today and imported them and deleted them via gThumb. This card is working ok

Good result!

Mark: I’ve never had a card die, or even heard of it happening - is it common?

Oh christ yeah, SDcards are generally very short lived (relatively speaking, and depending on use and quality) for a number of reasons

  1. like pretty much ANY solid state flash memory they have a limited amount of write/erase cycles

  2. SDcards are usually very low quality flash memory … in fact half of the logic gates on the wafer may already be dead before they even start chopping it into SDcards

  3. The onboard controllers are also cheap as chips rubbish … a penny or two a piece, so quality control isn’t exactly a priority.

  4. They’re easily physically damaged

ALL of them will die, it’s just a matter of how soon … but none will last very long.

Thanks for the explanation Mark. The card still stores any pictures I take but it is just a hassle having to ‘Copy’ to the computer and then inserting the card back into the camera to ‘Delete’ them, instead of doing it in one operation.
I will get a new card before the holidays.

take care
Don W