from_dir cheatcode not working
from_dir cheatcode not working
Hi,
I'm trying to change the folder of porteus with the from_dir cheatcode but its not working.
I have 2 menus:
- Porteus liveCd
- Gparted (opens porteus and then gparted with gparted command in the startup folder)
The main problem its that i need to have too porteus folder, one for the live version and another for gparted that as the gparted command in the autostart folder.
So, i rename porteus do porteusGparted and the other porteus folder i renamed to another name just for testing purposes.
But i'm putting from_dir=/porteusGparted and nothing.
It can't find the porteus folder
Please any help will be appreciated.
Can i run gparted from the cheatcode: autoexec? or i just can run MC and STARTX?
many thaks
I'm trying to change the folder of porteus with the from_dir cheatcode but its not working.
I have 2 menus:
- Porteus liveCd
- Gparted (opens porteus and then gparted with gparted command in the startup folder)
The main problem its that i need to have too porteus folder, one for the live version and another for gparted that as the gparted command in the autostart folder.
So, i rename porteus do porteusGparted and the other porteus folder i renamed to another name just for testing purposes.
But i'm putting from_dir=/porteusGparted and nothing.
It can't find the porteus folder
Please any help will be appreciated.
Can i run gparted from the cheatcode: autoexec? or i just can run MC and STARTX?
many thaks
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: from_dir cheatcode not working
When you post please tell us which version of Porteus you are using so we can better assist you.
Please read the boot/docs/cheatcodes.txt file which tells you how to use the from= cheatcode. If you are using a more recent version of Porteus (such as v2.0+) then the from_dir cheat was changed to from=/path/to/porteus
The cheatcodes.txt file will contain the correct syntax. I hope that helps.
Please read the boot/docs/cheatcodes.txt file which tells you how to use the from= cheatcode. If you are using a more recent version of Porteus (such as v2.0+) then the from_dir cheat was changed to from=/path/to/porteus
The cheatcodes.txt file will contain the correct syntax. I hope that helps.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- fanthom
- Moderator Team
- Posts: 5591
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: from_dir cheatcode not working
unfortunately autoexec= is for cli stuff only. many people asked about this before so we may introduce new cheatcodes in rc2 of 2.1Can i run gparted from the cheatcode: autoexec?
'cliexec=' (renamed from autoexec to avoid confusion) for console commands before porteus enters GUI
'guiexec=' for actions taken when GUI is started
@brokenman/ahau - what do you think?
Please add [Solved] to your thread title if the solution was found.
Re: from_dir cheatcode not working
Wow that option will just be fantasticfanthom wrote:unfortunately autoexec= is for cli stuff only. many people asked about this before so we may introduce new cheatcodes in rc2 of 2.1Can i run gparted from the cheatcode: autoexec?
'cliexec=' (renamed from autoexec to avoid confusion) for console commands before porteus enters GUI
'guiexec=' for actions taken when GUI is started
@brokenman/ahau - what do you think?

I'm using porteus rc 2.1 and i try first to use from=/porteusGparted but the same error (can't find porteus data).
Or i need to put /porteusGparted/another porteus subfolder?
I just love porteus its so fast to start and simple to use and to have in my pen boot.
Thanks
- fanthom
- Moderator Team
- Posts: 5591
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: from_dir cheatcode not working
as mentioned previously: please refer to /boot/docs/cheatcodes.txt which tell you how to use this cheatcode.I'm using porteus rc 2.1 and i try first to use from=/porteusGparted but the same error (can't find porteus data).
Please add [Solved] to your thread title if the solution was found.
Re: from_dir cheatcode not working
I'm using the cheatcodes from the cheatcodes.txtfanthom wrote:as mentioned previously: please refer to /boot/docs/cheatcodes.txt which tell you how to use this cheatcode.I'm using porteus rc 2.1 and i try first to use from=/porteusGparted but the same error (can't find porteus data).
this is my cheatcode:
1 - from=/porteusGparted timezone=Europe/London volume=85% kmap=pt login=root
2 - from=/mnt/sdb2/porteusGparted timezone=Europe/London volume=85% kmap=pt login=root
None of them works, it always says from= invalid cheatcode
thats why i've tryed from_dir= and with that it doesn't give me errors but it doesn't work too

any help please?
thanks
- francois
- Contributor
- Posts: 6316
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: from_dir cheatcode not working
@gimenez:
If I understand what you do as you describe in the first post, you are renaming the porteus folder. Which is a thing that you cannot do.
Here is an example of my menu.lst which will offer thru grub the two options, one for always fresh and the other for save change options.
The structure of your folders should look exactly the same:
/dev/sda5/64bit_v2.1rc1_KDE containing boot and porteus folders, except that in one of the two installations the /porteus/modules folder will have in it gparted.
Just rename the folders according to your actual structure.
If I understand what you do as you describe in the first post, you are renaming the porteus folder. Which is a thing that you cannot do.
Here is an example of my menu.lst which will offer thru grub the two options, one for always fresh and the other for save change options.
Code: Select all
title porteus v2_64 on sda5 64bit_v2.1rc1_KDE always fresh
root (hd0,4)
kernel /64bit_v2.1rc1_KDE/boot/syslinux/vmlinuz from=/dev/sda5/64bit_v2.1rc1_KDE changes= login=root
initrd /64bit_v2.1rc1_KDE/boot/syslinux/initrd.xz
boot
title porteus v2_64 on sda5 64bit_v2.1rc1_KDE
root (hd0,4)
kernel /64bit_v2.1rc1_KDE/boot/syslinux/vmlinuz from=/dev/sda5/64bit_v2.1rc1_KDE changes=EXIT:/64bit_v2.1rc1_KDE/ login=root
initrd /64bit_v2.1rc1_KDE/boot/syslinux/initrd.xz
boot
title porteus v2_64 on sda5 64bit_v2.1rc1_KDE always fresh
root (hd0,4)
kernel /64bit_v2.1rc1_KDE/boot/syslinux/vmlinuz from=/dev/sda5/64bit_v2.1rc1_KDE changes= login=root
initrd /64bit_v2.1rc1_KDE/boot/syslinux/initrd.xz
boot
title porteus v2_64 on sda
The structure of your folders should look exactly the same:
/dev/sda5/64bit_v2.1rc1_KDE containing boot and porteus folders, except that in one of the two installations the /porteus/modules folder will have in it gparted.
Just rename the folders according to your actual structure.

Prendre son temps, profiter de celui qui passe.
Re: from_dir cheatcode not working
Big thanks its just working perfectlyfrancois wrote:@gimenez:
If I understand what you do as you describe in the first post, you are renaming the porteus folder. Which is a thing that you cannot do.
Here is an example of my menu.lst which will offer thru grub the two options, one for always fresh and the other for save change options.Code: Select all
title porteus v2_64 on sda5 64bit_v2.1rc1_KDE always fresh root (hd0,4) kernel /64bit_v2.1rc1_KDE/boot/syslinux/vmlinuz from=/dev/sda5/64bit_v2.1rc1_KDE changes= login=root initrd /64bit_v2.1rc1_KDE/boot/syslinux/initrd.xz boot title porteus v2_64 on sda5 64bit_v2.1rc1_KDE root (hd0,4) kernel /64bit_v2.1rc1_KDE/boot/syslinux/vmlinuz from=/dev/sda5/64bit_v2.1rc1_KDE changes=EXIT:/64bit_v2.1rc1_KDE/ login=root initrd /64bit_v2.1rc1_KDE/boot/syslinux/initrd.xz boot title porteus v2_64 on sda5 64bit_v2.1rc1_KDE always fresh root (hd0,4) kernel /64bit_v2.1rc1_KDE/boot/syslinux/vmlinuz from=/dev/sda5/64bit_v2.1rc1_KDE changes= login=root initrd /64bit_v2.1rc1_KDE/boot/syslinux/initrd.xz boot title porteus v2_64 on sda
The structure of your folders should look exactly the same:
/dev/sda5/64bit_v2.1rc1_KDE containing boot and porteus folders, except that in one of the two installations the /porteus/modules folder will have in it gparted.
Just rename the folders according to your actual structure.

Another question i've a menu that run MC:
Code: Select all
Title File Management
kernel /porteus_live/boot/syslinux/vmlinuz from=/dev/sdb2/porteus_live timezone=Europe/London volume=85% kmap=pt login=root autoexec=mc;shutdown now
initrd /porteus_live/boot/syslinux/initrd.xz

thanks once again
- fanthom
- Moderator Team
- Posts: 5591
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: from_dir cheatcode not working
use '~' for spaces (described in cheatcodes.txt) and switch runlevel to 0 which is a proper way of shutting down slackware:
Code: Select all
autoexec=mc~&&~init~0
Please add [Solved] to your thread title if the solution was found.
Re: from_dir cheatcode not working
Just amazing, its working perfect now.fanthom wrote:use '~' for spaces (described in cheatcodes.txt) and switch runlevel to 0 which is a proper way of shutting down slackware:Code: Select all
autoexec=mc~&&~init~0
Many and many thanks
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: from_dir cheatcode not working
I like the idea of a cheatcode for starting a GUI app. Some people may just want to start it for one session.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
Re: from_dir cheatcode not working
Yes, its a great idea.brokenman wrote:I like the idea of a cheatcode for starting a GUI app. Some people may just want to start it for one session.
I can make multiple menus to open gparted, savepart, mc, clonezilla, etc with just one porteus folder
