UEFI bootable Porteus 3.1-64bit but Persistent

Post tutorials, HOWTO's and other useful resources here.
Post Reply
r004
White ninja
White ninja
Posts: 19
Joined: 24 Sep 2014, 10:32
Distribution: Porteus
Location: troy,MI

UEFI bootable Porteus 3.1-64bit but Persistent

Post#1 by r004 » 04 Jan 2015, 20:31

Hello;
I know there is a ton of stuff on portues and uefi out there including in this forum.
but because of verity of methods and available scripts; I had to come here and ask for it again.
I want to create a usb stick which would boot uefi the latest porteus 3.1.
I created my custom porteus from the portues maker web-page and I did select the efi option.
I have a 4gb usb-stick which I did creat a GPT partition scheme on it and a 3200MB of unjournaled ext4

Code: Select all

mke2fs -t ext4 -O ^has_journal /dev/sdc1
and the rest about 600mb of vfat partition with EF00 (ESP) partition created by gparted.

Code: Select all

mkfs.fat -F32 /dev/sdc2
then I used this http://www.youtube.com/watch?v=Q_AXMoaRmdQ video for my uefi install. and It went fine. I thank that person. [whoever he is]
but the end result is the portues that doesn't save your changes; your files and your installed packages. it is not persistent. and you could say it is always fresh.
How could I solve this.
I want to add add-ones to my browser; install some software and keep some files handy on my porteus desktop.
thanks 8)

beny
Full of knowledge
Full of knowledge
Posts: 730
Joined: 02 Jan 2011, 11:33
Location: italy

Re: UEFI bootable Porteus 3.1-64bit but Persistent

Post#2 by beny » 05 Jan 2015, 09:34

look into the porteus cfg the boot line that show you save changes if you do not have a directory like this you can create it in the linked path.

r004
White ninja
White ninja
Posts: 19
Joined: 24 Sep 2014, 10:32
Distribution: Porteus
Location: troy,MI

Re: UEFI bootable Porteus 3.1-64bit but Persistent

Post#3 by r004 » 05 Jan 2015, 09:51

@beny;
hello
please explain more;
I don't have porteus.cfg in my ext4 partition on usb-stick. what should I add to it? I only have a porteus.conf in my ESP vaft partition.
also do I have to change anything on bootloader side?

Code: Select all

scan_driver_dirs EFI/Boot/drivers_x64/
scanfor manual,internal,external
dont_scan_files "elilo-x86_64.efi,elilo-ia32.efi,vmlinuz-3.16.pf4,vmlinuz-3.16-pf4,vmlinuz-3.19-pf1,vmlinuz-3.17.pf3,vmlinuz-3.17.pf4"
dont_scan_volumes "Recovery,System,Recovery,Work,Crux,gentoo"
banner_scale fillscreen
default_selection Porteus-v3.1

menuentry "Porteus-v3.1" {
	icon EFI/Boot/rEFInd-minimal/icons/os_linux.png
	loader EFI/Porteus-v3.1/vmlinuz
	initrd EFI/Porteus-v3.1/initrd.xz
	options "from=UUID:514fa0a8-28a8-4792-a498-34954264d1cf volume=1%"

	submenuentry "Boot to text mode" {
		add_options "3"
	}
	submenuentry "Boot to copy2ram" {
		add_options "copy2ram"
	}
	submenuentry	"Boot to LXQt" {
		add_options "noload=xfce load=lxqt"
	}
	
}

beny
Full of knowledge
Full of knowledge
Posts: 730
Joined: 02 Jan 2011, 11:33
Location: italy

Re: UEFI bootable Porteus 3.1-64bit but Persistent

Post#4 by beny » 05 Jan 2015, 12:49

hi at the end of refind.conf:


menuentry "Porteus GUI mode" {
volume KERNELS
icon EFI/BOOT/icons/os_porteus.png
loader boot/syslinux/vmlinuz
initrd boot/syslinux/initrd.xz
options ""
submenuentry "Save changes" {
add_options "changes=/porteus"
}
submenuentry "Always fresh" {
add_options "nomagic base_only norootcopy"
}
submenuentry "Boot to copy2ram mode" {
add_options "copy2ram"
}
submenuentry "Text mode" {
add_options "3"
}
submenuentry "pxe-boot" {
add_options "pxe"
}
}

Code: Select all

PROMPT 0
TIMEOUT 90
UI vesamenu.c32
DEFAULT gui
MENU BACKGROUND porteus.png
MENU TITLE Porteus-v3.1 64bit

MENU WIDTH 30
MENU MARGIN 2
MENU ROWS 10
MENU HELPMSGROW 17
MENU TIMEOUTROW 28
MENU TABMSGROW 15
MENU CMDLINEROW 22
MENU HSHIFT 4
MENU VSHIFT 5

	menu color screen	37;40      #00000000 #00000000 none
	menu color border	30;44      #00000000 #00000000 none
	menu color title	1;36;44    #ffF6FF00 #00000000 none
	menu color unsel	37;44      #ffffffff #00000000 none
	menu color hotkey	1;37;44    #ff8037b7 #00000000 none
	menu color sel		7;37;40    #ff111B78 #003f7fbf none
	menu color hotsel	1;7;37;40  #ffaf67f7 #003f7fbf none
	menu color scrollbar	30;44      #00000000 #00000000 none

	menu color tabmsg	31;40      #ffB6F538 #00000000 none
	menu color cmdmark	1;36;40    #ffff0000 #00000000 none
	menu color cmdline	37;40      #ffffffff #ff000000 none
	menu color pwdborder	30;47      #ffff0000 #00000000 std
	menu color pwdheader	31;47      #ffff0000 #00000000 std
	menu color pwdentry	30;47      #ffff0000 #00000000 std
	menu color timeout_msg	37;40      #ff809aef #00000000 none
	menu color timeout	1;37;40    #ffb72f9f #00000000 none
	menu color help		37;40      #ffD5F538 #00000000 none
	menu color msg07	37;40      #90ffffff #00000000 std

LABEL gui
MENU LABEL Graphics mode (XFCE)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus 
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT

LABEL fresh
MENU LABEL Always Fresh
KERNEL vmlinuz
APPEND initrd=initrd.xz nomagic base_only norootcopy 
TEXT HELP
    Normally Porteus saves all changes
    to the /porteus/changes/ directory
    on the boot media (if writable)
    and restores them next boot.
    Use this option to start a fresh
    system, changes are not read from
    or written to any device
ENDTEXT

LABEL copy2ram
MENU LABEL Copy To RAM
KERNEL vmlinuz
APPEND initrd=initrd.xz copy2ram 
TEXT HELP
    Run Porteus the same as above,
    but first copy all data to RAM
    to get a huge speed increase
    (needs >512MB)
ENDTEXT

LABEL text
MENU LABEL Text mode
KERNEL vmlinuz
APPEND initrd=initrd.xz 3 
TEXT HELP
    Run Porteus in text mode and
    start the command prompt only
ENDTEXT

LABEL pxe-server
MENU LABEL Porteus as PXE server
KERNEL vmlinuz
APPEND initrd=initrd.xz pxe 
TEXT HELP
    Run Porteus as usual, but also
    initialize a PXE server.
    This will allow you to boot Porteus
    on other computers over a network
ENDTEXT

MENU SEPARATOR

LABEL plop
MENU LABEL PLoP BootManager
KERNEL plpbt
TEXT HELP
    Run the plop boot manager.
    This utility provides handy
    boot-USB options for machines
    with vintage/defective BIOS
ENDTEXT

LABEL hd
MENU LABEL Boot from the first hd
COM32 chain.c32
APPEND hd0 1
TEXT HELP
    Don't start Porteus at all, but
    rather run any operating system
    installed on the first partition
    of the hard drive
ENDTEXT
you have to have a save changes menu entry if you want save data on a directory sorry i don't have efi boot so i can be wrong ,brokenman he is the mods that have skill on this boot loader option.

r004
White ninja
White ninja
Posts: 19
Joined: 24 Sep 2014, 10:32
Distribution: Porteus
Location: troy,MI

Re: UEFI bootable Porteus 3.1-64bit but Persistent

Post#5 by r004 » 07 Jan 2015, 16:26

That worked. thank you.
But I have this problem. when I am booting and porteus going through runlevels and loads modules.
first I get the xfce with the ugly gray them. like the time you installed the new linux and has no gtk theme yet. (basic gtk theme)
it is like that for a second and a hallf and then theme comes. but the icons inside the system tray don't change background to match the xfce bar and remain white backgrounded.
the WIFI connection icon, the volume icon, and the opera icon.
I am looking for a solution on this one.
the not persistent one doesn't present with this problems

tome
Contributor
Contributor
Posts: 571
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: UEFI bootable Porteus 3.1-64bit but Persistent

Post#6 by tome » 07 Jan 2015, 18:10

try another path, for example

Code: Select all

add_options "changes=/porteus-new-test"

Post Reply