LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-30-2005, 07:21 PM   #1
Jefficus
Member
 
Registered: May 2003
Location: Saskatoon
Distribution: Ubuntu 5.04
Posts: 31

Rep: Reputation: 15
Samsung YP-CZ1 mp3 player reports incorrect size


I recently acquired a 1Gig mp3 player. The Samsung Yepp C1Z (model is just YP C1Z). I love this thing, but I'm having a problem with loading stuff on it. Samsung does not offer any snazzy interface tools, so I'm simply connecting it as a USB storage device. (Samsung won't even tell me what disk format it uses, so I have to rely on the auto detect.)

After transferring a bunch of files, the copy halts, reporting that the device is out of space. Sure enough, df -H states that the available space is 0% (of 1.1G capacity). But if I do a du -H /mnt/usbdrive/* on the mounted drive, it shows only 430M of files. Nowhere near the 1G it would take to fill 'er up. In fact, when I turn the player on, the Yepp's startup screen agrees with this number, reporting 580M of free space.

So it seems pretty convincing that the mounted drive is somehow reporting the wrong available space, but I have no idea how to go about working around this. (For what it's worth, I'm running Ubuntu 5.04.)

Anybody else have a similar problem? Or can somebody suggest a way to dig further?

Jefficus
 
Old 12-31-2005, 02:04 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I have similar player, no problems. Mine has fat32 filesystem - a little under 1 GB. Try to mount it with -t vfat option.
 
Old 01-01-2006, 11:35 PM   #3
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
I have the yp-c1x, same deal, only half the capacity. First thing i would try is formatting the drive. There's an option to do that in the menu i think. Next up would be a firmware update, if available
 
Old 01-21-2006, 02:41 PM   #4
Jefficus
Member
 
Registered: May 2003
Location: Saskatoon
Distribution: Ubuntu 5.04
Posts: 31

Original Poster
Rep: Reputation: 15
I have new info. I'm beginning to think the problem is CAUSED by the onboard formatter. I started with a player that showed 950 M free. I put as much content on it as I was able - about 400 Meg, at which point Linux refuses to put more on it, because it is now seeing it as a full device. reporting it as having 6 Meg free even though the onboard display shows 550 M free. So, in an attempt to fix things, I decided to do a reformat from the player's onboard interface.

Linux now shows that there are no files on the device, but is still reporting it as 6Meg free.

It would APPEAR that the onboard reformat does not update the available space that gets reported over the USB connection, even though its onboard records show a full 991 M free. Every time you reformat, you 'lose' however much memory was already occupied at the time of reformat.

There's probably a single memory location in the device that just needs to be set to zero. If only I knew which one, or how to do it...
 
Old 01-21-2006, 03:05 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
It sure sounds as you have two partitions there ...
Can you run fdisk (or cfdisk) on it to see whats going on?
 
Old 01-23-2006, 07:15 PM   #6
Jefficus
Member
 
Registered: May 2003
Location: Saskatoon
Distribution: Ubuntu 5.04
Posts: 31

Original Poster
Rep: Reputation: 15
Great suggestion. It hadn't occurred to me that there might be multiple partitions on it. But it turns out that there is just the one, and it is a full gigabyte in size even though the mounted device still reports only 6M free. I'm completely flummoxed.
 
Old 01-23-2006, 08:21 PM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Well ... I do not know how you deleted those files, but perhaps there is something like trashcan, recycle bin or whatever it might be called. Run ls -a to see if something is hidden.
 
Old 01-23-2006, 08:22 PM   #8
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
Have you tried formatting from a windows pc? Does the device work properly in windows?

Can you post the output from dmesg when you plug the player in?

Quote:
Well ... I do not know how you deleted those files, but perhaps there is something like trashcan, recycle bin or whatever it might be called. Run ls -a to see if something is hidden.
Good idea!

Last edited by dmartins; 01-23-2006 at 08:31 PM.
 
Old 01-23-2006, 11:00 PM   #9
Jefficus
Member
 
Registered: May 2003
Location: Saskatoon
Distribution: Ubuntu 5.04
Posts: 31

Original Poster
Rep: Reputation: 15
File deletion is done by "rm -rf". When I ran an "ls -al" it confirmed that there is absolutely nothing on the drive.

Plugging the device in generates the following info in dmesg:

Quote:
usb 1-2.3: new full speed USB device using uhci_hcd and address 7
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
Vendor: Samsung Model: YP-C1 Rev: 2001
Type: Direct-Access ANSI SCSI revision: 04
SCSI device sda: 2033920 512-byte hdwr sectors (1041 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 2033920 512-byte hdwr sectors (1041 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
/dev/scsi/host2/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
usb-storage: device scan complete
I don't know an awful lot about the inner workings of SCSI and USB, but that appears to be saying "A 1G writable drive was just plugged in."

As for Windows, I have not tried. I spent 10 years purging that commercial virus from my life and don't relish giving it a chance to creep back in, even if it might fix a problem. (I like to say that Linux will never get anywhere if we keep resorting to Windows when things get sticky, but that's just a way of defending my irrational hatred for all things MS.) However, I may cave on this position and try it at a friend's place if I haven't sorted it out through native Linux means soon.
 
Old 01-24-2006, 05:41 AM   #10
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
Although my player is the 512MB version, when i plug it in the output from dmesg shows a partition on the player at sda1, which is where i mount it from. I have no idea if this makes a difference or not. I have heard that some flash devices are mounted from /dev/sda. Just an observation.. i'm pretty lost on this.

This is a mkdosfs app for linux that can format fat32.

Code:
usb 1-4: new high speed USB device using ehci_hcd and address 4
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
  Vendor: Samsung   Model: YP-C1             Rev: 2001
  Type:   Direct-Access                      ANSI SCSI revision: 04
SCSI device sda: 1011712 512-byte hdwr sectors (518 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 1011712 512-byte hdwr sectors (518 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
 sda: sda1     <<--- This line *************
sd 2:0:0:0: Attached scsi removable disk sda
sd 2:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
 
Old 01-24-2006, 06:33 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
fdisk /dev/sda -l will show whether there are partitions or not.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I mount my Samsung YP-T7J USB mp3 player? quackking Linux - Hardware 10 01-08-2006 07:07 AM
S1 Mp3 player (Help Create a New Distro for an MP3 player!)) Ian_Hawdon Linux - General 3 12-05-2005 01:14 PM
Tweek-Test Reports Incorrect MTU Lnx805 Linux - Networking 1 11-27-2005 10:22 AM
SNMP Reports Incorrect Speed meshcurrent Linux - Networking 1 02-11-2004 08:10 AM
Samsung Yepp Mp3 Player astablemaverick Linux - General 3 12-28-2003 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration