Thanks for the reply Ivan.

I was able to mount `dom0:/dev/qubes_dom0/vm-...-private vmname` successfully, 
however when trying to mount `dom0:/dev/qubes_dom0/vm-...-root vmname`, I still 
get the `wrong fs type, bad option, bad superblock...` error.

I can confirm that I get this same error message when trying to mount any 
`--root` suffixed volume nested under `/dev/qubes_dom0`.

To confirm, I am running Qubes v4.0.

Any reason why the `--root` volumes in particular aren't mounting? Those are 
where `/etc/fstab` would be located, right?

Thanks again for your help!


Fabio


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, November 26, 2018 12:11 PM, Ivan Mitev <[email protected]> wrote:

> On 11/26/18 1:46 PM, 'Fabio' via qubes-users wrote:
>
> > I made an accidental edit to /etc/fstab which is causing my TemplateVM to 
> > timeout on boot with error Cannot connect to qrexec agent for 60 seconds....
> > Is there a way to edit a particular VM's etc/fstab without booting it up? 
> > Can I perhaps mount it's root filesystem?
>
> for R4:
>
> https://groups.google.com/forum/#!searchin/qubes-users/losetup|sort:date/qubes-users/rWRNIt0NOc4/VaFHp42rBgAJ
>
> Alternatively the following command will configure a loopback device
> automatically:
>
> qvm-start --hdisk dom0:/dev/qubes_dom0/vm-...-root vmname
>
> R3.2 uses files by default instead of LVM volumes, I can't remember
> where they were located (/var/lib/qubes/ or something like that) but the
> procedure should be more or less the same.
>
> > Attempted solutions
> >
> > 1.  I've tried adding init=/bin/bash to the kernel opts, starting the 
> > templateVM and then running sudo xl console TEMPLATE_NAME from Dom0 but I 
> > did not reach a command-prompt before fstab was read and executed.
> >
> > 2.  I tried mounting the root filesystem for the TemplateVM from Dom0 with: 
> > sudo mount /dev/qubes_dom0/vm-fedora-26-root mnt but got error wrong fs 
> > type, bad option, bad superblock...
> >
>
> It's not recommended to access VMs' files in dom0. Once you set up a
> loopback device and the volume pops up in the device tray, attach it to
> a trusted VM and fix fstab there.
>
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> You received this message because you are subscribed to the Google Groups 
> "qubes-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/qubes-users/a303a7f7-6b8f-5ff3-7e46-13154b8edda4%40maa.bz.
> For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/k52edUS5PM_HN2UXz1wUpQLUbchZ7mgYjDTY0AK2XVp1USzaOrePYk0ll-XiliAo_WRzK_zMCa_pZQtz4IdIttHoTZ7kbcgA9AkS5bYTvac%3D%40protonmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to