Lots of things changed in Qubes4, and I think I am finding out things lots of 
others will need to find out at one point too.
So for them, as well as for my own memory, I'll write some howto emails.


The task;

as I run Qubes on a machine with a relatively small SSD and large spinning 
disk, I want to make my homedir (/home/user) be completely stored on the 
spinning disk.
I have two main Qubes which require storage. A Private and a Work qube.
Each gets one partition on my 2TB drive.
I assume you already partitioned and did everything you need with the drive, 
it should be available to dom0.

1) Create and start a Qube "Work".
2) open a terminal in the Work qube.
3) do an ls /dev/xv*

4) Start a terminal for dom0;
5) run in dom0 in a terminal;
  a) qvm-block
this shows a listing of drives with their names. Mine is; "dom0:sdb1"
 b) qvm-block a --persistent -- Work dom0:sdb1

The 'persistent' part here is a new 4.0 feature, seems undocumented but it 
means you only ever have to do the add once. Futher reboots and restarts of 
the Qube will automatically re-attach the drive.

6) in the terminal for Work, rerun the ls from step 3 and check which device 
was added. Possibly "xvdi"
7) edit (as root) the file /rw/config/rc.local and add this line;
  mount /dev/xvdi /rw/home/user/
Using the device you found in 6 instead of xvdi should it be different.

8) make the /rw/config/rc.local file executable.
You can do this by running;
   sudo chmod 755 /rw/config/rc.local

9) Now shutdown and restart the Work qube and start a new terminal
10) (optionally) in the terminal type;
chown user.user /home/user

All done!

known issue; it looks like the rc.local isn't always finished executing when 
the first app is started. This looks like a bug to me.
So if your first app is firefox, for instance, you won't get your personal 
settings (plugins/bookmarks) until you start it the second time :-(
My suggestion; make this qube autostart on login.

-- 
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 qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/7417874.HcD3Z0RdmU%40mail.
For more options, visit https://groups.google.com/d/optout.

Reply via email to