Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all,
Vanilla are planning an update to the site on April 24th (next Wednesday). It is a major PHP8 update which is expected to boost performance across the site. The site will be down from 7pm and it is expected to take about an hour to complete. We appreciate your patience during the update.
Thanks all.

Raspberry Pi OpenELEC USB

  • 20-09-2014 3:21pm
    #1
    Closed Accounts Posts: 603 ✭✭✭


    Apologies for this possibly stupid query but I'm fairly Linux ignorant. I've OpenELEC running on my Raspberry Pi and I followed the video "Raspberry pi: Install Openelec To USB In 5 mins" to have OpenELEC use USB for storage. (Sorry I'm not permitted to post links yet)

    Everything works fine afterwards, but I'm wondering how I can check that the USB is actually being used?

    Here's the output of df -h

    0p3n313c:~ # df -h
    Filesystem Size Used Available Use% Mounted on
    devtmpfs 181.3M 98.9M 82.4M 55% /dev
    /dev/mmcblk0p1 7.3G 108.1M 7.2G 1% /flash
    /dev/sda1 13.7G 17.0M 12.9G 0% /storage
    /dev/loop0 99.0M 99.0M 0 100% /
    tmpfs 186.2M 0 186.2M 0% /dev/shm
    tmpfs 186.2M 500.0K 185.7M 0% /run
    tmpfs 186.2M 0 186.2M 0% /sys/fs/cgroup
    tmpfs 186.2M 4.0K 186.2M 0% /tmp
    tmpfs 186.2M 180.0K 186.0M 0% /var
    /dev/sdb1 465.7G 438.4G 27.3G 94% /var/media/My Passport

    My SD card is 8GB and my USB is 16GB


    If the USB is not connected during bootup, I get

    Error in mount_storage: mount_common: Could not mount LABAL=STORAGE

    so obviously the USB is looked for during start up but is it actually used during operation of OpenELEC?
    Is there some way I can check?

    Thanks


Comments

  • Closed Accounts Posts: 824 ✭✭✭Kinet1c


    Post the output of these 2 commands:

    lsusb

    cat /etc/fstab


  • Closed Accounts Posts: 603 ✭✭✭Gentleman Off The Pitch


    Thanks Kinet1c

    lsusb

    Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
    Bus 001 Device 004: ID 0781:5580 SanDisk Corp.
    Bus 001 Device 005: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
    Bus 001 Device 006: ID 1058:0730 Western Digital Technologies, Inc.
    Bus 001 Device 007: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
    Bus 001 Device 008: ID 1c4f:0034 SiGma Micro
    Bus 001 Device 009: ID 04d9:1503 Holtek Semiconductor, Inc. Shortboard Lefty

    0p3n313c:/ # cat /etc/fstab
    0p3n313c:/ #

    0p3n313c:/etc # ls -altr | grep fstab
    -rw-rw-r-- 1 root root 0 May 28 00:25 fstab


  • Closed Accounts Posts: 824 ✭✭✭Kinet1c


    Sorry, meant to come back to this. Why have you not installed it to the SD card instead?


  • Registered Users Posts: 13,990 ✭✭✭✭Johnboy1951


    Here's the output of df -h

    0p3n313c:~ # df -h
    Filesystem Size Used Available Use% Mounted on
    devtmpfs 181.3M 98.9M 82.4M 55% /dev
    /dev/mmcblk0p1 7.3G 108.1M 7.2G 1% /flash
    /dev/sda1 13.7G 17.0M 12.9G 0% /storage
    /dev/loop0 99.0M 99.0M 0 100% /
    tmpfs 186.2M 0 186.2M 0% /dev/shm
    tmpfs 186.2M 500.0K 185.7M 0% /run
    tmpfs 186.2M 0 186.2M 0% /sys/fs/cgroup
    tmpfs 186.2M 4.0K 186.2M 0% /tmp
    tmpfs 186.2M 180.0K 186.0M 0% /var
    /dev/sdb1 465.7G 438.4G 27.3G 94% /var/media/My Passport

    It is mounted at the correct mount point.
    You can read the contents of that USB stick at any time it is not in use to confirm the expected directories are present.
    /dev/mmcblk0p1 7.3G 108.1M 7.2G 1% /flash

    That is the mount point for the SD card which holds the OS itself.


  • Closed Accounts Posts: 603 ✭✭✭Gentleman Off The Pitch


    Thanks lads, I use USB and SD since moving the root file system to USB is supposed to lead to improved performance.
    I have noticed that the number of Megs used in the USB stick has increased over time so it appears the Pi is using it as expected


  • Advertisement
  • Registered Users Posts: 13,990 ✭✭✭✭Johnboy1951


    Thanks lads, I use USB and SD since moving the root file system to USB is supposed to lead to improved performance.
    I have noticed that the number of Megs used in the USB stick has increased over time so it appears the Pi is using it as expected

    The OS itself is stored on the SD card and is loaded into memory when booted, from where it runs.

    The USB stick holds the configuration files, artwork etc etc that the OS accesses and/or saves during use.

    Because a USB stick has faster access, read & write, than an SD card, the delays experienced with access to such files is reduced.


Advertisement