Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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...
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.
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.