Access to template filesystem on Qubes 4

76 views
Skip to first unread message

Dominique St-Pierre Boucher

unread,
Nov 21, 2018, 12:30:08 PM11/21/18
to qubes-users
Hello Qubes-users,

I need to get access to a file on a template I created. I did some changes and I am unable to boot the template.

How do I mount the filesystem in another VM to get access to the file?


Thanks

Dominique

haaber

unread,
Nov 21, 2018, 12:41:08 PM11/21/18
to qubes...@googlegroups.com
I presume you use Q4. I would try to use

losetup -f       to get a free loopdevice name and then

losetup /dev/loopX   /dev/qubes_dom0/YOURTEMPLATE-private

or YOURTEMPLATE-root according to where the problem sits. Once it is
looped, you can mount it or redirect it with the icon in the corner to
some other template.

Bernhard


mike

unread,
Dec 10, 2018, 3:51:05 PM12/10/18
to qubes-users
On Wednesday, November 21, 2018 at 7:41:08 PM UTC+2, haaber wrote:

> > I need to get access to a file on a template I created. I did some changes and I am unable to boot the template.
> >
> > How do I mount the filesystem in another VM to get access to the file?
>
> I presume you use Q4. I would try to use
>
> losetup -f       to get a free loopdevice name and then
>
> losetup /dev/loopX   /dev/qubes_dom0/YOURTEMPLATE-private
>
> or YOURTEMPLATE-root according to where the problem sits. Once it is
> looped, you can mount it or redirect it with the icon in the corner to
> some other template.

Note that for YOURTEMPLATE-root you might need to add -P parameter to losetup, so the partitioned loop device is created:

losetup -P /dev/loopX /dev/qubes_dom0/YOURTEMPLATE-root

Then you will be able to mount your /dev/loopXpY partition.


Mike

Reply all
Reply to author
Forward
0 new messages