My camera says an empty memory stick is full

An odd thing happened to me today, my camera was saying my 1GB memory stick was full, but I had only a few dozens of pictures on it. The solution did not occur to me right away so I thought I would bring it up here.

My first reaction was rather Pavlovian, I must admit. Disk full? Alright, I'll delete some files! but clearly, there was no way my few pictures were responsible for the loss of a full giga of disk space :) I then took a more rationale approach of looking at the memory stick info as shown on a Mac (Cmd-I).

Could it be that sectors of the fash memory had gone bad and been disabled? --I do not even know whether this makes any sense but I did ask myself that question. Apparently not, my GB of disk space is there and used by 914MB of stuff. Could it be that I copied data onto the stick without knowing/remembering it? Apparently not, when I open the memory stick inside Apple Finder, all the directories (root, DCIM and MISC) are empty. There's gotta be hidden files! I'm thinking. Since I cannot find some "show hidden files" check-box in the Finder's Properties (Cmd-,), I quickly open a Terminal and cd to the memory stick volume.

It turns out my Mac had been moving to a local trash directory all of the picture files I had copied away and/or deleted (Cmd-Backspace) ever since I switch from a Windows to an Apple laptop. On Windows, the behavior is that files (on removable media) are deleted permanently. I learned today this is not the case on a Mac.

$ cd /Volumes/CYBERSHOT/
$ ls -la
total 384
drwxrwxrwx   1 user      group  16384 Sep 18 18:43 .
drwxrwxrwt@ 11 root      admin    374 Sep 18 18:42 ..
drwxrwxrwx@  1 user      group  32768 Jun 15  2008 .Trashes
-rwxrwxrwx   1 user      group   4096 Jun 15  2008 ._.Trashes
drwxrwxrwx   1 user      group  32768 Sep 18 18:43 .fseventsd
drwxrwxrwx   1 user      group  32768 Jul  2  2006 DCIM
-rwxrwxrwx   1 user      group      0 Jan  1  1970 MEMSTICK.IND
drwxrwxrwx   1 user      group  32768 Jul  2  2006 MISC
-rwxrwxrwx   1 user      group      0 Jan  1  1970 MSTK_PRO.IND
$ du -ks .Trashes
913964  .Trashes
$ rm -r .Trashes


Comments:

This info is Golden! Thank You!!!

Posted by urbnbeutee on September 28, 2009 at 05:51 PM CEST #

Wait, so how did you fix it?

Posted by Meli on January 03, 2010 at 12:02 PM CET #

(rm -r /Volumes/CYBERSHOT/.Trashes) "fixed" it for me. Of course you would need to periodically issue that command. I haven't researched a way for MacOS not to create that trash directory --I didn't think I would need to issue the command above more than once a year-- but maybe the old Unix trick of creating a file with the same name (.Trashes) may work. HTH, Frederic.

Posted by Frederic Pariente on January 04, 2010 at 08:41 AM CET #

Thank you SO much for posting this... I've been perplexed as to how my 1GB Sony memory stick could be full... I had the same reaction, and I was able to fix it on my Macbook. Thanks for the tip - now I'm set!

Posted by Taylor on January 31, 2010 at 04:08 PM CET #

Hey guys this is very helpful but I can't find what you are talking about, I have a Nikon D200 do you have any idea about it?
Thanks

Posted by Poly on February 10, 2010 at 01:17 PM CET #

The CYBERSHOT name must be Sony-specific. What directories do you see under /Volumes? (when your camera is connected to the computer, of course) One of them is the directory where you will find the .Trashes directory to delete. HTH, Frederic.

Posted by Frederic Pariente on February 10, 2010 at 01:28 PM CET #

I still couldn't figure out how to wipe my memory clean using the command posted above, but I found another website that explains how to completely erase your memory: http://www.digicamhelp.com/accessories/memory-cards/erasing-and-formatting-a-memory-card/.

Basically, the website states that you need to go to the Menu of your camera and select "Format" command in your camera's setup. (You should perform this with your camera unplugged from any computer or operating system.) The default on your camera may be to have the formatting off, so select "ok" next to the "Format" option. A message will pop up reading: "All data in internal memory will be erased. Ready?" This means that even protected files will be deleted and your memory stick will be restored to its original state. If you select ok, then you've officially cleaned your memory card!

If you cannot find the "Format" option in your camera, locate your camera's User's Guide or look for the User's Guide online. \*\*My camera is a Sony Cybershot and I have a SanDisk Memory Stick Pro Duo, so the terminology may differ from camera to camera.\*\* Let me know if you have any other questions.

Posted by Beamy on March 11, 2010 at 01:05 AM CET #

Amazing. I was getting very annoyed by this problem, thank you so much for posting

Posted by Lirzy on April 10, 2010 at 12:58 PM CEST #

Beamy thank you so much could not have been any easier

Posted by tanny on April 16, 2010 at 04:34 AM CEST #

Thank You SO much!!! You are a lifesaver!

Posted by BB on July 29, 2010 at 02:36 PM CEST #

Thank you so much!

Posted by Jamie on March 25, 2011 at 04:10 AM CET #

I'm sorry I feel so ignorant, but I have a mac and my info of my memory stick looks very similar to the picture posted but I don't understand what you did to fix the problem.... "I quickly open a Terminal and cd to the memory stick volume" makes no sense to me.
Thanks for your help!

Posted by guest on June 15, 2011 at 02:00 AM CEST #

Terminal is a utility found under /Applications/Utilities. Under Finder, the shortcut Cmd-Shift-U brings you there. It may be in your Dock already, it is for me. Double-click the icon to start it. At the prompt, type the following commands : cd /Volumes (then type Enter); ls (the type Enter). You should see there a directory name for your camera. You can "cd" into it and use the commands in the blog text above.

Posted by Openomics on June 15, 2011 at 02:42 AM CEST #

Much appreciated guys. This has been extremely helpful, I was able to do it from the cam :)

Posted by Taj on August 15, 2011 at 06:21 AM CEST #

Thank You!!!!!!!! That was driving me crazy!

Posted by britgal on November 12, 2011 at 08:02 AM CET #

You would not believe how much this helped me! Thanks so much :)

Posted by guest on December 02, 2011 at 05:21 AM CET #

Great! Another solution is to download CleanMyMac, and it will automatically ask you if you want to delete the junk files or not.

Posted by Mandus on February 04, 2012 at 11:05 PM CET #

Beamy, THANK YOU so much!!!! It definitely helped!!!

Posted by guest on March 09, 2012 at 02:37 AM CET #

Thanks so much! It's exactly what happened, it was driving me crazy!

Posted by guest on July 20, 2012 at 11:50 PM CEST #

Hi I have a cybershot camera with a 16gb memory stick but it only lets me take 8 pictures then says memory full I tried what u suggested with formatting it yet its still the same help!!!!

Posted by guest on November 03, 2012 at 10:17 PM CET #

What is the output of "ls -la" and "du -ks" performed on your memory stick from the Mac Terminal?

Posted by Openomics on November 04, 2012 at 12:16 PM CET #

YAY!! Who would have guessed just using my camera's menu to format the camera made that much of a difference!! The "shortcut" on Nikon to format doesn't erase the disk... :-)

Posted by guest on December 03, 2012 at 10:43 PM CET #

Thanks so much!! The format function on my camera worked!!
Saved me in a pinch while on a video shoot!

Posted by Rae on July 27, 2013 at 04:38 PM CEST #

When I go to utilities--> Terminal, this below is all I saw:

Last login: Sat Sep 7 15:29:10 on ttys000
GH-Mac-Air:~ Gillian$

I did try typing in "cd /Volumes"
But I did not get to the digital camera directory as suggested.

I am connecting my DSC to my mac.
What am I doing wrong? Please help!!!

Thanks!

Posted by guest on September 07, 2013 at 09:35 PM CEST #

/Volumes is the directory where your camera folder would be mounted, i.e. the camera folder is one level down from /Volumes. List the folders under /volumes with an "ls" then go to the right folder with another "cd MY_CAMERA_FOLDER_NAME". The folder name is specific to the make and model of the camera.

If there is no folder mounted under /Volumes, it means your camera is not properly recognized. Unless the more recent version of MacOS is mounting external storage under a new root folder, no longer /Volumes. Here I couldn't help, I don't have access to a recent Mac.

Posted by Openomics on September 09, 2013 at 10:17 AM CEST #

Great! This was such simple solution!Thanks Beamy

Posted by guest on November 10, 2013 at 06:20 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

How open innovation and technology adoption translates to business value, with stories from our developer support work at Oracle's ISV Engineering.

Subscribe

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
5
6
8
9
10
11
12
13
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Feeds