Qubes 3.0 won't install... "No bootable device"

280 views
Skip to first unread message

neilh...@gmail.com

unread,
Jul 10, 2016, 9:28:29 AM7/10/16
to qubes-users
I wrote the QUBES 3.0 ISO to an external HDD.

Then I ran the installation, to install QUBES to the local internal HDD.

Works fine. Tells me all done and restart.

Yet, it then says "no bootable device", and press ENTER to go back to BIOS boot selection.

Previously, I tried installing QUBES 3.1, and I think I may have messed up the steps here

https://www.qubes-os.org/doc/uefi-troubleshooting/

I messed up steps 6 to 10, so that may be the problem.

In any event... it's at the point where it just will not boot.

I don't know what to do.

I have a Windows recovery disc, so I am able to re-install Windows 8.1 whenever I want.

But I'm really trying to get rid of Windows 8.1 and install QUBES

I had no problems installing to an external HDD to test it out.. but now I want it on my main system... and it just won't boot.


What do I do...?? How do I get QUBES to boot....??

donoban

unread,
Jul 10, 2016, 9:38:57 AM7/10/16
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
It sounds like a problem with Grub installation, could you try with
Qubes 3.1 disabling UEFI? Also you could have more chances with Qubes
3.2rc-1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXgk/sAAoJEBQTENjj7QilSFkP/26ApPyt5jl9JFaYSqFumHDp
JJNF+ooJ82vb6WL5eklRZ87fY/GOgrQLMt6UptBrTMhFH/OQCCffIqEoT9ou/uJa
xgc4qQ6JsqucNo9EMYRicLyz4A3R7Z86sIvc35HYPHEbld+w6MpJk3Pd+2MeqyKo
nrFiEeeC7A7CVtA6A/aa46/h8nUupiE/UrBfGk7bI8Lngqwdv9laTE0EolI3U5kR
RuH/uWgEOGe15h9GH+2Ci+lMrZk8Ww+EBPGinDmS6FUzV73knnMixipwwFAxNPUU
SYFsoUTpHidNLOQSmuMrAgnEUuYeqnvVyYe7PhEKjcbAjtIAcyQOveqk8muiSEXn
Oo+zOJ7vdnpuwTVI/MtWct91DcLcsl1RLpKKuO/tekdqPf7fgEleWR3+qiLIg3/8
B7bL77qzw5QgpBMUKoCe5E+gj0RhMOTf1AaC2GVyYkbkyPbzbs/lS9wrkkoi+wfq
4gKT8fAg7XOC8/shV3gQLotOQ1P2JvJ7YMT/Ywhi6VeOq+yNi12m/krx4JMy9dhG
oOzlY9a7OSWmjBV/639JTJMWT6WvPFdDZg23xUGapIX9AV4qaQkdAYgXVkyLUY5S
T5bjG8DSmn/XMNMq4VcifMpdslHDOB+9VHcz0z7iDS5JRHqPopwBi7ro19tMAQr+
RvBZ003iH58ERLRwx3SM
=YPT4
-----END PGP SIGNATURE-----

neilh...@gmail.com

unread,
Jul 10, 2016, 10:50:15 AM7/10/16
to qubes-users
My EUFI is disabled and i still get the message "bootable device was not found"

What do i do?

donoban

unread,
Jul 10, 2016, 11:10:37 AM7/10/16
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


But was UEFI enabled when you did the installation? If yes try
reinstalling, if no I don't know...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXgmVpAAoJEBQTENjj7QilVa8P/0ElYRL/1Iu4DGquTDV7XrAY
inFVODe/v0KPt8/TuX9J9b41Igsv/59zaKYwR6kNJ+RjCNnikqL6hciwbVWkKAP6
kmFB77JIrjnkRW5odRRR4zHE2CdZr37MhrQAAa4UPvJg0hqKamvMjQx0Qe3ZuCyq
lFIQlxeIK99tAffW2ZSleJW3VDm7wXGeDLECMc1gABB2Usv3SL7IKccFvBlct93F
szt3blmWU6gm/eRhb8N7o1l8aj38WQeiko713Kn6lbYfiyzsrvu+mh7ixd+M6wfD
JbjZmotE+s1fE/tJq2CvoEFv74deYnohS2HBZwfmMR6mcRqj5VzuJ9ydKoCYBFkl
fnuRGYjZf0069qpFNszVMHHaP36Bzto09QnVrS7C6zBzJGjPUUjt8XdXhPyaFn6Q
1R7y00TcffnJbgc6KOlkLcxM0JIMDfOVLgvVuMqWyyLRjj3G9PjlaNnsDK9tzFz+
EK+NmIIFgk3yYHxhC0gtSI9GbqJWysi9s+88unoznlqlRWwOWmLY2FhQf0BnfMZT
VrG201oMJ3itgE5uxuIj0Yom3uupP/fagYa1qCSCgKvXOXV9gaIKBlN/2ip9a3+f
/Yle1xS74Y4NvPDubJyVK0ETAHp5HOI39x1XhoiGkNRQsNVylKIWu7WjOU38xIRU
luOrlM2dnUoiP4Jwjfe4
=coVp
-----END PGP SIGNATURE-----

neilh...@gmail.com

unread,
Jul 10, 2016, 11:18:46 AM7/10/16
to qubes-users, don...@riseup.net
It was all disabled from the start.

It simply will not work.

As I say, it can install to an external HDD just fine. Just not the local drive.

donoban

unread,
Jul 10, 2016, 11:28:51 AM7/10/16
to qubes...@googlegroups.com
I think it has some problem with Grub (the bootloader), are you sure you
are installing it on the right device? The external HDD is an USB HD?
How is it mapped on the installer? /dev/sdb?

neilh...@gmail.com

unread,
Jul 10, 2016, 11:33:19 AM7/10/16
to qubes-users, don...@riseup.net
In the installer, it shows the USB external HDD, and the local HDD.

I am currently in a Ubuntu live disc, and in the partition manager, it shows

partition -- file system -- size -- used -- flags

/dev/sda1 -- ext4 -- 500MB -- 155.12MB -- boot

/dev/sda2 -- crypt-luks -- 698.15GB -- N/A -- N/A

neilh...@gmail.com

unread,
Jul 10, 2016, 11:41:23 AM7/10/16
to qubes-users, don...@riseup.net, neilh...@gmail.com
One thing I notice is that I used to be able to press F12, and get the HDD as a boot option.

Now it's just missing altogether.

donoban

unread,
Jul 10, 2016, 11:46:36 AM7/10/16
to qubes...@googlegroups.com
You could try doing "grub2-install /dev/sda" but I think you need to
mount and chroot your Qubes root and boot partitions.

look here:
http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd

neilh...@gmail.com

unread,
Jul 10, 2016, 12:11:06 PM7/10/16
to qubes-users, don...@riseup.net
OK... This is what I get

ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt
ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt
mount: block device /dev/sda2 is write-protected, mounting read-only
NTFS signature is missing.
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

neilh...@gmail.com

unread,
Jul 10, 2016, 1:19:09 PM7/10/16
to qubes-users, don...@riseup.net, neilh...@gmail.com
It may be possible that I'm following the EUFI guidelines incorrectly.

Replace existing Qubes entry with modified one. Replace XXXX with entry number from previous step, /dev/sda with your disk name and -p 1 with /boot/efi partition number):

With this.... for example.. how am I supposed to know the /boot/efi partition number...? What would the number usually be?

I have no clue.. errgh. Just my guess... I think I'll leave this one to the experts.... I am very confused.

raah...@gmail.com

unread,
Jul 10, 2016, 1:22:38 PM7/10/16
to qubes-users, don...@riseup.net, neilh...@gmail.com

Do you have option in bios to use legacy boot mode? Might be easier, thats what I do. Apparently there is no security benefit to using uefi.

donoban

unread,
Jul 10, 2016, 1:36:54 PM7/10/16
to neilh...@gmail.com, qubes-users
first do:
mkdir /mnt/root
mkdir /mnt/root/boot

mount /dev/sda1 /mnt/root/boot

/dev/sda2 is an encrypted luks, you have to do:

cryptsetup luksOpen /dev/sda2 luksRoot
[enter your passphrase]
mount /dev/mapper/luksRoot /mnt/root

then you have to bind some special folders

mount --bind /proc /mnt/root/proc
mount --bind /dev /mnt/root/dev

and finally do:

chroot /mnt/root

then try to reinstall grub.

donoban

unread,
Jul 10, 2016, 3:12:54 PM7/10/16
to qubes...@googlegroups.com

On 10/07/16 21:01, Frank wrote:
>
>
>> On 10.07.2016, at 19:36, donoban donoban-at-riseup.net
|qubes-mailing-list/Example Allow| <wo56j...@sneakemail.com> wrote:
>>
>>
>>
>>> On 10/07/16 18:11, neilh...@gmail.com wrote:
>>> OK... This is what I get
>>>
>>> ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt
>>> ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt
>>> mount: block device /dev/sda2 is write-protected, mounting read-only
>>> NTFS signature is missing.
>>> Failed to mount '/dev/sda2': Invalid argument
>>> The device '/dev/sda2' doesn't seem to have a valid NTFS.
>>> Maybe the wrong device is used? Or the whole disk instead of a
>>> partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
>>
>> first do:
>> mkdir /mnt/root
>> mkdir /mnt/root/boot
>>
>> mount /dev/sda1 /mnt/root/boot
>
> You have to do the second mkdir and this mount AFTER the other second
mount command listed below! Otherwise you will have grub installed in
completely the wrong places...


ouch yes. In fact the second mkdir is not needed, just mount your
crypted device on /mnt/root and you will have a /mnt/root/boot dir where
you can mount /dev/sda1

neilh...@gmail.com

unread,
Jul 10, 2016, 3:59:09 PM7/10/16
to qubes-users, don...@riseup.net
OK... I have found a solution.

Just use QUBES 3.2

I followed the instructions on the "EUFI Troubleshooting" page for QUBES 3.2.

I simply couldn't understand the instructions for 3.1.

So instead, the instructions are much easier for 3.2.

https://www.qubes-os.org/doc/uefi-troubleshooting/

In GRUB menu1 press e.

At the end of chainloader line add /mapbs /noexitboot.

Perform installation normally, but not reboot system at the end yet.

Go to tty2 (Ctrl-Alt-F2).

Edit /mnt/sysimage/boot/efi/EFI/qubes/xen.cfg (you can use vi editor) and add to every kernel section:

mapbs=1
noexitboot=1

Note: You must add these parameters on two separate new lines (one paramater on each line) at the end of each section that includes a kernel line (i.e., all sections except the first one, since it doesn’t have a kernel line).
Now you can reboot the system by issuing reboot command.

---------------

That's it. Problem solved.

It was nothing to do with EUFI or legacy boot or anything like that.

As I said, I had already done all the BIOS stuff.

Thanks for the help anyway.

donoban

unread,
Jul 10, 2016, 4:03:54 PM7/10/16
to neilh...@gmail.com, qubes-users
On 10/07/16 21:59, neilh...@gmail.com wrote:
> OK... I have found a solution.
>
> Just use QUBES 3.2
>
> ---------------
>
> That's it. Problem solved.
>
> It was nothing to do with EUFI or legacy boot or anything like that.
>
> As I said, I had already done all the BIOS stuff.
>
> Thanks for the help anyway.
>


Nice :)

raah...@gmail.com

unread,
Jul 10, 2016, 11:11:41 PM7/10/16
to qubes-users, don...@riseup.net, neilh...@gmail.com
Well that is related to eufi. But glad you got it sorted, and tks for the tip on which guide to use if I need to use a uefi bios mode in the future. awesome!

neilh...@gmail.com

unread,
Jul 11, 2016, 6:03:01 AM7/11/16
to qubes-users, don...@riseup.net, neilh...@gmail.com, raah...@gmail.com
I have to say.... from a user experience... figuring that all out was hell.

When you look at what I did.. I essentially added 2 main bits to the code

mapbs=1
noexitboot=1

I really just wonder.. if there's any reason QUBES developers couldn't just add these 2 lines themselves, so that the user doesn't have to do it.

I'm not an expert at all, so I could be totally wrong.... but I really wonder

Do any devs know the answer to this..?

Reply all
Reply to author
Forward
0 new messages