LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Corrupted Sigmatel MP3 player - need to reformat (http://www.linuxquestions.org/questions/linux-hardware-18/corrupted-sigmatel-mp3-player-need-to-reformat-762636/)

mrchumpley 10-17-2009 03:12 PM

Corrupted Sigmatel MP3 player - need to reformat
 
Hello Everyone
This is my first post and I'm not particularly computer literate so please bear with me.

I was trying to change the music on my daughter's SigmaTel Max-Joy mp3 player. I deleted a few tracks and added some new ones. When I came to unmount it said i'd have to empty the deleted items first, so i clicked okay. After unmounting and trying to switch on it gives an error message - "Incorrect format. Need to reformat."

When I connect it back to my computer (Ubuntu - Hardy Heron 8.xx) it no longer mounts.

I've looked around the forums and there is a thread somewhere about just this problem, but only one reply and it doesn't exactly tell you how to fix. Anyway when I run lsusb it shows it as:

Bus 002 Device 012: ID 066f:8004 SigmaTel, Inc. MSCNMMC MP3 Player

When I run $ lshal --monitor

I get:

21:09:06.457: usb_device_66f_8004_0002F68CCDDA8617 added
21:09:06.583: usb_device_66f_8004_0002F68CCDDA8617_if0 added
21:09:11.588: usb_device_66f_8004_0002F68CCDDA8617_if0_scsi_host added
21:09:11.588: usb_device_66f_8004_0002F68CCDDA8617_if0_scsi_host_scsi_device_lun0 added
21:09:11.611: usb_device_66f_8004_0002F68CCDDA8617_if0_scsi_host_scsi_device_lun1 added
21:09:11.621: usb_device_66f_8004_0002F68CCDDA8617_if0_scsi_host_scsi_device_lun0_scsi_generic added
21:09:11.634: usb_device_66f_8004_0002F68CCDDA8617_if0_scsi_host_scsi_device_lun1_scsi_generic added
21:09:11.733: storage_serial_SigmaTel_MSCNMMC_0002F68CCDDA8617_0_1 added
21:09:11.756: storage_serial_SigmaTel_MSCNMMC_0002F68CCDDA8617_0_1 property info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} (new)
21:09:11.814: storage_serial_SigmaTel_MSCNMMC_0002F68CCDDA8617_0_0 added
21:09:11.825: storage_serial_SigmaTel_MSCNMMC_0002F68CCDDA8617_0_0 property info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} (new)
21:09:14.007: storage_serial_SigmaTel_MSCNMMC_0002F68CCDDA8617_0_1 property storage.partitioning_scheme = '' (new)


But it doesn't appear as a mounted volume anywhere.

How can I reformat it so I can use Rhythmbox with it?
Any suggestions greatfully received!
CHeers

xeleema 10-19-2009 02:47 AM

Investigating USB Devices.
 
Greetingz and Welcome!

Well, for starters, there's one of two things going on "behind the scenes" in your Ubuntu system;

a. The system isn't automounting the device, because it doesn't recognize the filesystem.

b. The system can't recognize a storage device, so there's nothing for filesystems to be on (as far as Ubuntu is concerned).

If it's the latter, then you should be able to do the following;

Check and see what "device" the MP3 player's storage is showing up as.
Run the "dmesg" command, and look for something like this;

Code:

scsi 2:0:0:0: Direct-Access    SanDisk  Cruzer          8.01 PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: [sda] 15682559 512-byte hardware sectors: (8.02 GB/7.47 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 45 00 00 08
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] 15682559 512-byte hardware sectors: (8.02 GB/7.47 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 45 00 00 08
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 2:0:0:0: [sda] Attached SCSI removable disk

What I've done is plugged in a USB stick, and it's manufacturer popped-up ("SanDisk Cruzer"). The Linux kernel has also identified a storage device ("sda:sda1")

Since we know what "device" the storage is on, we can check it's partition table by querying the whole device ("sda");

Code:

root# fdisk -l /dev/sda

Disk /dev/sda: 8040 MB, 8040480256 bytes
248 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 15376 * 512 = 7872512 bytes
Disk identifier: 0xc5255cf8

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        1021    7849417    b  W95 FAT32

Now, we know what partitions (if any) are there on "sda". We can see we have one partition, "sda1", and it's bootable.

Keep in mind, that the "System" should list what type of filesystem is on the device.

From here, we can mount up the filesystem (if we're lucky);

Code:

root# mount -t auto /dev/sda1 /mnt/tmp
(NOTE: I've mounted the filesystem to "/mnt/tmp", however you may want to create a different directory to mount the filesystem under.)

If you want to confirm the type of filesystem that the device has, just run this

Code:

root# mount | grep sda1
/dev/sda1 on /mnt/tmp type vfat (rw)

(NOTE: "vfat" means it's probably a FAT32 filesystem, common to small media players, and of course, a staple of MSFT products)

At this point, you can just "ls -la /mnt/tmp" and see the contents, or copy/remove files as you see fit.

Once you're done, unmount the filesystem;
Code:

umount /mnt/tmp
(NOTE: That's not a typo, it's not 'un-mount', it's 'u-mount')

And viola! You should be good.

Please keep in mind that it's important that you "unmount" the filesystem before you unplug the device, or if the device is about to lose power.

If not, you may corrupt the filesystem. And then you're fsck'd.
(a little geek humor there, "man fsck" to find out what I mean)

Now, if it's the latter, where the system cannot detect a storage device and assign it a "device name" (like "sda" above), then things are going to be a bit more complicated.

mrchumpley 10-19-2009 03:29 AM

Wow - that's a great reply! Thanks very much.

I ran dmesg and got a lot of stuff back, and I've copied what I think is the relevant bit from it's interrogation of the Sigmatel device:

Code:

2869.427907] Initializing USB Mass Storage driver...
[ 2869.428084] scsi6 : SCSI emulation for USB Mass Storage devices
[ 2869.428232] usbcore: registered new interface driver usb-storage
[ 2869.428234] USB Mass Storage support registered.
[ 2869.428474] usb-storage: device found at 5
[ 2869.428476] usb-storage: waiting for device to settle before scanning
[ 2872.076472] usb-storage: device scan complete
[ 2872.076807] scsi 6:0:0:0: Direct-Access    SigmaTel MSCNMMC          0100 PQ: 0 ANSI: 4
[ 2872.077088] scsi 6:0:0:1: Direct-Access    SigmaTel MSCNMMC          0100 PQ: 0 ANSI: 4
[ 2872.078854] sd 6:0:0:0: [sdc] Unit Not Ready
[ 2872.078858] sd 6:0:0:0: [sdc] Sense Key : Unit Attention [current]
[ 2872.078861] sd 6:0:0:0: [sdc] Add. Sense: Medium format corrupted
[ 2872.080433] sd 6:0:0:0: [sdc] READ CAPACITY failed
[ 2872.080435] sd 6:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 2872.080438] sd 6:0:0:0: [sdc] Sense Key : Unit Attention [current]
[ 2872.080440] sd 6:0:0:0: [sdc] Add. Sense: Medium format corrupted
[ 2872.081105] sd 6:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 2872.081108] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 2872.081146] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[ 2872.081170] sd 6:0:0:0: Attached scsi generic sg3 type 0
[ 2872.082146] sd 6:0:0:1: [sdd] Attached SCSI removable disk
[ 2872.082173] sd 6:0:0:1: Attached scsi generic sg4 type 0
[ 2872.176392] sd 6:0:0:0: [sdc] Unit Not Ready
[ 2872.176397] sd 6:0:0:0: [sdc] Sense Key : Unit Attention [current]
[ 2872.176400] sd 6:0:0:0: [sdc] Add. Sense: Medium format corrupted
[ 2872.177975] sd 6:0:0:0: [sdc] READ CAPACITY failed
[ 2872.177978] sd 6:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 2872.177981] sd 6:0:0:0: [sdc] Sense Key : Unit Attention [current]
[ 2872.177983] sd 6:0:0:0: [sdc] Add. Sense: Medium format corrupted
[ 2872.178567] sd 6:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 2872.178570] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 2872.180318] sd 6:0:0:0: [sdc] Unit Not Ready
[ 2872.180323] sd 6:0:0:0: [sdc] Sense Key : Unit Attention [current]
[ 2872.180326] sd 6:0:0:0: [sdc] Add. Sense: Medium format corrupted
[ 2872.181995] sd 6:0:0:0: [sdc] READ CAPACITY failed
[ 2872.181999] sd 6:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 2872.182002] sd 6:0:0:0: [sdc] Sense Key : Unit Attention [current]
[ 2872.182006] sd 6:0:0:0: [sdc] Add. Sense: Medium format corrupted
[ 2872.182515] sd 6:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 2872.182519] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 2872.213744] sd 6:0:0:0: [sdc] Unit Not Ready
[ 2872.213748] sd 6:0:0:0: [sdc] Sense Key : Unit Attention [current]
[ 2872.213751] sd 6:0:0:0: [sdc] Add. Sense: Medium format corrupted
[ 2872.215512] sd 6:0:0:0: [sdc] READ CAPACITY failed
[ 2872.215517] sd 6:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 2872.215519] sd 6:0:0:0: [sdc] Sense Key : Unit Attention [current]
[ 2872.215522] sd 6:0:0:0: [sdc] Add. Sense: Medium format corrupted
[ 2872.216328] sd 6:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 2872.216330] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 2872.217669] sd 6:0:0:0: [sdc] Unit Not Ready
[ 2872.217671] sd 6:0:0:0: [sdc] Sense Key : Unit Attention [current]
[ 2872.217674] sd 6:0:0:0: [sdc] Add. Sense: Medium format corrupted
[ 2872.219107] sd 6:0:0:0: [sdc] READ CAPACITY failed
[ 2872.219110] sd 6:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK

It repeats the sequence a few more times before returning me to the $

My reading of it is that it tried to mount it at [sdc] but can't read it because the format is corrupted? If this is true, is there a way of reformatting it?

Thanks, in anticipation,

mrchumpley.

neonsignal 10-19-2009 03:38 AM

Once you know the device name (see the above post, or you can try 'fdisk -l') you can also reformat the player from a root terminal/shell. Be very certain you have the correct device (you don't want to accidentally format your hard drive!), eg:

Code:

mkfs -t vfat /dev/sda1
Some devices may appear only as '/dev/sda'. This would normally mean that it needs to be partitioned (I haven't supplied details here). There are rare devices that only present /dev/sda, in which case you will 'mkfs -t vfat /dev/sda', but typically this will give you an error message 'Device partition expected'.

There may be a way to do this from the Ubuntu gui, but I don't know how.

If the device still does not work, then the next resort would be to use the supplied software to format it from a Windows machine (if you have access to one). Other Maxfield devices appear to use a standard fat format, so I wouldn't think you would need to do this, but I have encountered mp3 players with non-standard file formats.

neonsignal 10-19-2009 03:45 AM

Just saw your reply post.

It appears to be assigned to both /dev/sdc and /dev/sdd. It isn't clear to me which one you should be formatting. One of these may actually hold the device firmware.

xeleema 10-19-2009 03:56 AM

Indeed that is rather odd. Please post the output from the following commands, maybe that'll help us figure this one out;

Code:

fdisk -l /dev/sdc ; fdisk -l /dev/sdd
It would be *really* impressive if the devices firmware was on a storage device that the system could mount....but that would mean it would also show up in Windows, which would probably brick these things pretty fast.

I remember back in my n00b days (when we had dinosaurs writing COBAL), I deleted a few files once without knowing what they did...

mrchumpley 10-19-2009 06:13 AM

I already tried that for sdc, but here is the result for both....

Code:

~$ fdisk -l /dev/sdc ; fdisk -l /dev/sdd
Cannot open /dev/sdc
Cannot open /dev/sdd

So can't look inside either!

Can I do something like reformat the whole thing so i can install some linux mp3 player software? (i'm assuming that there is something like it as my friend re-formatted his iPod to linux somethingorother!)

Or do you think the whole thing is wrecked?

Would putting it in the deep freeze for an hour teach it a lesson?!

cheers
mr c

xeleema 10-19-2009 06:21 AM

Well, you can't reformat it from your Linux system without those devices (sdc & sdd) working properly. There's a chance that the Linux kernel isn't able to talk to the MP3 player correctly, however trying to find the right module (aka: driver) to load can be a bit tedious.

If the device has a "reformat me" function, then go for it, as long as you don't care about the existing music/files on it.

By chance does the device come with software? Is there a system with that software loaded that you could do that from?

I would hold off on freezing the MP3 player. That tactic works on hard drives (sometimes), but condensation build-up kills more things than deep-freeze fixes.


By the way, feel free to click on the blue thumbs-up at the bottom-right corner of any posts that help you out. :)

mrchumpley 10-19-2009 07:59 AM

I'm sure I have a disc somewhere as originally the device was used with an XP machine. I plugged it into said machine - it recognises it, but won't re-format it for some reason.

It's all a bit odd because i've changed the music on it before by plugging it into my linux machine without stuffing it up.

Thanks for all your help - I'll hunt around for the cd that came with it and see if I can reformat via the XP machine.

Cheers
mr c


All times are GMT -5. The time now is 07:54 PM.