| Author |
Message |
lilleguard-liste
Joined: 29 May 2008 Posts: 42 Location: Loppa (Norway)
|
Posted: Sun 28 Dec 2008, 18:15 Post subject:
How to fake pfix=ram boot option with USB-install Subject description: pfix=ram usb frugal .2fs in root folder |
|
I boot puppy linux from a usb-stick. I have saved my personal settings in a pup_save-myname.2fs file. Sometimes I have wanted to do a fresh boot (ignoring my pup_save-file). With a live-CD I can do that by writing pfix=ram before the installation begins, but with the usb-install this isn't possible.
My solution to this has been to make an exstra .2fs file: pup_save-EMPTYFILE.2fs. Placing this in the same folder as my pup_save-myname.2fs file halts the usual boot process and gives me the option of choosing three options:
0) Boot without any personal file (fresh)
1) Boot pup_save-myname.2fs
2) Boot pup_save-EMPTYFILE.2fs
Option 0 initiates a fresh puppy install!
Perhaps anyone knows a smarter way of doing this (a secret key combination during booting which forces pfix=ram)?
|
|
Back to top
|
|
 |
Evil20071

Joined: 07 Jun 2008 Posts: 425 Location: Piedmont, SC,.United States
|
Posted: Sun 28 Dec 2008, 18:20 Post subject:
|
|
Not sure if this will work... try installing grub, and add an entry to the menu.lst for normal startup, and one with the boot option you want? Not sure if it'll work though. Only thing I can think up on the spot though.
_________________
Click for Detailed PC info

|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7748 Location: Stratford, Ontario
|
Posted: Sun 28 Dec 2008, 19:42 Post subject:
|
|
@lilleguard-liste :
There is no secret key combination. Your technique is a clever alternative.
The Puppy Universal Installer sets up flash drives with the syslinux bootloader. It is possible to create a menu in its syslinux.cfg file. Once you figure out the syntax, you could add an entry that has "pfix=ram" on the "append" line.
|
|
Back to top
|
|
 |
DanYHKim

Joined: 14 Sep 2008 Posts: 103
|
Posted: Mon 05 Jan 2009, 16:24 Post subject:
Edit your GRUB script on the fly Subject description: If you don't have a GRUB menu.lst entry for pfix=ram |
|
If your USB install includes GRUB, then you can set some short delay time for the menu.lst entries to be displayed. During this time, you can use the up/down arrows to highlight an entry that you want to boot with.
If you press "E", you can edit the lines of this instruction, so if GRUB normally boots Puppy and loads your puppyxx.2fs file or whatever, you can append the command "pfix=ram" in the command. Press ESC (I think) and then "B" to proceed with the boot.
Puppy will now follow the instruction you added, and load with the pfix=ram parameter. This is not a permanent change to menu.lst! Instead, it will work for this session only.
I have found this useful when I want to create a new *.2fs file and ignore the old one.
|
|
Back to top
|
|
 |
zandarian
Joined: 14 Oct 2009 Posts: 46
|
Posted: Sun 25 Oct 2009, 14:52 Post subject:
|
|
Yesterday I first tried my "pendrive Puppy" in different computers from usual. I noticed that they shouldn't have loaded my computer's configuration from xxxxx.2fs: the desktop showed a mixed collection of drives; the same back in my computer. And the mouse of the other computers didn't work ....
So I did like lilleguard-liste told. But I didn't find it nice because back to my computer I had to select 1 or 2 all the time ... making the bootup slower and less comfortable.
I also tried to add pfix=ram without success.
But today I've found the solution:
(Comment: I installed Puppy Linux with UNetbootin, that makes the USB memory or pendrive to boot with SYSLINUX)
In the beginning of the booting, in the UNetbootin menu, I choose Default or puppy and press tab. I delete pmedia=cd and replace it with pfix=ram . Enter and ... it's done!! When I finish and shutdown I tell the computer not to save anything. (Not to have to remember pfix=ram I've writen it on the pendrive external surface, physically, with a waterproof marker)
To make it easier (and not to have too many things written on my pendrive case) I've done this:
I've opened /mnt/home/syslinux.cfg, copied the last paragraph, pasted and edited both of them. So now these are the last 2 paragraphs:
| Code: | label ubnentry0
menu label puppy-saved_sessions
kernel /vmlinuz
append initrd=/initrd.gz pmedia=cd
label ubnentry1
menu label puppy-not_saved_session
kernel /vmlinuz
append initrd=/initrd.gz pfix=ram |
So now, in the beginning of the booting, in the UNetbootin menu, I can choose how I want the boot to be: based in saved session(s) or fresh (just in RAM). If I choose the second option while shutting down I choose not to save the session. But if in the future I begin to use another computer frequently I may save it in another xxxxxxx.2fs .
Tip: I've copied the xxxxxxx.2fs file that I use with my computer to a folder in the pendrive, and renamed its extension. This way if by accident I boot in a different computer using the session file instead of just RAM, getting it "polluted", I can replace the spoiled file with the backuped and rename it well so I go back to normality.
Enjoy!
|
|
Back to top
|
|
 |
scabz

Joined: 30 Apr 2009 Posts: 206 Location: Tallahassee FL US
|
Posted: Mon 26 Oct 2009, 13:28 Post subject:
|
|
This might be a dumb ? but have to tried "puppy pfix=ram"
with gurb it is just pfix=ram but when booting from cd or usb, when it asks you boot options type
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Mon 26 Oct 2009, 13:34 Post subject:
|
|
To add to this topic if you still want to load an sfs file without a save file you can simply rename it to what your zdrv sfs would be named for that puppy version. I do this with the devx so that I can ensure dependencies are minimized and tracked. (there is a pet that will let you do it dynamically now though so its not as useful as it once was)
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
scabz

Joined: 30 Apr 2009 Posts: 206 Location: Tallahassee FL US
|
Posted: Mon 26 Oct 2009, 13:39 Post subject:
|
|
| technosaurus wrote: | | To add to this topic if you still want to load an sfs file without a save file you can simply rename it to what your zdrv sfs would be named for that puppy version. I do this with the devx so that I can ensure dependencies are minimized and tracked. (there is a pet that will let you do it dynamically now though so its not as useful as it once was) |
hey thanks for this info, man i should of thought of that its so simple.
|
|
Back to top
|
|
 |
r__hughes
Joined: 13 Apr 2006 Posts: 335 Location: Canada
|
Posted: Mon 26 Oct 2009, 14:14 Post subject:
|
|
The zip file contains a boot_changes folder with the following
new files.
boot.msg
extlinux.conf
help.msg
logo.16
Drag & drop these onto the USB to replace the originals
You can edit the boot.msg to show the appropriate pup version (it
has 4.30 at present)
The usb now boots up with the same logo & messages as the Live CD
| Description |
|

Download |
| Filename |
usb_bootchanges.zip |
| Filesize |
58.02 KB |
| Downloaded |
442 Time(s) |
_________________ --- triple booting pup431 & Slacko55PAE (with OO3/LO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 610 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
|
|
Back to top
|
|
 |
DemostiX
Joined: 24 Apr 2009 Posts: 42
|
Posted: Sat 31 Oct 2009, 02:09 Post subject:
How to fake pfix=ram boot option with USB-install |
|
Thank you so much r_hughes. I'd asked for this in other, and maybe the wrong way, because it was obvious that if the splash screen and options were right for OS loading from CD, then they should be immediately available from the USB flash drive, without complications of a boot loader etc.
(I could digress to explain to non-virgins here, that there are probably lots of us who went through the trauma of faulty early Ubuntu installers of grub which lied to us about how our hdds would be treated. We'll evermore be tentative about it. )
Hope the Universal Installer will evermore restore this capability, and that puplet developers will also.
|
|
Back to top
|
|
 |
zandarian
Joined: 14 Oct 2009 Posts: 46
|
Posted: Wed 18 Nov 2009, 12:48 Post subject:
|
|
I've installed the last Puppy, 4.3.1, in a pendrive of mine, this time without UNetbootin. This is how I've put syslinux.cfg to be able to choose between using saved session(s) or booting fresh:
| Code: |
default 1sessions
say -
say If no key is pressed in 5 seconds boot begins taking saved sessions into account
say -
prompt 1
timeout 50
label 1sessions
say 1sessions
kernel vmlinuz
append initrd=initrd.gz pmedia=cd
label 2fresh
say 2fresh
kernel vmlinuz
append initrd=initrd.gz pfix=ram
say -
|
This way no boot.msg , help.msg nor logo.16 files are needed. They can be deleted. More info in http://murga-linux.com/puppy/viewtopic.php?t=48484
|
|
Back to top
|
|
 |
fyujj
Joined: 04 Apr 2009 Posts: 103
|
Posted: Sat 24 Jul 2010, 09:47 Post subject:
|
|
**Updating**
Quirky 1.2 has a simple one-line syslinux.cfg
| Code: | | default vmlinuz initrd=initrd.gz pmedia=usbflash |
To append pfix=ram on-the-fly, one just needs to press the Shift key when booting the flashdrive and syslinux will go to a "boot:" prompt, then type
| Code: | | vmlinuz initrd=initrd.gz pmedia=usbflash pfix=ram |
(Alt key, Caps Lock and Scroll Lock also can be used, as detailed in Syslinux's wiki)
Then when one has more than one pup_save file in the flashdrive Puppy will automatically offer the option to boot with no pup_save loaded.
|
|
Back to top
|
|
 |
|