Page 1 of 1

Using UUID to identify save changes folder on usb

Posted: 26 Sep 2012, 11:27
by francois
I am trying to use UUID to identify save changes folder on usb. It does not work what could be wrong? Here are the menu.lst instructions:

Code: Select all

title porteus v10_32 on sdb6
kernel (hd0,5)/boot/vmlinuz from_dev=/dev/disk/by-uuid/b423a828-0c40-4738-b7e2-18621c769a47 changes=/dev/disk/by-uuid/b423a828-0c40-4738-b7e2-18621c769a47/porteus/modules/usb-sandisk.dat toroot autoexec=xconf;telinit~4 max_loop=256
initrd=(hd0,5)/boot/initrd.xz
boot


Re: Using UUID to identify save changes folder on usb

Posted: 26 Sep 2012, 14:28
by brokenman
from_dev=/dev/disk/by-uuid/b423a828-0c40-4738-b7e2-18621c769a47
From cheatcodes.txt
from_dev=UUID:b423a828-0c40-4738-b7e2-18621c769a47
changes=UUID:b423a828-0c40-4738-b7e2-18621c769a47/porteus/modules/usb-sandisk.dat

Re: Using UUID to identify save changes folder on usb

Posted: 26 Sep 2012, 15:13
by bigbass
Hey francois

I was investigating this when brokenman quickly answered the question first
EDITED I thought brokenman wrote that sorry which is a good thing since he wrote the script he knows best how it works :)

I see this as a good question because I also am experimenting with different ways to boot porteus
and its save file so there is a lot we all can learn from using different cheat codes ,bootloaders , and even possibly other ways to save it would be nice if others shared their porteus boot ups * I included my odd way to boot and run porteus below at the end of this post
I see that your are using GRUB




# 1.) run blkid in a terminal to confirm label and UUID

# lets look only at the USB or fat format check the label too

Code: Select all

blkid |grep -A1 "vfat"
# official cheat codes for Porteus
# http://porteus.org/info/docs/57-general ... -them.html

# The format allowed in the cheat code is
# changes=UUID:STrING-0F-ChARACtERS/path/file.dat


#Using brokenman's correct info and answer just added into the your original code pasted to have a full example
# as a quick future reference only let us know if you booted up ok

Code: Select all

title porteus v10_32 on sdb6
kernel (hd0,5)/boot/vmlinuz from_dev=UUID:b423a828-0c40-4738-b7e2-18621c769a47 changes=UUID:b423a828-0c40-4738-b7e2-18621c769a47/porteus/modules/usb-sandisk.dat toroot autoexec=xconf;telinit~4 max_loop=256
initrd=(hd0,5)/boot/initrd.xz
boot




============================
Extra info my save file
============================


I have an odd way to boot Porteus I just run a cd I burned with a cheat code like this its easy and clean notice no vga code I have a folder porteus-1.2 that has everything there this is a modified snippet of my porteus.cfg
and I dont have to mess with the MBR *as a side note I do have lilo installed so I should boot porteus with lilo but havent done that with porteus yet

LABEL tde
MENU LABEL Graphics mode (TDE)
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz vga= changes=/dev/sda2/porteus-1.2/ toroot
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT

Re: Using UUID to identify save changes folder on usb

Posted: 26 Sep 2012, 18:39
by brokenman
which is a good thing since he wrote the script he knows best how it works
Fanthom was the mastermind behind this.

Re: Using UUID to identify save changes folder on usb

Posted: 26 Sep 2012, 22:56
by bigbass
Hey Jay
I edited the post
Fanthom was the mastermind behind this
I was reading over this script it is a fine script that covers all the possible
options credit goes to those that do the work I was also reading over some of brokenmans scripts too
so sorry If I confused the author ....both of you guys do great job :good:


Anyone here booting porteus with a save file and lilo?

Joe

Re: Using UUID to identify save changes folder on usb

Posted: 26 Sep 2012, 23:13
by francois
Thanks brokenman. Its much appreciated that you have an answer to all my interrogations.

Thanks to you also bigbass, for taking time on my case. :)

Re: Using UUID to identify save changes folder on usb

Posted: 27 Sep 2012, 05:01
by Ahau
@bigbass, I have booted porteus with lilo(mostly to make sure lilo configs are working with xfce), but I don't typically use a save file. That said, I'm not sure why it should matter in this case. lilo doesn't interpret any part of the cheatcode "changes=/path/to/savefile.dat", it merely passes this string to the kernel, where it is stored in /proc/cmdline. linuxrc parses the command line to find the location of the save file. Are you having issues getting one to work with lilo?

Re: Using UUID to identify save changes folder on usb

Posted: 27 Sep 2012, 17:12
by bigbass
Thanks Ahau
you gave me a needed piece of info

There were still a few needed puzzle pieces missing
but decided not to be complacent and try again ... quite a few more times I will add :)

Multi boot using lilo

http://forum.porteus.org/viewtopic.php?f=75&t=1547
Joe

Re: Using UUID to identify save changes folder on usb

Posted: 28 Sep 2012, 02:24
by francois
I imagine that everybody knows how to access a save.dat container when it is not mounted thru the menu.lst instructions. Its the first time in my life that I work with that type of folder. :)