Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Junior Member
    Join Date
    Aug 2018
    Posts
    19

    LMS: Error mounting my USB key

    Hello, in my attempt to replace my dead music HDD, I try using a 32 Go USB 3.0 stick.

    When I "Pick from the following detected USB disks to mount" my USB stick (it appears in the list, witha relevant size), I get an error message.

    It proposes to reboot, but doing so does not change the result.

    As I had not the last version, I reinstalled from scratch with latest versions. I still have the problem.

    In Windows, the USB stick appears as FAT32, in piCore it is seen as vfat.

    Exact message is:
    [ INFO ] Mount options have changed for Disk .

    [ INFO ] Mount Point is set to: LMSfiles

    [ INFO ] Checking new Mount Point.

    [ INFO ] Mounting Disk.

    [ INFO ]

    [ERROR] Disk Mount Error, Try to Reboot.

    [ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz/- Done.

    [ OK ] Backup successful.

    I have tried all what I could find. Help very welcomed.

    JMF

  2. #2
    Junior Member
    Join Date
    Aug 2018
    Posts
    19
    In order to give some more information (but sorry, I'm not a Linux expert):

    sudo fdisk -l gives:

    Disk /dev/mmcblk0: 1876 MB, 1967128576 bytes, 3842048 sectors
    60032 cylinders, 4 heads, 16 sectors/track
    Units: sectors of 1 * 512 = 512 bytes

    Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
    /dev/mmcblk0p1 128,0,1 127,3,16 8192 73727 65536 32.0M c Win95 FAT32 (LBA)
    /dev/mmcblk0p2 1023,3,16 1023,3,16 73728 688127 614400 300M 83 Linux
    Disk /dev/sda: 29 GB, 31457280000 bytes, 61440000 sectors
    3824 cylinders, 255 heads, 63 sectors/track
    Units: sectors of 1 * 512 = 512 bytes

    Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
    /dev/sda1 0,0,33 1023,254,63 32 61439775 61439744 29.2G c Win95 FAT32 (LBA)

    => my USB key seems to be /dev/sda1

    In /mnt, there is

    tc@piCoreLMS:/mnt$ ls -l
    total 1
    drwxr-xr-x 2 root root 40 Jan 1 1970 mmcblk0p1/
    drwxr-xr-x 3 root root 1024 Nov 28 02:55 mmcblk0p2/
    drwxr-xr-x 2 root root 40 Jan 1 1970 sda1/

    I don't know what is the /mnt/sda1 folder, but it looks empty.

    If I mount the USB stick manually, it works:
    tc@piCoreLMS:/mnt/sda1$ cd ..
    tc@piCoreLMS:/mnt$ sudo mkdir /mnt/LMSfiles
    tc@piCoreLMS:/mnt$ ls -l
    total 1
    drwxr-xr-x 2 root root 40 May 9 21:20 LMSfiles/
    drwxr-xr-x 2 root root 40 Jan 1 1970 mmcblk0p1/
    drwxr-xr-x 3 root root 1024 Nov 28 02:55 mmcblk0p2/
    drwxr-xr-x 2 root root 40 Jan 1 1970 sda1/
    tc@piCoreLMS:/mnt$ sudo mount /dev/sda1 /mnt/LMSfiles/
    tc@piCoreLMS:/mnt$ cd LMSfiles/
    tc@piCoreLMS:/mnt/LMSfiles$ ls
    Musique/ System Volume Information/
    Playlist/
    tc@piCoreLMS:/mnt/LMSfiles$

    And I can access the music files from squeezelite

    But all this will be lost at the first reboot, That's why I would like to do it as normally from piCore interface.

    What could be wrong ?

    JMF

  3. #3
    Junior Member
    Join Date
    Aug 2018
    Posts
    19
    In order to give some more information (but sorry, I'm not a Linux expert):

    sudo fdisk -l gives:

    Disk /dev/mmcblk0: 1876 MB, 1967128576 bytes, 3842048 sectors
    60032 cylinders, 4 heads, 16 sectors/track
    Units: sectors of 1 * 512 = 512 bytes

    Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
    /dev/mmcblk0p1 128,0,1 127,3,16 8192 73727 65536 32.0M c Win95 FAT32 (LBA)
    /dev/mmcblk0p2 1023,3,16 1023,3,16 73728 688127 614400 300M 83 Linux
    Disk /dev/sda: 29 GB, 31457280000 bytes, 61440000 sectors
    3824 cylinders, 255 heads, 63 sectors/track
    Units: sectors of 1 * 512 = 512 bytes

    Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
    /dev/sda1 0,0,33 1023,254,63 32 61439775 61439744 29.2G c Win95 FAT32 (LBA)

    => my USB key seems to be /dev/sda1

  4. #4
    Junior Member
    Join Date
    Aug 2018
    Posts
    19
    In /mnt, there is

    tc@piCoreLMS:/mnt$ ls -l
    total 1
    drwxr-xr-x 2 root root 40 Jan 1 1970 mmcblk0p1/
    drwxr-xr-x 3 root root 1024 Nov 28 02:55 mmcblk0p2/
    drwxr-xr-x 2 root root 40 Jan 1 1970 sda1/

    I don't know what is the /mnt/sda1 folder, but it looks empty.

    If I mount the USB stick manually, it works:
    tc@piCoreLMS:/mnt/sda1$ cd ..
    tc@piCoreLMS:/mnt$ sudo mkdir /mnt/LMSfiles
    tc@piCoreLMS:/mnt$ ls -l
    total 1
    drwxr-xr-x 2 root root 40 May 9 21:20 LMSfiles/
    drwxr-xr-x 2 root root 40 Jan 1 1970 mmcblk0p1/
    drwxr-xr-x 3 root root 1024 Nov 28 02:55 mmcblk0p2/
    drwxr-xr-x 2 root root 40 Jan 1 1970 sda1/
    tc@piCoreLMS:/mnt$ sudo mount /dev/sda1 /mnt/LMSfiles/
    tc@piCoreLMS:/mnt$ cd LMSfiles/
    tc@piCoreLMS:/mnt/LMSfiles$ ls
    Musique/ System Volume Information/
    Playlist/
    tc@piCoreLMS:/mnt/LMSfiles$

    And I can access the music files from squeezelite

    But all this will be lost at the first reboot, That's why I would like to do it as normally from piCore interface.

    What could be wrong ?

    JMF

  5. #5
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,163
    Can you check the output of dmesg....either command line or from the diagnostics page.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #6
    Junior Member
    Join Date
    Aug 2018
    Posts
    19
    Dear Paul,

    I'm kind of newby in Linux, but here are my findings in dmesg:
    [ 4.721605] sd 0:0:0:0: [sda] Write Protect is off
    [ 4.721610] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
    [ 4.721728] sd 0:0:0:0: [sda] Write cache: disabled, read cache: disabled, do esn't support DPO or FUA
    [ 4.723642] sda: sda1
    [ 4.724545] sd 0:0:0:0: [sda] Attached SCSI removable disk
    [ 10.210666] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
    [ 10.215662] bcm2835_alsa bcm2835_alsa: card created with 8 channels
    [ 10.261374] usbcore: registered new interface driver snd-usb-audio
    [ 11.148428] random: crng init done
    [ 11.419069] FAT-fs (sda1): Volume was not properly unmounted. Some data may b e corrupt. Please run fsck.

    I try to run fsck, but this gives :
    tc@piCoreLMS:/dev$ sudo fsck /dev/sda1
    fsck (busybox 1.29.3)
    fsck: fsck.vfat: No such file or directory

    I do not find how to move forward.

    JMF

  7. #7
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,719
    hi JMF11,

    You need to load dosfstools.tcz

    Use [Main Page] in [Advanced] mode > [Extensions]

    Before:

    Code:
    tc@pCPScreen:~$ sudo find / -name fsck* -print
    /sbin/fsck
    /usr/sbin/fsck.ext4
    /usr/sbin/fsck.ext4dev
    /usr/sbin/fsck.ext2
    /usr/sbin/fsck.ext3
    After:

    Code:
    tc@pCPScreen:~$ sudo find / -name fsck* -print
    /tmp/tcloop/dosfstools/usr/local/sbin/fsck.fat
    /sbin/fsck
    /usr/sbin/fsck.ext4
    /usr/sbin/fsck.ext4dev
    /usr/sbin/fsck.ext2
    /usr/sbin/fsck.ext3
    /usr/local/sbin/fsck.fat

  8. #8
    Junior Member
    Join Date
    Aug 2018
    Posts
    19
    Thanks Greg,

    I installed the tool, but my USB stick seem to be seen as vfat. dosfstools.tcz installs a .fat file
    sudo fsck /dev/sda1
    fsck (busybox 1.29.3)
    fsck: fsck.vfat: No such file or directory

    I will try to do the check on an Ubuntu machine.

    By the way, what I don't understand is why the mount fails through LMS interface, but works straight forward manually ?!?!

    Best regards,

    JMF

  9. #9
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,719
    This may help?

    http://forum.tinycorelinux.net/index...html#msg122910

    EDIT: Read next post before you do anything.
    Last edited by Greg Erskine; 2019-05-11 at 01:08.

  10. #10
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,719
    hi JMF11,

    It looks like mkfs.vfat is part of busybox.

    Code:
    tc@pCPScreen:~$ busybox
    BusyBox v1.30.1 (2019-02-16 11:05:26 EST) multi-call binary.
    BusyBox is copyrighted by many authors between 1998-2015.
    Licensed under GPLv2. See source distribution for detailed
    copyright notices.
    
    Usage: busybox [function [arguments]...]
       or: busybox --list[-full]
       or: busybox --install [-s] [DIR]
       or: function [arguments]...
    
            BusyBox is a multi-call binary that combines many common Unix
            utilities into a single executable.  Most people will create a
            link to busybox for each function they wish to use and BusyBox
            will act like whatever it was invoked as.
    
    Currently defined functions:
            [, [[, addgroup, adduser, adjtimex, ar, arch, arp, arping, ash, awk, basename, bunzip2, bzcat, bzip2,
            cal, cat, chgrp, chmod, chown, chpasswd, chroot, chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond,
            cut, date, dc, dd, deallocvt, delgroup, deluser, df, dhcprelay, diff, dirname, dmesg, dnsdomainname,
            dos2unix, du, dumpkmap, dumpleases, echo, egrep, eject, env, ether-wake, expr, false, fbset, fbsplash,
            fdflush, fdisk, fgconsole, fgrep, find, flock, fold, free, freeramdisk, fsck, ftpget, ftpput, fuser,
            getopt, getty, grep, groups, gunzip, gzip, halt, hdparm, head, hexdump, hexedit, hostid, hostname,
            httpd, hwclock, id, ifconfig, ifdown, ifup, inetd, init, install, ionice, ipcalc, ipcrm, ipcs, kill,
            killall, killall5, klogd, last, less, linux32, linux64, ln, loadfont, loadkmap, logger, logname,
            logread, losetup, ls, lsof, lsusb, lzcat, lzma, lzop, lzopcat, md5sum, mesg, microcom, mkdir, mkdosfs,
            mkfifo, mkfs.vfat, mknod, mkswap, mktemp, more, mv, nameif, nbd-client, nc, netstat, nice, nohup,
            nslookup, ntpd, od, openvt, patch, pgrep, pidof, pivot_root, pkill, poweroff, printenv, printf, ps,
            pstree, pwd, rdate, readlink, realpath, reboot, renice, reset, resize, rev, rfkill, rm, rmdir, route,
            run-parts, script, sed, seq, setarch, setconsole, setkeycodes, setserial, setsid, sh, sha1sum, sleep,
            sort, split, start-stop-daemon, stat, strings, stty, sulogin, sum, svc, swapoff, swapon, switch_root,
            sync, sysctl, syslogd, tail, tar, taskset, tee, telnet, test, tftp, tftpd, time, timeout, top, touch,
            tr, true, truncate, tty, udhcpc, udhcpd, udpsvd, uname, uncompress, uniq, unix2dos, unlink, unlzma,
            unlzop, unxz, unzip, uptime, usleep, uudecode, vconfig, vi, watch, watchdog, wc, wget, which, who,
            whoami, xargs, xz, xzcat, yes, zcat
    Code:
    tc@pCPScreen:~$ which mkfs.vfat
    /sbin/mkfs.vfat

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •