Author |
Message |
rcrsn51

Joined: 05 Sep 2006 Posts: 11889 Location: Stratford, Ontario
|
Posted: Sun 22 May 2011, 13:38 Post subject:
|
|
Indy'spup wrote: | /mnt/sda1/puppy520 |
Is that a Windows partition? How is it formatted? The editinit script ONLY works in an ext partition.
|
Back to top
|
|
 |
Indy'spup
Joined: 11 May 2011 Posts: 50 Location: SoCal
|
Posted: Sun 22 May 2011, 14:00 Post subject:
|
|
I know this is entirely user error lol plz bear with me here..
Fugal install to a ext3 primary partition. /mnt/sda1/puppy520 is the location of this installation when viewed and mounted using the macpup520 live cd
|
Back to top
|
|
 |
Indy'spup
Joined: 11 May 2011 Posts: 50 Location: SoCal
|
Posted: Sun 22 May 2011, 14:15 Post subject:
|
|
WOW!!
I have no idea what I just did but rebooted to the fugal install and this time it's working, go figure..
brb
|
Back to top
|
|
 |
Indy'spup
Joined: 11 May 2011 Posts: 50 Location: SoCal
|
Posted: Sun 22 May 2011, 15:28 Post subject:
|
|
Well, I managed to edit the the initrd file (still not sure how this was possible) but if a day of extraordinary effort didn't blow my mind then the next step will for sure...
lol
What is the significance of the Data directory?
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 11889 Location: Stratford, Ontario
|
Posted: Sun 22 May 2011, 15:30 Post subject:
|
|
Quote: | What is the significance of the Data directory? |
Where?
|
Back to top
|
|
 |
Indy'spup
Joined: 11 May 2011 Posts: 50 Location: SoCal
|
Posted: Sun 22 May 2011, 15:32 Post subject:
|
|
Sorry was just coming back to that..
this data directory?
mount /dev/sda1 /mnt/data
cp /mnt/data/puppy431/pup_save.bak /mnt/data/puppy431/pup_save.2fs
umount /mnt/data
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2572 Location: UK
|
Posted: Sun 22 May 2011, 15:40 Post subject:
|
|
rcrsn51 I like your approach.. Looks nice.. I think I have another method, any thoughts or ideas are welcome... It is not yet made, or tested, although I see no problems in making this a reality.
Anyway... Here's the method:
I plan to make a 'kiosk' (locked down) mode for puppy, by editing the initrd.gz and adding a new pfix option ('pfix=kiosk', of course)... Booting with 'pfix=kiosk' will add an entry into /etc/PUPSTATE (as I believe this is already done from the init script), that says KIOSK=true.
If KIOSK=true, the save interval in the Puppy Event Manager wil be forced to zero (no scheduled saves).. Also, rc.shutdown will be updated, so that it checks for kiosk mode in PUPSTATE and skips saving to the save file at shutdown.
I also have made a 'delaysave' pfix option, which simply forces PUPMODE 13 into PUPMODE 12 - which disables real-time saving to the save file. Kiosk mode, which must also force the 'delaysave' option, would create a locked-down puppy, that can be enabled and disabled at boot, regardless of which save file is being used.
This is much more complicated than your method, but I think it's really quite flexible, and I will give it a go! Just thought I'd share the approach that I was thinking of using, take it or leave it!
Hope I'm not invading the thread!
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
Last edited by sc0ttman on Sun 22 May 2011, 18:21; edited 2 times in total
|
Back to top
|
|
 |
Indy'spup
Joined: 11 May 2011 Posts: 50 Location: SoCal
|
Posted: Sun 22 May 2011, 15:46 Post subject:
|
|
The reason is that a /mnt/data directory doesn't exist in my fugal install. so I created one, ie: a data directory along with the nested directory puppy520, inside this I copied the file macpup_save.bak and edited the initrd entry accordingly.
only thing is (I know you guessed it!) the darn sav.bak file is never read or copied at boot time..
Must be related to it's location, which is why I wondered about the significance of the data directory.
I need to go back to square one I think.. and RTFM
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 11889 Location: Stratford, Ontario
|
Posted: Sun 22 May 2011, 15:56 Post subject:
|
|
Indy'spup wrote: | this data directory?
mount /dev/sda1 /mnt/data
cp /mnt/data/puppy431/pup_save.bak /mnt/data/puppy431/pup_save.2fs
umount /mnt/data |
Windows users are used to copying files from locations like C: to D:.
But in Linux, you have to mount a partition before you can work with the files in it. You can think of a mount point as being a door that gives you access to the files in a partition. (Have you seen the children's movie Monsters Inc.?)
Since all Puppies have a predefined mount point named /mnt/data, the script uses it to copy the file pup_save.bak to pup_save.2fs.
There is nothing special about /mnt/data. You can use any directory as a mount point.
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 11889 Location: Stratford, Ontario
|
Posted: Sun 22 May 2011, 16:22 Post subject:
|
|
Indy'spup wrote: | The reason is that a /mnt/data directory doesn't exist in my fugal install. |
???
I just checked my frugal install of Macpup520 and /mnt/data was definitely there. Of course, it's empty until you mount something onto it.
|
Back to top
|
|
 |
Indy'spup
Joined: 11 May 2011 Posts: 50 Location: SoCal
|
Posted: Sun 22 May 2011, 16:29 Post subject:
|
|
lol ok I understand I'm not looking in the correct places 90% of the time
sorry for hijacking the thread, maybe a moderator can move my posts back to my original thread..?
Meanwhile, is this a valid entry?
#######END MODULE LOADING TO ACCESS DRIVES##########
mount /mnt/sda1/puppy520
cp /mnt/sda1/puppy520/macpup_save.bak /mnt/sda1/puppy520/macpup_save.2fs
umount /mnt/sda1/puppy520
#########FINDING PUPPY FILES#############
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 11889 Location: Stratford, Ontario
|
Posted: Sun 22 May 2011, 16:33 Post subject:
|
|
This is correct.
Code: | mount /dev/sda1 /mnt/data
cp /mnt/data/puppy520/macpup_save.bak /mnt/data/puppy520/macpup_save.2fs
umount /mnt/data |
|
Back to top
|
|
 |
Indy'spup
Joined: 11 May 2011 Posts: 50 Location: SoCal
|
Posted: Sun 22 May 2011, 16:47 Post subject:
|
|
OK thanks I'm going to give this a whirl now
|
Back to top
|
|
 |
Indy'spup
Joined: 11 May 2011 Posts: 50 Location: SoCal
|
Posted: Sun 22 May 2011, 17:27 Post subject:
|
|
Oh Brother....!!
I must be missing something.. back to the manual!
lol
|
Back to top
|
|
 |
Indy'spup
Joined: 11 May 2011 Posts: 50 Location: SoCal
|
Posted: Sun 22 May 2011, 17:53 Post subject:
|
|
I've been under the impression that puppy will load any save file which ends in .2fs now I'm not so sure of that criteria..
Am also not so sure it was wise to configure the puppy installation saved to the puppy save file prior to editing the initrd script..
Since I've not been successful in keeping the save file after a reboot I've commented out the changes in the initrd script until I can get puppy to load the save file previously created..
brb
|
Back to top
|
|
 |
|