NSLU2 and Firefly Setup Issues

Viewing 10 posts - 11 through 20 (of 40 total)
  • Author
    Posts
  • #6172
    fizze
    Participant

    that just allows everyone read/write/execute access through the NSLU2.

    If your harddisk isnt ext2 or ext3, than this isnt going to be very helpful.
    for NTFS or FAT32 drives, try to use umask=0000 in the fstab. that effect is the same, but for the whole disk, w/o altering its contents.

    #6173
    Sam1
    Participant

    This has been a really useful thread for the setup of my NSLU2. I have been able to ‘unsling’ and install the latest mt-daapt on the slug. However, like Dart Nemo, i have no clue with the telnet commands.

    When I run the /opt/etc/init.d/S60mt-daapd code I get the following error:
    # /opt/etc/init.d/S60mt-daapd
    Bad mp3 directory (/share/hdd/data/public): No such file or directory
    Error reading config file (/opt/etc/mt-daapd/mt-daapd.conf)

    When i browse into the Slug with windows I do not see the directory structure as above.

    Roku Soundbridge cannot see the server…so I assume that it is not running

    Any help appreciated.

    #6174
    rpedde
    Participant

    @Sam1 wrote:

    Bad mp3 directory (/share/hdd/data/public): No such file or directory
    Error reading config file (/opt/etc/mt-daapd/mt-daapd.conf)

    k, so the slug doesn’t have a directory called /share/hdd/data/public.

    it’s pretty much like windows, like if you specified a directory of c:sharehdddatapublic, but that folder didn’t exist.

    To look at the directories in windows, you might use (if you were stuck in the command line) the “dir” command.

    For example, you could do “dir c:” to see what folders were in the c: drive. Or “dir c:share” to see what folders were in the “share” folder under the c: drive. Right?

    Same thing with the slug, except you use the “ls” command. “ls /” will show you what files are off the root. You can use that to explore how your file system is laid out, and find your music directory.

    Probably it will be in /share/hdd/data/ somehere, or maybe /share/flash/data somewhere.

    You can also cheat, and do this:


    root@server:~# cat /etc/samba/smb.conf



    [DISK 1]
    valid users=@"administrators",@"everyone"
    comment=For everyone
    path=/share/hdd/data/public/
    read only=yes
    write list=@"administrators",@"everyone"

    that shows that the path on the slug that corresponds to the windows share called “DISK 1” is /share/hdd/data/public.

    Find out the path to the share you ahve your music under, and change the config file to match.

    — Ron

    #6175
    fizze
    Participant

    Ron is right.
    However my slug never did recognize the NTFS drive as “native”.

    So I had to “cheat” a lot ๐Ÿ˜‰

    Try if the slug recoginizes the hdd via the web interface, and if not, you need to get down and dirty. ๐Ÿ˜ก ๐Ÿ˜€

    if not, here’s how it’ll work:
    you need to “mount” the hard disk to the slug to see wether it works.

    mount [fat32|ntfs|etx2|ext3] /dev/hda1 /share/hdd/data

    (If your HD is mounted to usb port 2 then it might be hdb1)
    note that you should know what filesystem the HD is. If its slug formatted it should be ext2/3, and the slug should recognize it. If its windows formatted its prolly NTFS, but maybe fat32. NTFS has a bad performance on the slug, though. Anyway.

    Then you should be able to do a

    ls / share/hdd/data

    and see the contents of your drive.

    Try to start mt-daapt / firefly.

    #6176
    Sam1
    Participant

    Thanks for your patience……..now I can see the directory structure as follows…[# ls /share/flash/data/public
    Public
    # ls /share/flash/data/public/MP3
    ls: /share/flash/data/public/MP3: No such file or directory
    #]
    Looks like there is a directory called Public in flash…but not in hdd.[/code] …….root@server…etc did not work for me……
    Have to come back at this later.
    How do I make the /public/mp3 folders ?

    #6177
    fizze
    Participant

    do a

    ls /share/flash
    ls /share/flash/data/

    Where on the Harddrive is your music located ?
    And it is a Windows formatted drive ?

    #6178
    Sam1
    Participant

    Wow, I’ve learned a little about Linux commands in the last 24 hrs…
    I made the directories in the path share/hdd/data/public/mp3 I have put an album folder of mp3s into the mp3 folder through windows and can browse to it with the NSLU2 web interface. I have run the permissions script, restarted the mt-daapd server and run the log file…server aborted. All the mt-daapd files seem to be in the correct places. See this script.

    # chmod 777 /share/hdd/data/public/mp3
    # /opt/etc/init.d/S60mt-daapd
    # tail -f /var/log/messages
    <38>Sep 13 23:09:27 login[671]: root login on `ttyp0' from `192.168.1.100'
    <29>Sep 13 23:11:04 mt-daapd[677]: Starting rendezvous daemon
    <29>Sep 13 23:11:04 mt-daapd[679]: Starting signal handler
    <29>Sep 13 23:11:05 mt-daapd[679]: Loading playlists
    <29>Sep 13 23:11:05 mt-daapd[679]: Initializing database
    <29>Sep 13 23:11:05 mt-daapd[679]: Starting mp3 scan
    <29>Sep 13 23:11:05 mt-daapd[679]: Error scanning MP3 files: Permission denied
    <30>Sep 13 23:11:05 mt-daapd[679]: Aborting
    <29>Sep 13 23:11:05 mt-daapd[678]: Rendezvous socket closed (daap server crashed
    ?) Aborting.
    <30>Sep 13 23:11:05 mt-daapd[678]: Aborting

    So near…….

    #6179
    fizze
    Participant

    that

    /share/hdd/data/public/mp3

    wont use much if its not an ext2/3 fs.

    What filesystem is on the harddrive ?

    #6180
    Sam1
    Participant

    Sorry, I should have said in the last post. The drive was originally formatted NTFS but I formatted EXT3 with the web utility for the NSLU2.
    I suspect that there may be another partition on the drive as the full 320G does not appear. (only 302Gb) The USB Drive is plugged into the top usb connector on the slug and appears as USB Disk 2 on the web interface for the slug.
    I’m nearly at the stage of starting from scratch and re-flashing the unit with the Linksys firmware and unsling again from there after doing a low level format on the HDD.
    I also notice that when i copy an mp3 album from the PC into the network folder (mp3) it takes about 4 minutes to copy over…….very slow.
    When I did tests with the linksys software the copy over process was fast!
    What do you think?

    #6181
    fizze
    Participant

    do you use SMB (aka windows share) to copy ?
    or any other tools like winSCP, etc ?

    the chmod should work, alas.

    Are you sure your mp3-dir is /share/hdd/data/public/mp3 ?
    do a

    cat /opt/etc/mt-daapd/mt-daapd.conf|grep mp3

    or do a

    cat /opt/etc/mt-daapd/mt-daapd.conf|less

    to view the contents of the file.

    you might also try to install JOE (which i recommend)

    ipkg install joe

    which is a text editor, which is a little *cough* more user friendly than VI.
    in JOE you can exit with CTRL+C, and save files with CTRL+KX. that is CTRL+K shortly followed by CTRL+X, dont let go of CTRL.

    you’re almost there. I wouldnt want to go over unslinging again. Its just the mp3 dir thats faulty im certain. ๐Ÿ™‚

Viewing 10 posts - 11 through 20 (of 40 total)
  • The forum ‘Setup Issues’ is closed to new topics and replies.