persistent file on HD
persistent file on HD
If I'm booting Salix Live (13.37) from USB, can I move the persistent file to the hard disk? I vaguely remember doing so a while back, but that may have been with 13.1. Does the persistent file need to reside within a particular directory to be picked up during boot? Mine is inside a directory "persistence" inside another directory; when I copied it over I renamed the original persistent file on the USB so it wouldn't be recognised, and that much was successful
Re: persistent file on HD
Yes, you can. Unless of course I'm getting the code wrong, but I don't think so. But it needs to be stored on the exactly same path as originally. The path is built like this:
basedir: basedir as specified by the .live file
ROOT_DIR: salixlive
SAVE_FILE_NAME: salixlive.save (default)
That path is checked on all accessible block devices in reverse sort order.
Code: Select all
$basedir/$ROOT_DIR/persistence/$SAVE_FILE_NAME
ROOT_DIR: salixlive
SAVE_FILE_NAME: salixlive.save (default)
That path is checked on all accessible block devices in reverse sort order.
Re: persistent file on HD
Thanks Shador. I have a directory salixlive at the top level of the Windows partition, with the correctly named persistent file inside a subdirectory persistence. So that part is OK.
The .live file gives basedir as / - does that mean it will only look on the stick, not other disks or partitions? What if I put the modules on the hard disk? I imagine that makes no difference, even if it is possible.
The .live file gives basedir as / - does that mean it will only look on the stick, not other disks or partitions? What if I put the modules on the hard disk? I imagine that makes no difference, even if it is possible.
Re: persistent file on HD
No, as I said that only changes the path it looks for. That path is searched for on ALL available devices/partitions filesystems. Did you try it as I said? Because I never tested that. But from the code it should work like this.
Re: persistent file on HD
Sorry Shador, I didn't post quickly enough to correct myself. I must have renamed the topmost directory (originally it was something else) *after* reverting the .save file on the USB to its proper name, and that then got picked up first.
Anyway, it was still useful because I now better understand the way it's meant to work. Thanks again!
Anyway, it was still useful because I now better understand the way it's meant to work. Thanks again!