Using UUID to identify save changes folder on usb

Non release banter
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.

Using UUID to identify save changes folder on usb

Post#1 by francois » 26 Sep 2012, 11:27

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

Prendre son temps, profiter de celui qui passe.

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

Re: Using UUID to identify save changes folder on usb

Post#2 by brokenman » 26 Sep 2012, 14:28

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
bigbass
Contributor
Contributor
Posts: 151
Joined: 13 Jan 2012, 14:35
Distribution: slackware 14

Re: Using UUID to identify save changes folder on usb

Post#3 by bigbass » 26 Sep 2012, 15:13

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
Last edited by bigbass on 26 Sep 2012, 22:45, edited 2 times in total.

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

Re: Using UUID to identify save changes folder on usb

Post#4 by brokenman » 26 Sep 2012, 18:39

which is a good thing since he wrote the script he knows best how it works
Fanthom was the mastermind behind this.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
bigbass
Contributor
Contributor
Posts: 151
Joined: 13 Jan 2012, 14:35
Distribution: slackware 14

Re: Using UUID to identify save changes folder on usb

Post#5 by bigbass » 26 Sep 2012, 22:56

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

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: Using UUID to identify save changes folder on usb

Post#6 by francois » 26 Sep 2012, 23:13

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. :)
Prendre son temps, profiter de celui qui passe.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Using UUID to identify save changes folder on usb

Post#7 by Ahau » 27 Sep 2012, 05:01

@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?
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
bigbass
Contributor
Contributor
Posts: 151
Joined: 13 Jan 2012, 14:35
Distribution: slackware 14

Re: Using UUID to identify save changes folder on usb

Post#8 by bigbass » 27 Sep 2012, 17:12

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
Last edited by bigbass on 30 Sep 2012, 04:41, edited 2 times in total.

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: Using UUID to identify save changes folder on usb

Post#9 by francois » 28 Sep 2012, 02:24

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. :)
Prendre son temps, profiter de celui qui passe.

Post Reply