Grub installs on USB-drive not hdd

    • OMV 1.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Grub installs on USB-drive not hdd

      Hi,

      Im new to omv but I've read and prepared a lot. I made a usb memory with Rufus and omv 1.0.
      Everything works great, but when I remove the usb drive it doesn't boot, because grub installs on the usb and not my sata disk .

      I've tried different sataports and usbports and changing boot order in bios. But the usb stick is always sda and grub installs here.

      Please help me!
    • Is the USB used to install OMV? Grub cannot install on the USB, if it is being used to install the OS to a hard drive... so I'm confused how this is happening. I've never heard of Rufus, but it looks like it is basically just like unetboootin.

      Disconnect all drives except for your installation media, and the drive you're intending to install OMV onto. After the install is complete, shut down, reconnect your storage drives. Then boot the machine and make sure the OS drive is first in your boot sequence.
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • We have another Thread with the same problem here:
      Boot Grub loader for OMV-1 ISO install onto usb stick instead of SSD

      The user was so kind to open a Bug-Report: bugtracker.openmediavault.org/view.php?id=1099

      I closed the other thread. Please discuss the bug here.
      Thx
      "Glowing days. Don't cry because they are over. Smile because they happened." - Confucius

      Server: 1x 32GB SSD (system) - 5x 2TB Data - 1x 2TB Snapraid-Parity - latest OMV 1.x
      No Support through PM
      Tutorials --- Howto install OMV-Extras --- Upgrade/Update-Problems --- If autoshutdown doesn' -work

      The post was edited 1 time, last by Solo0815 ().

    • In the Debian-User-forums someone has the same problem:
      forums.debian.net/viewtopic.php?f=17&t=102889

      Please have a look in your BIOS and check whether you have a option to "Detect USB-Drives as HDD". If yes, please turn it off and try again.
      "Glowing days. Don't cry because they are over. Smile because they happened." - Confucius

      Server: 1x 32GB SSD (system) - 5x 2TB Data - 1x 2TB Snapraid-Parity - latest OMV 1.x
      No Support through PM
      Tutorials --- Howto install OMV-Extras --- Upgrade/Update-Problems --- If autoshutdown doesn' -work
    • Not the reason tekk... not the reason.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • I don't think that is the problem though. It is my BIOS that reads my USB stick as a HDD. And I don't have any settings in BIOS to not make it appear as a HDD. Because no matter what I do the USB stick is considered the main disk, the sda. And as I don't have any alternative to select where to install GRUB (this is done automatically) it does end up on the sda, which is the USB stick.
      This is my problem, I guess I have to lend a DVD-reader and burn a DVD instead!
    • Volker fixed the grub behaviour some time ago. It should install to the drive which was selected for installation.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • davidh2k_temp wrote:

      Volker fixed the grub behaviour some time ago. It should install to the drive which was selected for installation.

      Greetings
      David

      Okey, but I am using the 1.0.20, has this changed in 1.0.21? Because belive me, it doesn't work, I tried multiple times with no success, diffent USB-ports, different BIOS settings etc.

      tekkb wrote:

      You did not try win32diskimager did you?

      What difference would it make? Rufus makes a bootable USB stick w/o a problem, everything else installs on the HDD, sounds wierd if this would solve the Grub problem?
    • I'm not sure if the USB stick triggers anything that would avoid volkers fix that grub is written to the right drive.

      And no, the fix was in some earlier version

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • You can put the HDD in another system (as the only drive) and install OMV on it. After that, you can put the HDD back in the OMV-machine, boot and run omv-firstaid to reconfigure your network. The first NIC will be eth1, omv-firstaid will fix this.
      "Glowing days. Don't cry because they are over. Smile because they happened." - Confucius

      Server: 1x 32GB SSD (system) - 5x 2TB Data - 1x 2TB Snapraid-Parity - latest OMV 1.x
      No Support through PM
      Tutorials --- Howto install OMV-Extras --- Upgrade/Update-Problems --- If autoshutdown doesn' -work
    • Fairly easy fix, as I noticed the same thing. When it is at the point where it says "hit enter to reboot":

      Hit ALT+F2 to take to a new screen then hit enter to activate the console then type:

      Source Code

      1. For SATA drives:
      2. grub-install /dev/sda
      3. For IDE drives
      4. grub-install /dev/hda

      (or b etc as it applies to you) hit enter..
    • I tried all of the above suggestions to no avail with my usb thumbstick (used rufus like others to create the cd image). Easiest way I found was to boot with both drives after installation and run:

      sudo dpkg-reconfigure grub-pc

      enter through the default values until you get to the listed devices and select the actual drive you want for grub to be booted from and select that. You can then boot without the thumb stick.

      Grub would not let me reconfigure using:

      sudo grub-install /dev/sdb
      sudo update-grub

      It threw errors.
    • I had exactly the same issue this evening. Downloaded 1.0.20 (seemingly most recent version from the omv site), wrote the iso to a USB drive using unetbootin, installed omv on a SSD and then could only boot with the USB attached. pw2002au's solution fixed it, but it would throw a new user i guess.

      Probably down to a particular BIOS, USB drive, HD drive combination, but still. It's a bummer.

      pw2002au wrote:


      sudo dpkg-reconfigure grub-pc

      enter through the default values until you get to the listed devices and select the actual drive you want for grub to be booted from and select that. You can then boot without the thumb stick.
    • I am experiencing the same issue. I am attempting to install OMV (1.9 amd64 ISO from sourceforge) onto a USB hard drive (in order to save a SATA port) from a bootable USB thumb drive.

      The installation goes off without a hitch... except when GRUB installs. I noticed that the USB thumb drive (OMV ISO) is identified as /dev/sda and my USB HDD is identified as /dev/sdb. During installation I get a warning about multiple disks present. I select the USB HDD (/dev/sdb) and the installation proceeds. When it gets to the GRUB installation, I noticed (only a brief moment on-screen) that it was installing GRUB to /dev/sda (my USB stick), and sure enough after installation I cannot boot from the usb stick anymore and have to re-image the ISO (with Win32DiskImager). I also could not boot the USB HDD that OMV was installed on.

      I tried tx.canyon's solution:

      Source Code

      1. ~#: grub-installer /dev/sdb

      but I get the error: "ls: /dev/sdb/proc: Not a directory"

      As part of another test, I tried a freshly imaged USB drive onto the same HDD (except now plugged into a SATA port) and the installation was 100% successful.

      Has anyone else managed to install OMV onto a USB hard drive?
    • I managed to solve the issue by booting a GParted live CD/USB and following the accepted answer on this page: http://askubuntu.com/questions/207663/cannot-update-grub-with-paramters-on-live-usb

      (I initially tried these steps: gparted.org/display-doc.php?na…ted-fix-grub-boot-problem
      but received an error when running grub-install, I suspect because --root-directory was not provided)

      I'm very happy to have an extra SATA port now :)