Mounting a template root file system in dom0 - Qubes OS 4.0

115 views
Skip to first unread message

marc.b...@gmail.com

unread,
Jul 11, 2018, 5:48:51 PM7/11/18
to qubes-users
I recently made a mistake in the fedora-27 template VM I installed; setting up a bind mount in /etc/fstab rather than using autofs… the VM shuts down due to the failure to mount.

In R4.0 how can you mount the root FS or at least /etc/fstab read/write in dom0 to allow editing and recovery?

All my googling finds R3.x references and qvm-block has changed between R3 and R4.

Marc

Unman

unread,
Jul 12, 2018, 8:53:14 PM7/12/18
to marc.b...@gmail.com, qubes-users
ls -l in /dev/mapper to identify the device (say dm-100)
sudo losetup -f /dev/dm-100 - creates loop device (say loop1)
sudo partprobe -s /dev/loop1
sudo mount /dev/loop1p3 /mnt

edit away
unmount and losetup -d when you are done.

I'm sure there is a better way

unman

Reply all
Reply to author
Forward
0 new messages