Option to boot in RAM In grub4dos...

What features/apps/bugfixes needed in a future Puppy
Post Reply
Message
Author
watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

Option to boot in RAM In grub4dos...

#1 Post by watchdog »

Booting frugal puppy with grub4dos automatically loads the savefile when it is just one. To see an option to boot in live mode without a savefile you must have two or more savefiles or you must use a separate menu entry in menu.lst. How about to also add an option to boot in live mode when you have only a savefile without using a separate grub4dos menu entry?

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hi watchdog.

At the CD/DVD prompt, type
puppy pfix=ram
and the Puppy will start without the save file, as it was originally.

Similarly, add
pfix=ram
to your grub4dos entry (on the kernel line) and your Puppy will
start without the save file.

Some users create an additional entry for "Puppy - no savefile"
with that parameter in the menu.lst to boot their Puppy pristine.

IHTH
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#3 Post by watchdog »

How to change initrd.gz and init script to always show a "0 nosavefile" choice at boot?

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#4 Post by musher0 »

Sorry. I misread your OP.

What I use is this: enter your Puppy directory, open a terminal and type

Code: Select all

echo . > stretchsave-dummy.2fs
(Replace the "stretch" part with the name of your pup. It could be
tahrsave-dummy.2fs, for example.)

This does not create an additional entry in the menu.lst. Simply at one
point the boot process will stop and display something like:
0 Pristine Puppy
1 stretchsave-dummy.2fs # (or whatever the name of your Pup)
2 stretchsave-real.3fs # (or whatever the name of your real save file)
This allows you to type 0 or 2, according to your need.
And then the boot process continues normally.
No need to change anything in initrd.gz, etc.

IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#5 Post by dancytron »

musher0 wrote:Sorry. I misread your OP.

What I use is this: enter your Puppy directory, open a terminal and type

Code: Select all

echo . > stretchsave-dummy.2fs
(Replace the "stretch" part with the name of your pup. It could be
tahrsave-dummy.2fs, for example.)

This does not create an additional entry in the menu.lst. Simply at one
point the boot process will stop and display something like:
0 Pristine Puppy
1 stretchsave-dummy.2fs # (or whatever the name of your Pup)
2 stretchsave-real.3fs # (or whatever the name of your real save file)
This allows you to type 0 or 2, according to your need.
And then the boot process continues normally.
No need to change anything in initrd.gz, etc.

IHTH.
Or you can incorporate it into you backup process. Just make the minimal settings you normally make and name your savefile something like tahrsave-first.2fs. Then, boot with pfix=ram or into another Puppy and copy the tahrsave-first.2fs file and call it something like tahrsave-main.2fs. Then you get the same choice as Musher described and you have an extra minimal save file to boot into if you have problems with your main one. This approach also works with save folders.

watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#6 Post by watchdog »

Yes, no need to change init script. Many thanks.

Pelo

create a second one, but blank.

#7 Post by Pelo »

When there is only one save file, i create a second one, but blank.
pelosave-vide.2fs
Then computer stops boot with proposal
0 (ram)
1 (real savefile)
2 blank save file
Last edited by Pelo on Wed 24 May 2017, 19:00, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#8 Post by musher0 »

Ahem.

There is no Puppy called "peloPup". :roll: Therefore, there can be no
pupsave file called pelosave-whatever.?fs. Further, all pupsave files must
have an ending of 2fs, or 3fs, or 4fs. Only the Puppy system files have an
ending of sfs.

So your example won't and cannot work, pelo. Why are you giving wrong
information to watchdog?

Geez.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Pelo

Typing error. My process is guaranteed

#9 Post by Pelo »

Typing error. My process is guaranteed (used thousands of times)
Sure replace pelosave by the valid pupsave name of your Puppy running :shock:
Attachments
boot.jpg
just remove 'x' to reactivate pupsave
(73.69 KiB) Downloaded 100 times
Last edited by Pelo on Thu 24 Aug 2017, 07:09, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: Typing error. My process is guaranteed

#10 Post by musher0 »

Pelo wrote:Typing error. My process is guaranteed (used thousands of times)
Sure replace pelosave by the valid pupsave name of your Puppy running :shock:
Typing error, my eye. Your initial message was totally unnecessary, since I
had already informed watchdog of the process, plus dancytron later
offered a variant of it.

"La parole est d'argent, mais le silence est d'or." /
"Speech is silver, but silence is gold."
You'll never learn to shut up when not needed, won't you?
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#11 Post by nic007 »

I know the poster asked how to do it without an extra menu entry but surely the extra menu entry soluton is the easiest and most convenient way. Just call the one entry RAM mode in the title. I am trying to think why someone would want to use the extra fake savefile method if one only has one savefile.

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#12 Post by Burn_IT »

It could have been done in the time it took to write the question in the first place -as said.
"Just think of it as leaving early to avoid the rush" - T Pratchett

Post Reply