[SOLVED] cheatcodes not working on porteus.cfg

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

[SOLVED] cheatcodes not working on porteus.cfg

Post#1 by bcuconato » 11 Jan 2017, 19:18

solution: if you're booting UEFI, you must add cheatcodes to the refind.conf file, note the porteus.cfg.

---

I made a porteus USB drive on windows (so the partition format is FAT32, so I need a container .dat file for persistence). I changed the porteus.cfg on the drive (not on the filesystem, as I was on copy2ram mode) to include a few commands, such as kmap:

Code: Select all

LABEL copy2ram
MENU LABEL Copy To RAM
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
the thing is: when I boot back, the cheatcodes don't work. I have checked the pendrive on windows and the code is there. strangely, if on the boot menu I press 'F2' and edit the commands, I can add

Code: Select all

changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
, and all works fine -- except the savefile doesn't seem to be loaded (because I've changed the password for guest and root before saving and that was not saved).
Last edited by bcuconato on 23 Jan 2017, 16:44, edited 1 time in total.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2536
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: cheatcodes not working on porteus.cfg

Post#2 by Bogomips » 11 Jan 2017, 20:18

bcuconato wrote:I have checked the pendrive on windows and the code is there. strangely, if on the boot menu I press 'F2' and edit the commands,
What do you have on the command line when you press F2?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
normalGuy
Black ninja
Black ninja
Posts: 48
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: cheatcodes not working on porteus.cfg

Post#3 by normalGuy » 11 Jan 2017, 21:08

Hello,

I`m using the
changes=UUID:STrING-0F-ChARACtERS/path/file.dat
;
sudo blkid

bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

Re: cheatcodes not working on porteus.cfg

Post#4 by bcuconato » 12 Jan 2017, 15:47

Bogomips wrote:What do you have on the command line when you press F2?
I have two commands "copy2ram" and the one which specifies the initrd file (if that's not info enough I can reboot to check! I think it's "initrd=initrd.xz")

bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

Re: cheatcodes not working on porteus.cfg

Post#5 by bcuconato » 12 Jan 2017, 15:49

normalGuy wrote:Hello,

I`m using the
changes=UUID:STrING-0F-ChARACtERS/path/file.dat
;
sudo blkid
sorry, I'm not sure I get what I should do. would it be specifying which drive the .dat file is in?

Bogomips
Full of knowledge
Full of knowledge
Posts: 2536
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: cheatcodes not working on porteus.cfg

Post#6 by Bogomips » 12 Jan 2017, 16:30

^ Looks like the edit is being lost within the boot loader sequence.
bcuconato wrote:if on the boot menu I press 'F2' and edit the commands, I can add

Code: Select all

changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
, and all works fine
Please check this from Linux. Also bear in mind that

Code: Select all

APPEND initrd=initrd.xz changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
has to be all on the one line. No new line.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
normalGuy
Black ninja
Black ninja
Posts: 48
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: cheatcodes not working on porteus.cfg

Post#7 by normalGuy » 12 Jan 2017, 21:01

Hi,

As root:

Code: Select all

blkid
to find the UUID nº without the " " of the /dev/sdxy

Them in porteus.cfg changes example:
changes=UUID:2A6A-AF43/multibootusb/Porteus-XFCE-v3.2.1-x86_64/porteus/porteussave.dat
Full path from /dev to porteus.dat
---------------------
multibootusb is a linux app because I install porteus from other linux. When in windows I go with Yumi - multiboot usb.
--------------------

In xfce4:
/etc/slim.conf edit as root

Code: Select all

auto_login          no

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: cheatcodes not working on porteus.cfg

Post#8 by brokenman » 13 Jan 2017, 00:56

If you are hitting F2 to get boot items then you are probably using the UEFI boot system which consists of icons and is kind of blue/purple. The boot menu in a BIOS system is blue with an image of a house by the water. In the case of UEFI you need to edit the file refind.conf and not porteus.cfg

You can find this file in the EFI/BOOT folder.
How do i become super user?
Wear your underpants on the outside and put on a cape.

bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

Re: cheatcodes not working on porteus.cfg

Post#9 by bcuconato » 13 Jan 2017, 17:43

brokenman wrote:If you are hitting F2 to get boot items then you are probably using the UEFI boot system which consists of icons and is kind of blue/purple. The boot menu in a BIOS system is blue with an image of a house by the water. In the case of UEFI you need to edit the file refind.conf and not porteus.cfg

You can find this file in the EFI/BOOT folder.
that's it! thank you, brokenman!

I came here to post that today I booted at a friend's computer and the cheatcodes worked. so that's why.

bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

Re: cheatcodes not working on porteus.cfg

Post#10 by bcuconato » 13 Jan 2017, 17:45

thanks Bogomips and normalGuy for the responses. I didn't answer before because for some reason I don't get forum notifications...

Post Reply