cheatcodes not working on porteus.cfg

Post here if you are a new Porteus member and you're looking for some help.

cheatcodes not working on porteus.cfg

Postby bcuconato » 11 Jan 2017, 20:18

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).
bcuconato
White ninja
White ninja
 
Posts: 20
Joined: 22 Nov 2016, 01:46
Location: rio de janeiro
Distribution: porteus 3.2.2 XFCE

Re: cheatcodes not working on porteus.cfg

Postby Bogomips » 11 Jan 2017, 21: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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2014
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

Re: cheatcodes not working on porteus.cfg

Postby normalGuy » 11 Jan 2017, 22:08

Hello,

I`m using the
changes=UUID:STrING-0F-ChARACtERS/path/file.dat
;
sudo blkid
normalGuy
White ninja
White ninja
 
Posts: 29
Joined: 07 Nov 2015, 00:36
Location: uk & portugal
Distribution: porteus 3.1 KDE

Re: cheatcodes not working on porteus.cfg

Postby bcuconato » 12 Jan 2017, 16: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, 01:46
Location: rio de janeiro
Distribution: porteus 3.2.2 XFCE

Re: cheatcodes not working on porteus.cfg

Postby bcuconato » 12 Jan 2017, 16: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?
bcuconato
White ninja
White ninja
 
Posts: 20
Joined: 22 Nov 2016, 01:46
Location: rio de janeiro
Distribution: porteus 3.2.2 XFCE

Re: cheatcodes not working on porteus.cfg

Postby Bogomips » 12 Jan 2017, 17: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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2014
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

Re: cheatcodes not working on porteus.cfg

Postby normalGuy » 12 Jan 2017, 22: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
normalGuy
White ninja
White ninja
 
Posts: 29
Joined: 07 Nov 2015, 00:36
Location: uk & portugal
Distribution: porteus 3.1 KDE

Re: cheatcodes not working on porteus.cfg

Postby brokenman » 13 Jan 2017, 01: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.
brokenman
Site Admin
Site Admin
 
Posts: 5275
Joined: 27 Dec 2010, 04:50
Location: Brazil
Distribution: Porteus v3.2rcX all desktops

Re: cheatcodes not working on porteus.cfg

Postby bcuconato » 13 Jan 2017, 18: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, 01:46
Location: rio de janeiro
Distribution: porteus 3.2.2 XFCE

Re: cheatcodes not working on porteus.cfg

Postby bcuconato » 13 Jan 2017, 18:45

thanks Bogomips and normalGuy for the responses. I didn't answer before because for some reason I don't get forum notifications...
bcuconato
White ninja
White ninja
 
Posts: 20
Joined: 22 Nov 2016, 01:46
Location: rio de janeiro
Distribution: porteus 3.2.2 XFCE


Return to Newbie questions



Who is online

Users browsing this forum: No registered users and 3 guests