I have a fresh install of Raspyfi, and I'm trying to play music from a usb thumb drive. I have formatted the drive with both fat32 and ntfs, and placed music files on the root of the drive. I can choose the usb option when browsing for music, but no files are listed. I have also tried placing music files in subfolders on the drive. Still nothing. Is there something I am missing?
Try to force the update of the Database, and let me know if this works.
Post also the result of
dmesg
and
fdisk -l
Before forcing a database update, I had NAS and Webradio available in the browser. Initially I had a USB option as well, but nothing was listed when selected. The USB option disappeared after a restart. After forcing the update, I now have ramplay as an option, but still no USB device. Maybe it is not being detected as it should? Raspyfi has changed my listening habits.. I appreciate all the work that has gone into this. Let me know if there is anything else I can provide to solve this issue. The dmesg result follows…
[email protected]:~$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.8.12+ ([email protected]) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 – Linaro GCC 2012.08) ) #438 PREEMPT Wed May 8 22:31:10 BST 2013
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] cma: CMA: reserved 16 MiB at 0e000000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 61440
[ 0.000000] free_area_init_node: node 0, pgdat c058023c, node_mem_map c062a000
[ 0.000000] Normal zone: 480 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 60960 pages, LIFO batch:15
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 60960
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xd bcm2708.serial=0xfc544cc1 smsc95xx.macaddr=B8:27:EB:54:4C:C1 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0xfa00000 vc_mem.mem_size=0x10000000 force_turbo=1 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 elevator=noop rootfstype=ext4 rootwait smsc95xx.turbo_mode=N
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Memory: 240MB = 240MB total
[ 0.000000] Memory: 220860k/220860k available, 24900k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 – 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 – 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xcf800000 – 0xff000000 ( 760 MB)
[ 0.000000] lowmem : 0xc0000000 – 0xcf000000 ( 240 MB)
[ 0.000000] modules : 0xbf000000 – 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 – 0xc0529894 (5255 kB)
[ 0.000000] .init : 0xc052a000 – 0xc054b54c ( 134 kB)
[ 0.000000] .data : 0xc054c000 – 0xc0580aa0 ( 211 kB)
[ 0.000000] .bss : 0xc0580aa0 – 0xc06296c0 ( 676 kB)
[ 0.000000] NR_IRQS:330
[ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty1] enabled
[ 0.001187] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.001251] pid_max: default: 32768 minimum: 301
[ 0.001582] Mount-cache hash table entries: 512
[ 0.002274] Initializing cgroup subsys cpuacct
[ 0.002331] Initializing cgroup subsys devices
[ 0.002366] Initializing cgroup subsys freezer
[ 0.002400] Initializing cgroup subsys blkio
[ 0.002495] CPU: Testing write buffer coherency: ok
[ 0.002934] Setting up static identity map for 0x3d0538 – 0x3d0594
[ 0.004462] devtmpfs: initialized
[ 0.015174] NET: Registered protocol family 16
[ 0.021194] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.022363] bcm2708.uart_clock = 0
[ 0.023722] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.023776] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.023814] mailbox: Broadcom VideoCore Mailbox driver
[ 0.023909] bcm2708_vcio: mailbox at f200b880
[ 0.024009] bcm_power: Broadcom power driver
[ 0.024049] bcm_power_open() -> 0
[ 0.024075] bcm_power_request(0, 8)
[ 0.524761] bcm_mailbox_read -> 00000080, 0
[ 0.524802] bcm_power_request -> 0
[ 0.524828] Serial: AMBA PL011 UART driver
[ 0.524977] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[ 0.857968] console [ttyAMA0] enabled
[ 0.881377] bio: create slab at 0
[ 0.886276] SCSI subsystem initialized
[ 0.890363] usbcore: registered new interface driver usbfs
[ 0.895948] usbcore: registered new interface driver hub
[ 0.901551] usbcore: registered new device driver usb
[ 0.907989] Switching to clocksource stc
[ 0.912227] FS-Cache: Loaded
[ 0.915361] CacheFiles: Loaded
[ 0.930619] NET: Registered protocol family 2
[ 0.935903] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.943102] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.949507] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.955977] TCP: reno registered
[ 0.959232] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.965134] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.971699] NET: Registered protocol family 1
[ 0.976614] RPC: Registered named UNIX socket transport module.
[ 0.982662] RPC: Registered udp transport module.
[ 0.987386] RPC: Registered tcp transport module.
[ 0.992131] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.999348] bcm2708_dma: DMA manager at f2007000
[ 1.004136] bcm2708_gpio: bcm2708_gpio_probe c0559cd0
[ 1.009612] vc-mem: phys_addr:0x00000000 mem_base=0x0fa00000 mem_size:0x10000000(256 MiB)
[ 1.018799] audit: initializing netlink socket (disabled)
[ 1.024400] type=2000 audit(0.890:1): initialized
[ 1.150471] VFS: Disk quotas dquot_6.5.2
[ 1.154610] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.161604] FS-Cache: Netfs 'nfs' registered for caching
[ 1.167358] NFS: Registering the id_resolver key type
[ 1.172655] Key type id_resolver registered
[ 1.176862] Key type id_legacy registered
[ 1.181293] msgmni has been set to 463
[ 1.187085] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.194908] io scheduler noop registered (default)
[ 1.199753] io scheduler deadline registered
[ 1.204174] io scheduler cfq registered
[ 1.218389] Console: switching to colour frame buffer device 82x26
[ 1.229833] kgdb: Registered I/O driver kgdboc.
[ 1.236969] vc-cma: Videocore CMA driver
[ 1.242870] vc-cma: vc_cma_base = 0x00000000
[ 1.249422] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 1.256609] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.272782] brd: module loaded
[ 1.282547] loop: module loaded
[ 1.287703] vchiq: vchiq_init_state: slot_zero = 0xce000000, is_master = 0
[ 1.297109] Loading iSCSI transport class v2.0-870.
[ 1.304671] usbcore: registered new interface driver smsc95xx
[ 1.312340] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.519869] Core Release: 2.80a
[ 1.524785] Setting default values for core params
[ 1.531305] Finished setting default values for core params
[ 1.738714] Using Buffer DMA mode
[ 1.743755] Periodic Transfer Interrupt Enhancement – disabled
[ 1.751259] Multiprocessor Interrupt Enhancement – disabled
[ 1.758523] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.764597] Dedicated Tx FIFOs mode
[ 1.770287] dwc_otg: Microframe scheduler enabled
[ 1.770500] dwc_otg bcm2708_usb: DWC OTG Controller
[ 1.777211] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 1.786251] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 1.793509] Init: Port Power? op_state=1
[ 1.799131] Init: Power Port (0)
[ 1.804229] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.812931] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.822002] usb usb1: Product: DWC OTG Controller
[ 1.828590] usb usb1: Manufacturer: Linux 3.8.12+ dwc_otg_hcd
[ 1.836212] usb usb1: SerialNumber: bcm2708_usb
[ 1.843394] hub 1-0:1.0: USB hub found
[ 1.848970] hub 1-0:1.0: 1 port detected
[ 1.855035] dwc_otg: FIQ enabled
[ 1.855053] dwc_otg: NAK holdoff enabled
[ 1.855063] dwc_otg: FIQ split fix enabled
[ 1.855084] Module dwc_common_port init
[ 1.855301] Initializing USB Mass Storage driver…
[ 1.862228] usbcore: registered new interface driver usb-storage
[ 1.869998] USB Mass Storage support registered.
[ 1.876681] mousedev: PS/2 mouse device common for all mice
[ 1.884748] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[ 1.892421] bcm2835-cpufreq: switching to governor powersave
[ 1.899800] bcm2835-cpufreq: switching to governor powersave
[ 1.907147] cpuidle: using governor ladder
[ 1.912913] cpuidle: using governor menu
[ 1.918506] sdhci: Secure Digital Host Controller Interface driver
[ 1.926360] sdhci: Copyright(c) Pierre Ossman
[ 1.932445] sdhci: Enable low-latency mode
[ 1.982108] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[ 1.993437] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[ 2.001100] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.011171] usbcore: registered new interface driver usbhid
[ 2.021663] usbhid: USB HID core driver
[ 2.029918] TCP: cubic registered
[ 2.037085] Initializing XFRM netlink socket
[ 2.045241] NET: Registered protocol family 17
[ 2.053622] Indeed it is in host mode hprt0 = 00021501
[ 2.062786] Key type dns_resolver registered
[ 2.082521] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 2.102838] registered taskstats version 1
[ 2.113003] Waiting for root device /dev/mmcblk0p3…
[ 2.144226] mmc0: read SD Status register (SSR) after 2 attempts
[ 2.168837] mmc0: new high speed SDHC card at address e624
[ 2.179150] mmcblk0: mmc0:e624 SU08G 7.40 GiB
[ 2.187350] mmcblk0: p1 p3
[ 2.255636] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[ 2.267839] VFS: Mounted root (ext4 filesystem) on device 179:3.
[ 2.284171] devtmpfs: mounted
[ 2.289547] Freeing init memory: 132K
[ 2.295205] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.304849] Indeed it is in host mode hprt0 = 00001101
[ 2.512915] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[ 2.521780] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.534803] hub 1-1:1.0: USB hub found
[ 2.540908] hub 1-1:1.0: 3 ports detected
[ 2.822434] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 2.942798] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 2.951861] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.981918] smsc95xx v1.0.4
[ 3.057301] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:54:4c:c1
[ 3.172377] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[ 3.306494] usb 1-1.2: New USB device found, idVendor=13fe, idProduct=5100
[ 3.322191] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.331764] usb 1-1.2: Product: Patriot Memory
[ 3.356697] usb 1-1.2: Manufacturer:
[ 3.371733] usb 1-1.2: SerialNumber: 070B2B0AB2B55303
[ 3.401452] scsi0 : usb-storage 1-1.2:1.0
[ 3.789796] udevd[157]: starting version 175
[ 4.464431] scsi 0:0:0:0: Direct-Access Patriot Memory PMAP PQ: 0 ANSI: 4
[ 4.513448] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k)
[ 4.700922] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[ 4.792285] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[ 4.865926] sd 0:0:0:0: [sda] 15466496 512-byte logical blocks: (7.91 GB/7.37 GiB)
[ 4.894644] sd 0:0:0:0: [sda] Write Protect is off
[ 4.894664] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 4.896320] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)
[ 4.897137] sd 0:0:0:0: [sda] No Caching mode page present
[ 4.897147] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 4.906020] sd 0:0:0:0: [sda] No Caching mode page present
[ 4.906031] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 4.932964] sda: unknown partition table
[ 4.940149] sd 0:0:0:0: [sda] No Caching mode page present
[ 4.940160] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 4.940173] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 9.291464] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
[ 9.669996] EXT4-fs (mmcblk0p3): Mount option "nouser_xattr" will be removed by 3.5
[ 9.669996] Contact [email protected] if you think we should keep it.
[ 9.669996]
[ 9.696455] EXT4-fs (mmcblk0p3): re-mounted. Opts: nouser_xattr,errors=remount-ro
[ 17.697769] NET: Registered protocol family 10
[ 17.707750] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 18.698782] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 18.709480] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
[ 20.734209] Installing knfsd (copyright (C) 1996 [email protected]).
[ 49.364849] bcm2835-cpufreq: switching to governor ondemand
[ 49.372532] bcm2835-cpufreq: switching to governor ondemand
[ 287.979564] CIFS VFS: Send error in read = -512
How are you formating the Hdd as I have had massive problems getting Hdd's to work which I have resolved.
I formatted my Hdd to Fat32 using EaseUS Partiton manager, I left the partition label empty, once it had finished I added a single Mp3 file and connected the Hdd , started the rpi and updated the database, the single file was detected, so turned everything off transferred the rest of my music, connected everything back up, updated the database and all my files were detected fine.
I have my Music Files in folders within a folder i.e /Black Eyed Peas/The END/Mp3 file name
The USB stick I have is an 8gb Patriot usb3. I formatted to fat32 with an empty label (previously labeled USB_Audio) and added 1 mp3 song and 1 m4a song. Both were placed in subfolders. I powered down the pi, inserted the usb stick, and powered on. I then ran the database update, and let it finish. The USB option is listed, but still no files. I will continue to monitor, and update here.
I thought maybe you had wanted me to go further. I tried changing to all the listed directories. Here is my result:
[email protected]:/mnt/USB$ ls
usb1 usb10 usb2 usb3 usb4 usb5 usb6 usb7 usb8 usb9
[email protected]:/mnt/USB$ cd usb1
-bash: cd: usb1: No such file or directory
[email protected]:/mnt/USB$ cd usb2
-bash: cd: usb2: No such file or directory
[email protected]:/mnt/USB$ cd usb3
-bash: cd: usb3: No such file or directory
[email protected]:/mnt/USB$ cd usb4
-bash: cd: usb4: No such file or directory
[email protected]:/mnt/USB$ cd usb5
-bash: cd: usb5: No such file or directory
[email protected]:/mnt/USB$ cd usb6
-bash: cd: usb6: No such file or directory
[email protected]:/mnt/USB$ cd usb7
-bash: cd: usb7: No such file or directory
[email protected]:/mnt/USB$ cd usb8
-bash: cd: usb8: No such file or directory
[email protected]:/mnt/USB$ cd usb9
-bash: cd: usb9: No such file or directory
[email protected]:/mnt/USB$ cd usb10
-bash: cd: usb10: No such file or directory
A bit strange. Am I missing something?
I also have a Patriot 8gb thumb drive and experienced the same issue.
fdisk -l returns the following:
Disk /dev/sda: 7817 MB, 7817125376 bytes
241 heads, 62 sectors/track, 1021 cylinders, total 15267823 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
As the thumb drive is mapped to "/dev/sda" I mounted the drive using "mount /dev/sda /mnt/USB/". From the web interface I updated the MPD database and my music is found on the USB.
So, I guess the question is, why is the thumb drive not mounted automatically?
UPDATE:
When I first got the thumb drive, I formatted it as FAT32, and copied a few mp3 files straight on to it and experienced the same issue as mike. From what I can gather (see /etc/auto.usb), it is expected that the thumb drive mounts to /sdax, /sdbx etc, where "x" is a number. This was not happening. However, I re-formatted the thumb drive (again FAT32) and then added a partition (the entire disk), and now when RaspyFi boots up, it mounts automatically to sda1 and it's all working as expected.
Great observation ivad.
I had formatted my drive in windows as fat32, and placed songs on the drive. Using fdisk -l with another linux distro, I realized the drive seemed to be missing a correct partition table? The drive was listed as sdb, but contained no sdb1 partition. I used Gparted to recreate a fat32 formatted parition. Afterward, sdb1 was listed. I then added songs, connected the drive to the pi, and updated the database. All songs now appeared.
I am not sure why the pi failed to realize the initial partition. This would explain why changing directories failed from usb1 through 10.
Is there anything we can do to troubleshoot further to help in development? It would be great to prevent future problems.
16:34
Hi,
I'm experiency same trouble.
for my part, I have mounted manually my usb on /mnt/USB/usb1 with the mount command.
a ls into the dir "/mnt/USB/usb1" gave me the content of the usb key but my music list still empty.
I had tried to update database in vain.
Is there something I am missing?
thanks
Most Users Ever Online: 200
Currently Online:
7 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Gyp: 82
yoghurtlidlicker: 37
PaulM: 36
icai: 35
Derek: 29
Karsten: 27
tc-fi: 22
Ronaldo: 21
ENSen: 21
chriz: 20
Member Stats:
Guest Posters: 3619
Members: 569
Moderators: 0
Admins: 1
Forum Stats:
Groups: 4
Forums: 10
Topics: 469
Posts: 13163
Newest Members: polo2016, dongdong8, wlpwlp, Sager, ninestab123, lmx66, lmx, jlgg, chenyan, guoyanying
Administrators: admin (401)