new install to usb, doesnt make it bootable

Post here if you are a new Porteus member and you're looking for some help.
zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#16 by zander » 20 Aug 2015, 10:09

brokenman wrote:Be sure you download the LATEST Porteus from build.porteus.org and be sure to include the UEFI option. You will know because when you mount the sdc1 partition there should be a folder EFI on the root of the partition. The sdc1 partition MUST be fat32. Using a linux partition won't work if you are trying to boot via UEFI.

Then please try this.

root@porteus:/home/guest# cd /mnt
root@porteus:/mnt# ls
live/ sda1/ sda2/ sda4/ sda6/ sda7/ sdb1/ sdc1/ sdc3/
root@porteus:/mnt# mkdir sdc1
root@porteus:/mnt# mount /dev/sdc1 /mnt/sdc1
root@porteus:/mnt# cd /mnt/sdc1/boot <----- make sure you go exactly here
root@porteus:/mnt/porteus-boot# ./Porteus-installer-for-Linux.com

Once you get this working we can work on using a second linux partition on which you save your changes. A FAT32 partition is only needed to get the UEFI booted.

thank you brokenman for clearing this up with UEFI, also i just found out, there is a "secure boot" feature that has to be turned off as well, bcz it wint "authorize" usb boot
so i used universal usb installer from pendrivelinux to install porteus on fat32,
now i have it working in 'always fresh' mode

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#17 by zander » 20 Aug 2015, 17:54

@brokenman
hi
can u help with safe.dat ?

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: new install to usb, doesnt make it bootable

Post#18 by francois » 20 Aug 2015, 18:18

Using windows filesystem with linux OS is not the best idea. Do you use windows with a linux filesystem? You would be better proceeding as proposed by brokenman.

However, the save.dat container for fat32 file system. It is a little more complicated to work with. See:
http://www.porteus.org/tutorials/45-oth ... d-one.html
Prendre son temps, profiter de celui qui passe.

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#19 by zander » 20 Aug 2015, 20:42

francois wrote:Using windows filesystem with linux OS is not the best idea. Do you use windows with a linux filesystem? You would be better proceeding as proposed by brokenman.

However, the save.dat container for fat32 file system. It is a little more complicated to work with. See:
http://www.porteus.org/tutorials/45-oth ... d-one.html

ok, so im trying to install Porteus on USB drive. no windows on this drive whatsoever. originally i wanted to install everything on ext4, but bcz i have this UEFI bios, that wouldnt allow boot with linux partition,(as brokenman adviced, i install Porteus on fat32, to bypass UEFI and boot, after that i have another Linux ext4 partition for saving changes.

so , i created save.dat file in /mnt/sdc1(name of my ext4 partition), and added cheatcode changes=/mnt/sdc1/save.dat to APPEND line in porteus.cfg file, in the paragraph, where it says about Graphic mode,
also im not sure if there is an actual path to the save.dat file, or it suppose to be as shown changes=/porteus/save.dat

so when booting, system cannot find this save.dat file, and booting in 'always fresh mode'

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#20 by zander » 20 Aug 2015, 20:52

francois wrote:Using windows filesystem with linux OS is not the best idea. Do you use windows with a linux filesystem? You would be better proceeding as proposed by brokenman.

However, the save.dat container for fat32 file system. It is a little more complicated to work with. See:
http://www.porteus.org/tutorials/45-oth ... d-one.html


this is why i wanted to go with linux FS only, but turns out, my laptop has UEFI bios , that wouldnt boot with it, so i did, as brokenman adviced, devided USB on 3 partitions, 2gb for OS fat32, 20gb ext4 for changes, and 3gb for linux swap

its just i installed it differently, using universal usb installer GUI

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: new install to usb, doesnt make it bootable

Post#21 by francois » 20 Aug 2015, 21:52

And how are you doing with the save.dat save file?
Prendre son temps, profiter de celui qui passe.

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#22 by zander » 20 Aug 2015, 23:19

francois wrote:And how are you doing with the save.dat save file?
not good so far, system cant find it, may be have mistake in cheatcode

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

Re: new install to usb, doesnt make it bootable

Post#23 by Ed_P » 21 Aug 2015, 01:01

zander wrote:so , i created save.dat file in /mnt/sdc1(name of my ext4 partition), and added cheatcode changes=/mnt/sdc1/save.dat to APPEND line in porteus.cfg file, in the paragraph, where it says about Graphic mode,
also im not sure if there is an actual path to the save.dat file, or it suppose to be as shown changes=/porteus/save.dat

so when booting, system cannot find this save.dat file, and booting in 'always fresh mode'
The save.dat file is designed for non-Linux file systems so I'm not sure it works on a Linux file system. The changes= cheatcode points to the save.dat file on the boot device and does not need the /mnt/sdxy/ path specified.

Try moving your save.dat file to the FAT partition's root and changing the cheatcode to changes=/save.dat and see if that helps.
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: new install to usb, doesnt make it bootable

Post#24 by brokenman » 21 Aug 2015, 02:06

So the first partition on the device needs to be FAT32. Make it however big you like. Mine is 300Mb. On this partition you need to put the EFI folder from the Porteus ISO.
One the second partition (ext4) you can put the porteus folder.

Now go into the refind.conf file which is located in the EFI/BOOT folder and make some changes. The main changes you will need are the from= part. You can get the UUID from a root console by typing: blkid
For the changes you can also use the UUID. Something like: changes=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438/changes

menuentry "Porteus GUI mode" {
volume KERNELS
icon EFI/BOOT/icons/os_porteus.png
loader boot/syslinux/vmlinuz
initrd boot/syslinux/initrd.xz
options "from=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438"
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"
}
}

Let us know how it goes.
How do i become super user?
Wear your underpants on the outside and put on a cape.

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: new install to usb, doesnt make it bootable

Post#25 by neko » 21 Aug 2015, 02:10

@zander

There is a sample USB that has two partitions,
the 1st one is a fat for EFI boot
and
the 2nd one is ext4 for a container of persistence dat.


The sample may be useful for your case;

1. make a persistent dat (Example: persistent data size was set to 200M)
[ From Terminal ]

Code: Select all

# mount /dev/sdb2 /mnt/sdb2
# cd /mnt/sdb2
# ls
lost+found/
# mkdir persistent
# cd persistent
# dd of=porteus.persist count=0 seek=200000000
# mkfs.ext4 porteus.persist
2. edit grub.cfg
menuentry "persistent mode" {
search --set -f /boot/syslinux/vmlinuz
linux /boot/syslinux/vmlinuz changes=/persistent/porteus.persist
initrd /boot/syslinux/initrd.xz
}
menuentry "ram mode" {
search --set -f /boot/syslinux/vmlinuz
linux /boot/syslinux/vmlinuz copy2ram changes=EXIT:/persistent/porteus.persist
initrd /boot/syslinux/initrd.xz
}

Good luck!

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

Re: new install to usb, doesnt make it bootable

Post#26 by Ed_P » 21 Aug 2015, 02:28

brokenman wrote:For the changes you can also use the UUID. Something like: changes=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438/changes
brokenman wrote: submenuentry "Save changes" {
add_options "changes=/porteus"
}
Shouldn't the cheatcode be like it was shown in the top quote?
submenuentry "Save changes" {
add_options "changes=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438/changes"
}
Image

My Porteus.cfg file:

Code: Select all

LABEL razor
MENU LABEL Graphics mode (Razor)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=EXIT:UUID:783F-E952/porteussave.dat extramod=UUID:783F-E952/Modules
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT
And my refind.conf file:

Code: Select all

menuentry "Porteus GUI mode" {
	volume KERNELS
	icon EFI/BOOT/icons/os_porteus.png
	loader boot/syslinux/vmlinuz
	initrd boot/syslinux/initrd.xz
	options "from=UUID:783F-E952 extramod=UUID:783F-E952/Modules;UUID:783F-E952/ volume=33 reboot=cold"
	submenuentry "Save changes" {
		add_options "from=UUID:783F-E952 changes=EXIT:UUID:783F-E952/porteussave.dat extramod=UUID:783F-E952/Modules"
    }
	submenuentry "Always fresh" {
		add_options "from=UUID:783F-E952 nomagic base_only norootcopy"
    }
hth
Ed

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#27 by zander » 21 Aug 2015, 15:20

brokenman wrote:So the first partition on the device needs to be FAT32. Make it however big you like. Mine is 300Mb. On this partition you need to put the EFI folder from the Porteus ISO.
One the second partition (ext4) you can put the porteus folder.

Now go into the refind.conf file which is located in the EFI/BOOT folder and make some changes. The main changes you will need are the from= part. You can get the UUID from a root console by typing: blkid
For the changes you can also use the UUID. Something like: changes=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438/changes

menuentry "Porteus GUI mode" {
volume KERNELS
icon EFI/BOOT/icons/os_porteus.png
loader boot/syslinux/vmlinuz
initrd boot/syslinux/initrd.xz
options "from=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438"
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"
}
}

Let us know how it goes.

@brokenman
hi, so blkid gave me uuid for each partition i have o USB drive
so im assuming for boot options i use the one with fat32
and for changes im using uuid of ext4 partition ?

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#28 by zander » 21 Aug 2015, 15:34

@brokenman

ok so on reboot got message: from= cheatcode is incorrect, press enter to scan through devices

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#29 by zander » 21 Aug 2015, 16:25

Ed_P wrote:
brokenman wrote:For the changes you can also use the UUID. Something like: changes=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438/changes
brokenman wrote: submenuentry "Save changes" {
add_options "changes=/porteus"
}
Shouldn't the cheatcode be like it was shown in the top quote?
submenuentry "Save changes" {
add_options "changes=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438/changes"
}
Image

My Porteus.cfg file:

Code: Select all

LABEL razor
MENU LABEL Graphics mode (Razor)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=EXIT:UUID:783F-E952/porteussave.dat extramod=UUID:783F-E952/Modules
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT
And my refind.conf file:

Code: Select all

menuentry "Porteus GUI mode" {
	volume KERNELS
	icon EFI/BOOT/icons/os_porteus.png
	loader boot/syslinux/vmlinuz
	initrd boot/syslinux/initrd.xz
	options "from=UUID:783F-E952 extramod=UUID:783F-E952/Modules;UUID:783F-E952/ volume=33 reboot=cold"
	submenuentry "Save changes" {
		add_options "from=UUID:783F-E952 changes=EXIT:UUID:783F-E952/porteussave.dat extramod=UUID:783F-E952/Modules"
    }
	submenuentry "Always fresh" {
		add_options "from=UUID:783F-E952 nomagic base_only norootcopy"
    }
hth

hi
got to do search what extramod does
also i think u saving changes to fat partition, and im trying to get them saved on ext4?

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: new install to usb, doesnt make it bootable

Post#30 by francois » 21 Aug 2015, 17:24

@zander:
Try to stick to one method or proposition at a time.
@brokenman
hi, so blkid gave me uuid for each partition i have o USB drive
so im assuming for boot options i use the one with fat32
and for changes im using uuid of ext4 partition


You just care about the uuid after the from cheat code and put in there the one from your ext4 partition in which there should be the /porteus and /boot folders. Do not care for the save folder, under Linux file system, that is your ext4 partition, it will be set automatically.
Prendre son temps, profiter de celui qui passe.

Post Reply