Installing OMV on EUFI (J4105) Tutorial Available?

  • I just put together a pc using a Asrock J4105-ITX motherboard which I just realised can't install OMV from USB because of EUFI.


    I found a few posts suggesting to install Debian, I followed this guide with the exception of hitting install instead of Grpahical Install: https://www.pcsuggest.com/debian-minimal-install-guide/


    When I reboot I'm presented with a login, I login with my username and password, I ran the command at the end of the site linked above and this is where I get stuck, I don not know what to do from here?


    I don't understand what to do with the instructions in this forum post: Install OMV4 on Debian 9 (Stretch)


    Also is it in anyway possible to connect to the server box via a browser or something?


    Just to note, when I ran this command it did a load of stuff and there was some sort of error message: sudo apt-get install firmware-linux firmware-linux-free firmware-linux-nonfree


    ---edit---


    If I used a CD or DVD would I be able to install despite the uefi bios? I just realised I have a old sata dvd I could use, I just need to find a blank cd/dvd

    • Offizieller Beitrag

    There are issues when installing using a USB drive as a source and installing to a USB drive that will be the boot drive. A USB thumbdrive can be used as a boot drive, but a couple build issues are eliminated by using a CD as the installation source.
    _____________________________________


    The first thing I'd try would be burn a CD, from the OMV ISO. Usually, even on UEFI booting machines, there's a UEFI boot menu. Select the CD/DVD drive from the boot menu and see what happens.


    (If that doesn't work)
    _____________________________________


    First you'll need to install PuTTY on a Windows machine. (The PuTTY client will allow you to SSH into your server and get on the server's command line, from a Windows machine.)


    Make a CD of Debian 9, the "net install" version. (Do the text install to see the needed selection of software - specifically the SSH server.)


    As you go through the Debian installation, when you get to software selections, deselect everything except for "standard system utilities" and the "SSH server". (Installing the SSH server is needed, to be able to copy and paste the install script.)


    When the Debian install boots for the first time, you'll need to log in with the username+password you set up during the install.
    Then, at the prompt type:
    ip addr


    Note the IP address.
    _____________________________________


    Open PuTTY on the Windows Client. Type in the IP address from above, in the Host Name box, and click on Open.


    At the prompt, type in your username and password.
    Then type in; su - root
    (and enter the root password)


    At this point you'll be able to copy and paste the scripts from -> here .
    On the windows machine highlight and copy sections of the install script. This can be pasted onto PuTTY, on the servers command line, by a right click of the mouse button.


    ((If a section doesn't paste in just right, the scripts can be pasted in again.))


    At this point OMV should initialize (this may take awhile) and the Web GUI console IP address should come up.
    I'd reboot one more time shutdown -r


    When OMV comes up, the Web GUI address should be displayed. (If not login and type ip addr
    Use this IP address in a web browser.
    The username is, in the web browser is admin and the default password is openmediavault


    _____________________________________________


    From there, perhaps this guide may be useful.

  • Thanks flmaxey for the indepth response! I have a bunch of threads/videos bookmarked ready to go for all the various things I'm expecting of this server, this uefi problem was unforseen and way out of my depth to resolve solo. I think I may have also come across the link you posted!


    I'm going to try and get myself a blank cd/dvd (presumably it fits on a cd) and burn a disc, if I have time I'll install this eve or over the weekend.


    I may have skipped the ssh bit in the installer, either way, I'll re-install from a disc and hopefully all will work as intended!


    openmedianer: I didn't read that, as I mentioned, I have everything I thought I needed to get started ready to go in bookmarks, the uefi bit was unforseen! Unfortunately I can't disable uefi on this mobo.

  • Hello, look this:


    https://www.asrock.com/MB/Inte…ndex.de.asp#Specification


    Your Mainboard is OMV supported:


    Anyone with experience fo ASRock J4105 or J4005B ITX Mobo


  • So I had a go at this, my dvd drive wasn't recognised and I couldn't boot from the disc (ISO downloaded and burned to disc using windows built-in burning).


    I then tried through putty, I don't think something is working right though



    Nothing seems to happen after the first shell script and the second throws some errors?


    I found that thread also but I didn't see how he got it setup in the end. I've installed Debian as per this link https://www.pcsuggest.com/debian-minimal-install-guide/ and suggestion above. I did not however do the very last bit of getting repositories and sudo

    • Offizieller Beitrag

    Nothing happens after the first script. This one sets install sources.


    I'm going to assume that you tried the second script more than once, and in 4 to 5 line chunks as well. (I've seen the "sense" true/false error before when building a VM. It doesn't seem to affect anything. In any case, maybe your variables are good enough.


    (Maybe one of the Dev's could chime in on this...)
    ________________________________________________________________________


    Try the following, on the command line as root:


    apt-get install openmediavault


    This will take awhile. When it's done, reboot.

  • I tried a few things, can't remember in which order. If it means reinstalling debian again I will? Maybe I have the wrong version? The file I downloaded is this: debian-9.6.0-amd64-netinst.iso


    Nothing happens when I run that command


    Code
    jozi@debian:~$ su - root
    Password:
    root@debian:~# apt-get install openmediavault
    E: Type 'cat' is not known on line 10 in source list /etc/apt/sources.list.d/openmediavault.list
    E: The list of sources could not be read.
    E: Type 'cat' is not known on line 10 in source list /etc/apt/sources.list.d/openmediavault.list
    E: The list of sources could not be read.
    root@debian:~#
    • Offizieller Beitrag

    debian-9.6.0-amd64-netinst.iso

    While I havn't done a script install of the 64bit version, it shouldn't matter. That should be the right one.



    Something, in the first script of two (sources) in your install didn't take. I'm going to do a quick build in a VM, using that ISO, and see what happens.

    • Offizieller Beitrag

    OK, I installed debian-9.6.0-amd64-netinst.iso and added only SSH and tools as mentioned above. I took the defaults, installed grub on the boot drive, "use the entire drive", "one partition", etc.
    ______________________________________________________________


    VIA PuTTY and SSH:
    I applied the first script which creates openmediavault.list.


    cat <<EOF >>/etc/apt/sources.list.d/openmediavault.list
    deb http://packages.openmediavault.org/public arrakis main
    # debhttp://downloads.sourceforge.net/project/openmediavault/packagesarrakis main
    ## Uncomment the following line to add software from the proposedrepository.
    # deb http://packages.openmediavault.org/public arrakis-proposedmain
    # debhttp://downloads.sourceforge.net/project/openmediavault/packagesarrakis-proposed main
    ## This software is not part of OpenMediaVault, but is offered bythird-party
    ## developers as a service to OpenMediaVault users.
    # deb http://packages.openmediavault.org/public arrakis partner
    # debhttp://downloads.sourceforge.net/project/openmediavault/packagesarrakis partner
    EOF
    ______________________________________________________________


    I then applied the second script in 4 sections as shown below. An empty line is the end of section. (This is not necessarily required - it's a personal preference to see what has happened before proceeding.)


    export LANG=C.UTF-8
    export DEBIAN_FRONTEND=noninteractive
    export APT_LISTCHANGES_FRONTEND=none
    wget -O "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" https://packages.openmediavault.org/public/archive.key
    apt-key add "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc"


    apt-get update


    apt-get --yes --auto-remove --show-upgraded \
    --allow-downgrades --allow-change-held-packages \
    --no-install-recommends \
    --option Dpkg::Options::="--force-confdef" \
    --option DPkg::Options::="--force-confold" \



    install postfix openmediavault-keyring openmediavault
    # Initialize the system and database.
    omv-initsystem
    # Rebuild configurations.
    omv-mkconf interfaces
    omv-mkconf issue
    # Display the login information.
    cat /etc/issue


    (** I got "autosense not understood" and "command not found" starting install postfix through to the the last omv-mkconf command... I ignored this. **)
    _________________________________________________


    I checked sources with the command:
    apt list openmediavault


    The output was:
    Listing... Done
    openmediavault/arrakis 4.1.17-1 all


    This verified OMV is available for installation.
    _________________________________________________


    Then I used:
    apt-get install openmediavault


    It took a bit for all to download and install.


    When the install was done I did:


    shutdown -r now


    _________________________________________________


    When the system rebooted I logged into the command line one more time, ( su - root), and applied the following to finish up:


    omv-mkconf interfaces
    omv-mkconf issue
    cat /etc/issue


    With the ip address provided in the console, I opened the web GUI.

  • I just did a reinstall, all defaults except for language and location to reflect those for Ireland, network I used WORKGROUP (same as my windows machines) and finally I installed SSH and System Utilities (presumably this is what you meant for Tools?).


    I've reboot the system, loged in as myself and the SU to root


    I've copied the first script, line for line as per your post followed by the second script also line for line.


    The first part, it downloaded something and the final line was followed by an OK


    I get an error for the apt-get update see below


    I'm not sure what that means but I continued with the other lines


    I didn't notice anything happening when doing these lines:


    apt-get --yes --auto-remove --show-upgraded \
    --allow-downgrades --allow-change-held-packages \
    --no-install-recommends \
    --option Dpkg::Options::="--force-confdef" \
    --option DPkg::Options::="--force-confold" \



    Code
    root@debian:~# apt-get update
    E: Malformed entry 1 in list file /etc/apt/sources.list.d/openmediavault.list (URI parse)
    E: The list of sources could not be read.
    root@debian:~# apt-get --yes --auto-remove --show-upgraded \
    > --allow-downgrades --allow-change-held-packages \
    > --no-install-recommends \
    > --option Dpkg::Options::="--force-confdef" \
    > --option DPkg::Options::="--force-confold" \
    >

    Is this correct? I'm pretty sure something isn;t doing what it should somewhere?



    When I run this: apt list openmediavault I get the following:



    Code
    root@debian:~# apt list openmediavault
    E: Malformed entry 1 in list file /etc/apt/sources.list.d/openmediavault.list (URI parse)
    E: The list of sources could not be read.
    root@debian:~#


    I'm not sure it matters at all at this point but here is the hardware setup:
    - Asrock j4105-itx
    - 16gb ram
    - 64gb SSD (Cruial C300 I think)


    No other hardware installed at this moment.


    I installed via usb to the ssd drive.


    Flmaxey: I really appreciate time time and effort you are putting into help me out with this. My knowledge fall short long before this post has, it was supposed to just work!

  • I just installed an earlier version of Debian and I think it's working, I've ran almost all of the 2nd script and it's downloading a bunch of things now!


    ---edit---


    Getting a lot of errors after: omv-initsystem


    n:~# W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169


    I'm just wondering about the beow which I copy pasted exactly as is


    cat <<EOF >>/etc/apt/sources.list.d/openmediavault.list
    deb packages.openmediavault.org/public arrakis main
    # debhttp://downloads.sourceforge.net/project/openmediavault/packagesarrakis main
    ## Uncomment the following line to add software from the proposedrepository.
    # deb packages.openmediavault.org/public arrakis-proposedmain
    # debhttp://downloads.sourceforge.net/project/openmediavault/packagesarrakis-proposed main
    ## This software is not part of OpenMediaVault, but is offered bythird-party
    ## developers as a service to OpenMediaVault users.
    # deb packages.openmediavault.org/public arrakis partner
    # debhttp://downloads.sourceforge.net/project/openmediavault/packagesarrakis partner
    EOF


    Should I have removed some of the # from the code?

    • Offizieller Beitrag

    While it wouldn't make a difference during the base Debian install, workgroup is not necessary. This can be changed in the GUI when OMV is up and running.
    ___________________________________________________________________________________________________


    Installing from a USB drive, to as USB drive, is fine if it works for you.
    (Depending on the systems BIOS, some get kicked into initramfs due to a device naming issue. Others have no problem.)
    If you're installing from a USB drive to an SSD attached to a SATA port, there's no problem at all.
    ___________________________________________________________________________________________________


    The problem seems to be related to the file created by the first script;
    /etc/apt/sources.list.d/openmediavault.list


    On the command line do:
    nano /etc/apt/sources.list.d/openmediavault.list


    Compare what you have to what I have below:

    deb http://packages.openmediavault.org/public/ arrakis main
    deb https://openmediavault.github.io/packages/ arrakis main

    # deb http://downloads.sourceforge.n…/openmediavault/packages/ arrakis main
    ## This software is not part of OpenMediaVault, but is offered by third-party
    ## developers as a service to OpenMediaVault users.
    deb http://packages.openmediavault.org/public/ arrakis partner
    # deb https://openmediavault.github.io/packages/ arrakis partner
    # deb http://downloads.sourceforge.n…/openmediavault/packages/ arrakis partner


    If yours is different, make it like the above. Then do Ctrl+X, Y, and Enter. Otherwise, with no edits, Ctrl+X will let you exit.


    ________________________________________________________________________


    When you change to root are you use this exact command?
    su - root

    That's su space - space root
    ________________________________________________________________________


    The process I spelled out in the previous is post is exactly what I did, in the order I did it. The only differences I can think of would be regional, such as the sources for the Debian install.


    But, you know, it could be some sort of wide spread conspiracy to oppress the Irish! :)
    ________________________________________________________________________


    Let me know what you found in the openmediavault.list file.


    Hang in there. If this doesn't work, there's at least one more option.

  • Hi Flmaxey


    I'm not sure if you missed my last post or if I edited it? I decided to try the previous version of Debian and low and behold it worked! I still got a bunch or errors but I'm able to login to OMV through my browser :)


    I think the difference in version might have had to do with oppression :P


    ------edit------


    Is it normal not to be able to login through putty once OMV is setup?


    Another thing I noticed is that I can't upgrade with either of the 2 packages there as it throws errors

    • Offizieller Beitrag

    My wife says hi. (Family name was O'Dwyer.) With my ancestry being English from way back and with her being Irish, I know something about "oppression". :) Fortunately, "the troubles" have never visited this household.
    ____________________________________________________________________________________________


    Another thing I noticed is that I can't upgrade with either of the 2 packages there as it throws errors

    Again, this might to be a sources issue. (That seems to be the common theme here.) Maybe, in a fresh Debian install, select sources that are in the US?


    Is it normal not to be able to login through putty once OMV is setup?

    I'm not sure what the defaults are with a scripted install but it can be changed:
    Go to Services, SSH, and enable SSH and Permit Root Login.


    What version of OMV are you running? 3.X? (You can find this under Diagnostics, :sleeping: System Information.)
    _____________________________________________________________________________________________


    The other install option I was going to mention was:
    - On Windows (64bit) client with a CD/DVD drive, with a USB thumbdrive (16 to 32GB), and an OMV CD.
    - Change the boot order to allow booting from CD and USB
    - Boot on the CD and build the USB thumbdrive as an OMV boot drive. (Being careful to leave the installed Windows hard drive alone)
    - Boot on the thumbdrive, one time, as a test.
    - Move the thumbdrive to the destination server (Where the boot order has been changed to allow USB boot.)


    I've done this before with a true headless server. If no exotic hardware is involved, it works.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!