Help me. I can no longer log in to Qubes. again

Hello, today Qubes suddenly froze and I couldn’t use it. Specific details will be written below. Please give me some advice on what caused this situation and how to solve it. Help me.

First, I wanted to transfer the data from the USB drive to Qubes, so I installed and created SYS-USB from Dom0 (Sys-USB was not present by default). The code for that is as follows.

sudo qubesctl state.sls qvm.sys-usb

When I inserted a USB flash drive and tried to boot sys-usb or open the USB flash drive, the screen froze. I didn’t accept all the operations for about 10 minutes, so I turned off the power and started Qubes again.
However, I got stuck with the Qube logo in the password scene (I can’t put a password), and then the following string appeared on the black screen.

By the way, I install Qubes on an external SSD (1TB) instead of a computer itself. Also, the USB memory was 256GB and there was almost 200GB of data inside.Also, I didn’t use much of Qubes’ data capacity, so there was a lot.

warnig: /dev/mapper/qubes_dom0-root does not exist
warnig: /dev/qubes_dom0/root does not exist
warnig: /dev/qubes_dom0/swap does not exist
warnng: crypto LUKS UUID f5dac0-f20c-4b13-b723-c906bf17cce5 not found
Generating /run/initramfs/rdsosreport.txt Entering emergency mode. Exit the shell to continue.
Typejournalctlto view system logs.
you might want to save /run/initramfs/rdsosreport.txtto USB stick or /boot after mounting them and attach it to a bug report.
press Enter for maintenance
(or press Control-D to continue):

At first, I thought there was a virus in the USB, but I think it’s different because I’ve connected this USB to Qubes before and there is no problem connecting it to other devices.

If you have any information you want to know, please let me know, and I will answer as much as I can. Please give me some advice.
I feel like I posted a similar thread before.

I also recently asked about Fourum’s service cube, but I don’t think it has much to do with this issue because I haven’t practiced much of the advice I received there.

If you install Qubes on a USB-connected external SSD, you cannot use a USB qube. You should be able to use the same recovery steps as usb keyboard users.

4 Likes

Thank you very much. Very useful information.
I was using a USB-connected external SSD. I don’t think the keyboard is a USB keyboard (although it is a laptop, there are also USB keyboards, so I am not sure).

I found out that my situation is the same as the situation in this article, but I don’t know how to solve it from there. (USB qubes — Qubes OS Documentation

n the article (USB troubleshooting — Qubes OS Documentation) you provided, you write a solution from DOM0., But, I don’t know how to access dom0 in my current situation.

I will look into it in more detail here, but I would be happy if you could continue to give me advice.

You have to edit options in GRUB. I don’t use that, so I can’t help you, but a search should give you the answers you need.

2 Likes

@phirip :

I think these are the steps…

  • When you see the grub screen, press the key ‘e’
    This will allow you to change the parameters of your boot.
  • Find the line with vmlinuz (use the arrow keys)
  • Go to the end of the line, using right arrow.
  • Type a space, then add this : qubes.skip_autostart
    This prevents all qubes from automatic starting.
  • Go to the left in the line, and delete the part rd.qubes.hide_all_usb
    This makes sure that USB controllers are accessible to Dom0.
  • Press the F10 key, to continue the boot.

Now the sys-usb qube will not be started, and your Dom0 will be able to read the files on your usb disk.

You should be able to start qubes-os.

  1. Turn off autostart for the sys-usb qube.
  2. See the instructions at https://doc.qubes-os.org/en/latest/user/advanced-topics/usb-qubes.html#how-to-hide-usb-controllers-from-dom0 but take away the hiding. Delete that word, like you did in grub.

Does it work when you reboot?

2 Likes

A little note:
I believe that sys-usb is possible with “Dom0 on a usb disk” only if you have at least two USB controllers, and they each have a socket on your PC.

2 Likes

Thank you phceac. Thanks to you, it worked. It was a very easy-to-understand explanation.

I couldn’t open the last Dom0 file, so I couldn’t do the last step. However, I was able to get Qubes up and running properly.

A little note Regarding this, does that mean that sys-USB cannot be used for USB connected SSDs?
I want to transfer files in USB to Qubes, do you know any other way?
In the article (USB qubes — Qubes OS Documentation) you provided, there are some mentions of USB Qube for USB keyboards. Do these apply to my case?