porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post here if you are a new Porteus member and you're looking for some help.
jan6
Ronin
Ronin
Posts: 2
Joined: 27 Oct 2018, 12:04
Distribution: v4.0-x86_64

porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#1 by jan6 » 27 Oct 2018, 13:05

  • What's the difference in the changes= between the two, for example?
  • And
    1. would it be possible to set the changes to a different partition, but not hard-conf stuff like /dev/sdb2 ? (cause there may be more usb sticks, or there might even not be an internal hard drive in the computer, or be several, etc...)
      (also, is GPT formatting drives gonna be supported anytime soon? that'd be nice as well I guess)
      And
    2. is it possible to have the modules on a different partition too? I'd prefer to keep the base OS and the additions separated...
    If the answer is no to either one, then I guess I'll have to go with a single partition setup...

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#2 by Rava » 24 Dec 2018, 21:42

jan6 wrote:
27 Oct 2018, 13:05
[*]And
  1. would it be possible to set the changes to a different partition, but not hard-conf stuff like /dev/sdb2 ? (cause there may be more usb sticks, or there might even not be an internal hard drive in the computer, or be several, etc...)
Use UUID. Quoted from boot/docs/cheatcodes.txt
SPECIAL NOTE FOR USING CHEATCODES WITH 'LABEL' AND 'UUID':
If you specify a LABEL or UUID with a cheatcode, remember that all
portions of these commands are case sensitive. You should use a
unique label for each of your partitions if you wish to use device
labels with your cheatcodes. Use the 'blkid' command to view your
device's UUID and LABEL. Using UUID and LABEL can be quite handy
because they are unique to your device, and your data will be found
and properly mapped on different hardware configurations.
Every cheatcode which contains a /path can take advantage of 'UUID:'
and 'LABEL:' extensions.

Examples:
changes=UUID:STrING-0F-ChARACtERS/path/file.dat
extramod=LABEL:YourLabelName/path/to_folder/with_modules
from=UUID:STrING-0F-ChARACtERS/path/folder
rootcopy=LABEL:YourLabelName/path/to_folder/with_files
emphasis mine
Cheers!
Yours Rava

ppp
White ninja
White ninja
Posts: 7
Joined: 25 Dec 2018, 13:25
Distribution: Deepin 15.8 => Porteus-KDE-v4.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#3 by ppp » 25 Dec 2018, 14:30

Thank you Rava for the UUID method, I changed /mnt/sdc1 to my usb's uuid and it works really well!

But I still have a same question with jan6:
what's the difference beteen the changes= in 2 .cfg files? Why we need both of them point to one location to load permanent changes? I once commented the changes= line in /porteus/porteus-v4.0-x86_64.cfg and get stuck in an ugly weird login ui, refusing me to get in the system.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#4 by Rava » 25 Dec 2018, 15:52

ppp wrote:
25 Dec 2018, 14:30
But I still have a same question with jan6:
what's the difference beteen the changes= in 2 .cfg files? Why we need both of them point to one location to load permanent changes? I once commented the changes= line in /porteus/porteus-v4.0-x86_64.cfg and get stuck in an ugly weird login ui, refusing me to get in the system.
Sorry I don`t know the answer to that, therefore I am unable to help you.
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#5 by Ed_P » 25 Dec 2018, 16:01

ppp wrote:
25 Dec 2018, 14:30
what's the difference beteen the changes= in 2 .cfg files? Why we need both of them point to one location to load permanent changes?
They are the same codes just in different locations. You don't need to configure both of them, just one. The v4.0 file is new and intended for codes that can effect multiple DEs, the old one is specific to the DE.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#6 by Rava » 25 Dec 2018, 16:25

Ed_P wrote:
25 Dec 2018, 16:01
They are the same codes just in different locations. You don't need to configure both of them, just one. The v4.0 file is new and intended for codes that can effect multiple DEs, the old one is specific to the DE.
That was was I thought as well but since I was not 100% sure I thought better not comment. Thanks for clearing that up.
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#7 by Ed_P » 25 Dec 2018, 16:55

You think I'm 100% sure!! :shock:

:D
Ed

ppp
White ninja
White ninja
Posts: 7
Joined: 25 Dec 2018, 13:25
Distribution: Deepin 15.8 => Porteus-KDE-v4.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#8 by ppp » 26 Dec 2018, 03:32

Ed_P wrote:
25 Dec 2018, 16:01
They are the same codes just in different locations. You don't need to configure both of them, just one. The v4.0 file is new and intended for codes that can effect multiple DEs, the old one is specific to the DE.
But I think both of them needs to be configured because even I added the change= code in my porteus-v4.0-x86_64.cfg, I can't load in my changes if I don't modify the change= line in the old porteus.cfg. Maybe is a bug of my own computer?

What's more, my porteus.cfg is not specific to any DE. I only have one line of MENU LABEL Graphics mode without the suffix of (KDE) or (LXDE), is that means I can add my own MENU LABEL Graphics mode with suffix to enter different DE? That's cool!

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#9 by Ed_P » 26 Dec 2018, 04:32

ppp wrote:
26 Dec 2018, 03:32
But I think both of them needs to be configured because even I added the change= code in my porteus-v4.0-x86_64.cfg, I can't load in my changes if I don't modify the change= line in the old porteus.cfg.
Try with the changes= cheatcode only in the porteus.cfg file.

As for the purpose of the new cfg file:
https://forum.porteus.org/viewtopic.php?t=7742 wrote:New configuration file at porteus/porteus-v4.0-x86_64.cfg which replaces the .sgn file and can hold cheatcodes. One per line.
and
https://forum.porteus.org/viewtopic.php?t=7564&start=45 wrote:whatever cheatcodes are set in that file will be passed to whatever boot entry you choose.
Ed

ppp
White ninja
White ninja
Posts: 7
Joined: 25 Dec 2018, 13:25
Distribution: Deepin 15.8 => Porteus-KDE-v4.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#10 by ppp » 26 Dec 2018, 05:07

Ed_P wrote:
26 Dec 2018, 04:32
Try with the changes= cheatcode only in the porteus.cfg file.
Strange, I commented the changes= line in my porteus-v4.0-x86_64.cfg and rebooted. Last time I did this I can't enter the system but this time, I entered in my system successfully. And I find my unclosed softwares in the last login session are still there!

I don't know why I got 2 outcomes for only apply the changes= cheatcode in the porteus.cfg. But I think this words:
ncmprhnsbl wrote:
27 Feb 2018, 21:30
whatever cheatcodes are set in that file will be passed to whatever boot entry you choose..
is not correct (at least on my computer): the changes= code in porteus-v4.0-x86_64.cfg is unnecessary, only porteus.cfg works.

ppp
White ninja
White ninja
Posts: 7
Joined: 25 Dec 2018, 13:25
Distribution: Deepin 15.8 => Porteus-KDE-v4.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#11 by ppp » 26 Dec 2018, 05:20

ppp wrote:
26 Dec 2018, 05:07
Strange, I commented the changes= line in my porteus-v4.0-x86_64.cfg and rebooted. Last time I did this I can't enter the system but this time, I entered in my system successfully. And I find my unclosed softwares in the last login session are still there!
But when I shutdown and start manually, those unclosed softwares are closed like normal.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Post#12 by Rava » 26 Dec 2018, 11:41

Ed_P wrote:
25 Dec 2018, 16:55
You think I'm 100% sure!! :shock:

:D
Valid point indeed. :D
Cheers!
Yours Rava

Post Reply