Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 25 May 2018, 01:26
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
How does Puppy detect it has a pupsave folder[SOLVED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
musher0


Joined: 04 Jan 2009
Posts: 12196
Location: Gatineau (Qc), Canada

PostPosted: Mon 09 Apr 2018, 15:35    Post subject:  How does Puppy detect it has a pupsave folder[SOLVED]
Subject description: rather than a pupsave file?
 

Hello all.

ATTS:

How does Puppy detect it has a pupsave folder rather than a pupsave file?

TIA

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)

Last edited by musher0 on Mon 09 Apr 2018, 22:20; edited 1 time in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 12196
Location: Gatineau (Qc), Canada

PostPosted: Mon 09 Apr 2018, 18:17    Post subject:  

Great. Nobody knows. Surprised
_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 820
Location: PH

PostPosted: Mon 09 Apr 2018, 20:46    Post subject:  

@musher0 in init script it just uses ls command to check if the pupsave exists and checks if it is a folder or file as simple as that.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 12196
Location: Gatineau (Qc), Canada

PostPosted: Mon 09 Apr 2018, 21:27    Post subject:  

Ah. Many thanks, mistfire.

Meanwhile, I found another way to find out: if the user has a save folder,
/initrd/pup_rw is a symlink to it; whereas if (s)he has a save file,
/initrd/pup_rw exists as a "real" directory, with "real" files in it.

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 820
Location: PH

PostPosted: Tue 10 Apr 2018, 00:24    Post subject:  

Or just read the pupmode number in /etc/rc.d/PUPSTATE

if the pupmode is 5 then it is in pristine state, no save files is loaded
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 885

PostPosted: Tue 10 Apr 2018, 00:55    Post subject:  

mistfire wrote:
Or just read the pupmode number in /etc/rc.d/PUPSTATE

if the pupmode is 5 then it is in pristine state, no save files is loaded
What's the pupmode for savefolder? Is it different than savefile?
Back to top
View user's profile Send private message 
mostly_lurking

Joined: 25 Jun 2014
Posts: 255

PostPosted: Tue 10 Apr 2018, 09:01    Post subject:  

drunkjedi wrote:
What's the pupmode for savefolder? Is it different than savefile?

It seems to be the same. I posted the content of a PUPSTATE file from a Puppy using a savefile on a HDD here as an example for someone who had trouble figuring out their own setup, and the person supplied their own file which showed that a save folder was being used; they both had pupmode 12. Saves on a USB device have pupmode 13 if I remember correctly, and multisession CDs have 77.
Back to top
View user's profile Send private message 
hamoudoudou


Joined: 24 Jul 2014
Posts: 868
Location: rabat

PostPosted: Mon 23 Apr 2018, 12:34    Post subject: usb is 13.  

usb is 13.
rw.jpg
 Description   rw is for changes during the session
 Filesize   61.53 KB
 Viewed   34 Time(s)

rw.jpg


Last edited by hamoudoudou on Mon 23 Apr 2018, 23:08; edited 1 time in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 12196
Location: Gatineau (Qc), Canada

PostPosted: Mon 23 Apr 2018, 14:19    Post subject:  

People?

As I said above, you do not need to overload your neurones wondering what
the PUPMODE is!!!

If /initrd/pup_rw is a symlink, you have a pupsave folder; if /initrd/pup_rw
exists as a "real" directory, you have a pupsave file.
Code:
[ "`ls -Algod /initrd/pup_rw | grep drw`" ] && echo -e "\n\tYou have a pupsave FILE." || echo -e "\n\tYou have a pupsave FOLDER."
BFN.
_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
hamoudoudou


Joined: 24 Jul 2014
Posts: 868
Location: rabat

PostPosted: Mon 23 Apr 2018, 21:26    Post subject: it's an info for people coming from Linux..  

it's an info for people coming from Linux.. Puppy users are used to pupsave, Dogs still repodruce multisession DVD RW process.. I use Dogs, and tremendous cheatcodes (pupsaves)..
Sure Puppy has been using pupsave for years. If there is something to improve, it's Dogs process.. perhaps that is the reason why they choose Puppy Linux forum to develop their Live CDs.. to get inspired..
PUPMODE 13 :
Pupsave don't need to create Linux partition.. Pupsave is an .2fs 3fs 4fs that can be inserted in FAT partition !!!
pupave is the first thing you learn when coming to Puppy from Windows.. of course We did not try windows process to testing Puppy Linux.. Linux coming to Puppy try to make it come back to vintage process.. (Grub2 is obsolete compared to Grub4dos). just look at menu.lst for Puppy and menu.lst for Dogs.. No need to precise where to go to find pupsave, pupsave is beside main sfs, in Fat32 formattted pendrive

# Frugal installed Puppy

title Puppy tahr64 6.0.5 (sdb1/Tahrpup64)
find --set-root --ignore-floppies --ignore-cd /Tahrpup64/initrd.gz
kernel /Tahrpup64/vmlinuz psubdir=Tahrpup64 pmedia=usbflash pfix=fsck
initrd /Tahrpup64/initrd.gz

title Puppy precise 5.4.1.1 (sdb1/ETP)
find --set-root --ignore-floppies --ignore-cd /ETP/initrd.gz
kernel /ETP/vmlinuz psubdir=ETP pmedia=usbflash pfix=fsck
initrd /ETP/initrd.gz
capture27847.jpg
 Description   Puppy running in Windows Seven harddisk NTFS partionned (LICK)
 Filesize   13.72 KB
 Viewed   50 Time(s)

capture27847.jpg

Back to top
View user's profile Send private message 
hamoudoudou


Joined: 24 Jul 2014
Posts: 868
Location: rabat

PostPosted: Mon 23 Apr 2018, 22:04    Post subject: about initrd rw :  

Save folder... i don't know.. I did not study yet.. In fact pupsave is a container of save folder..
study here bigpup to ...drunkjedi
Which boot parameter will load savefile/folder totally in RAM?
There is none.
Doing the adrv, as suggested above, is probably the easiest thing to do.
Last edited by bigpup on Wed 08 Feb 2017, 02:42; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0443s ][ Queries: 12 (0.0088s) ][ GZIP on ]