Announcement

Collapse
No announcement yet.

MP3 Player (usb) problem

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MP3 Player (usb) problem

    Today I decided to buy a mp3 player.
    So I bought "ACME A-410" digital mp3/ FM radio player.

    On the box it said that it works both for windows and Linux 2.4.2 so I took it.

    Now at home I plug this device into my USB port, KDE finds the device, I choose to open.
    so it creates /dev/sda1. I made this script to mount and open the device:
    Code:
    #! /bin/sh
    ### By Gediminas
    echo "Mounting Device"
    sudo mkdir /media/usb
    sudo mount /dev/sda1 /media/usb 
    kdesu konqueror /media/usb
    Since it only lets writing files with root permissions, I used kdesu konqueror

    Now the problem: when mounted and writing to device , everything seems ok,
    but when I unmount and unplug the device from the USB port, It doesn't play the files.
    I plug the device in my USB port again, and when mounted I see the mp3 files I copied,
    but they all are 0 bytes in size. In windows copying works fine.

    Has anyone had this problem? Please tell me what I did wrong.

    P.S. I am using Kubuntu 6.10 (Edgy Eft)
    Join the dark side<br />---------------------------------------------------------------------<br />Samsung NC10 netbook running<br />PCLinuxOS 2010 // Win XP

    #2
    Re: MP3 Player (usb) problem

    i don't know that mp3 player.
    but there's no need for the script you've put together.
    your linux must do all by itself.
    i mean, create the mount point and stuff...
    and there's no need for any entry in /etc/fstab or anything...
    it works with cameras, usb pens, ipods, whatever...
    it must work for your player, too: full stop.
    unless there's an unsupported file system on it, which is unlikely.
    your player will be seen as an external drive.
    you should see the icon for the device on your desktop when you plug it in.
    after copying the files, make sure you safely remove the device before unplugging.
    that's all.
    gnu/linux is not windoze

    Comment


      #3
      Re: MP3 Player (usb) problem

      Not sure if this will help but with my MP3 player all I do is plug it in.
      A window pops up to say MP3 player is detected I click open in a window
      Drag all my file on to it,close the window.find the usbdrive icon on the desktop,right click and select "safetly remove" all done!

      I don't worry about mounting as it seems to been done automatically,
      "safely remove" seems to be the important stage as you have to wait for the info to be written to your MP£ player,if you remove it to quickly the data doesn't get transferred across and you end up with lots of 0Kb files.

      jankushka beat me to it - must type faster
      Using Kubuntu 17.10 64Bit

      Comment


        #4
        Re: MP3 Player (usb) problem

        Sorry for replying late, but my Internet was down (for the half town actually)

        I know what it SHOULD do.But it doesn't. I DO use safely remove.
        there is no icon on the desktop until I run my script.

        I tried using Google to find drivers for the device, but I only find drivers for windows.

        Any idea what should I do?
        Join the dark side<br />---------------------------------------------------------------------<br />Samsung NC10 netbook running<br />PCLinuxOS 2010 // Win XP

        Comment


          #5
          Re: MP3 Player (usb) problem

          You can start by pluggin your device, and when the hard disk settle, give us the output of this command:

          Code:
          $ dmesg | tail -15
          It can also be helpful the output of the following commands:

          Code:
          $ ls /dev/sd*
          $ fdisk -l /dev/sda1
          Something is wrong, as you said there should be no need for drivers or scripts. We need more info.

          Javier.

          Comment


            #6
            Re: MP3 Player (usb) problem

            Originally posted by javierrivera
            You can start by pluggin your device, and when the hard disk settle, give us the output of this command:

            Code:
            $ dmesg | tail -15
            It can also be helpful the output of the following commands:

            Code:
            $ ls /dev/sd*
            $ fdisk -l /dev/sda1
            Something is wrong, as you said there should be no need for drivers or scripts. We need more info.

            Javier.
            Code:
            gediminas@monster:~$ dmesg | tail -15
            [17194026.816000] USB Mass Storage support registered.
            [17194031.816000] usb-storage: device scan complete
            [17194031.820000]  Vendor: SigmaTel Model: MSCN       Rev: 0100
            [17194031.820000]  Type:  Direct-Access           ANSI SCSI revision: 04
            [17194031.856000] SCSI device sda: 487808 2048-byte hdwr sectors (999 MB)
            [17194031.860000] sda: Write Protect is off
            [17194031.860000] sda: Mode Sense: 3e 00 00 00
            [17194031.860000] sda: assuming drive cache: write through
            [17194031.868000] SCSI device sda: 487808 2048-byte hdwr sectors (999 MB)
            [17194031.872000] sda: Write Protect is off
            [17194031.872000] sda: Mode Sense: 3e 00 00 00
            [17194031.872000] sda: assuming drive cache: write through
            [17194031.872000] sda: sda1
            [17194031.880000] sd 2:0:0:0: Attached scsi removable disk sda
            [17194031.904000] sd 2:0:0:0: Attached scsi generic sg0 type 0
            gediminas@monster:~$
            Code:
            gediminas@monster:~$ ls /dev/sd*
            /dev/sda /dev/sda1
            Code:
            gediminas@monster:~$ fdisk -l /dev/sda1
            Note: sector size is 2048 (not 512)
            
            Disk /dev/sda1: 998 MB, 998965248 bytes
            206 heads, 32 sectors/track, 73 cylinders
            Units = cylinders of 6592 * 2048 = 13500416 bytes
            
               Device Boot   Start     End   Blocks  Id System
            Now I have no idea what is wrong.
            Actually I don't know for what to look.

            EDIT: Now I noticed when I unmount the device (safely remove),
            if I do not unplug the device from the USB port, it starts writing the files.
            So It works. Thank you all for your efforts, and sorry to waste your time.
            Join the dark side<br />---------------------------------------------------------------------<br />Samsung NC10 netbook running<br />PCLinuxOS 2010 // Win XP

            Comment

            Working...
            X