Running Onion Omega 2 from the USB external storage device



  • Hello,

    I'm trying to expand the storage space on my Onion Omega2 (attached to an Arduino Dock 2) using a USB storage device with 15 GB of space. I could successfully format the file system on the device to the required ext4 file system, as explained in: https://docs.onion.io/omega2-docs/boot-from-external-storage.html

    However, the rest of the instructions didn't work. When I try to run

    opkg install kmod-usb-storage-extras e2fsprogs kmod-fs-ext4

    I get the following output after some steps:

    Configuring libuuid.
    Configuring libext2fs.
    Configuring e2fsprogs.
    Collected errors:

    • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-storage-extras:
    • kernel (= 4.4.74-1-97eec485b1ee24d5b1ca0357d1dd7304) *
    • opkg_install_cmd: Cannot install package kmod-usb-storage-extras.
    • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-ext4:
    • kernel (= 4.4.74-1-97eec485b1ee24d5b1ca0357d1dd7304) *
    • opkg_install_cmd: Cannot install package kmod-fs-ext4.

    I would appreciate any help in overcoming this error.

    Sincerely,
    Aman Chawla


  • administrators

    @Aman-Chawla
    Please refer to the similar community post that will help you to resolve your issue!



  • @Pavel-Metrokhin I ran the instructions on the thread you mentioned. It returned the following:

    root@Omega-****:/# opkg install kmod-fs-ext4_4.4.74-1_mipsel_24kc.ipk --nodeps
    Installing kmod-fs-ext4 (4.4.74-1) to root...
    Configuring kmod-fs-ext4.
    Configuring kmod-usb-storage-extras.
    ums-alauda is already loaded
    ums-cypress is already loaded
    ums-datafab is already loaded
    ums-freecom is already loaded
    ums-isd200 is already loaded
    ums-jumpshot is already loaded
    ums-karma is already loaded
    ums-sddr09 is already loaded
    ums-sddr55 is already loaded
    ums-usbat is already loaded
    Collected errors:

    • pkg_run_script: package "kmod-usb-storage-extras" postinst script returned status 255.
    • opkg_configure: kmod-usb-storage-extras.postinst returned 255.

    Sincerely,
    A C



  • Here is my method (works with both external USB drives and the sd card just change the /mnt/xxxx and /dev/xxxx), ignore opkg errors:

    opkg update
    opkg install kmod-usb-storage-extras e2fsprogs kmod-fs-ext4 block-mount
    
    #setup for external drive#
    mkdir /mnt/sda1
    mkfs.ext4 /dev/sda1
    mount /dev/sda1 /mnt/sda1
    mkdir -p /tmp/cproot
    mount --bind / /tmp/cproot
    tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda1 -xf -
    umount /tmp/cproot
    block detect > /etc/config/fstab
    vi /etc/config/fstab    #configure like this#
    
    config mount
        option target        /
        option device        /dev/sda1
        option fstype        ext4
        option options       rw,sync
        option enabled       1
        option enabled_fsck  0
    
    reboot
    df -h #check sda1 is mounted as /#
    


  • @austin-Sandford Thanks it worked!!



Looks like your connection to Onion Community was lost, please wait while we try to reconnect.