pfix=ram, cd boot, fix

rcrsn51 reported on the forum:

This bug has been reported before.

Suppose I have a frugal install of Wary in a hard drive partition. I then boot off the Live CD using "pfix=ram" because I want to run Gparted. Wary still searches for the sfs file on the hard drive and loads it instead of the copy on the CD. If I have enough memory to load the sfs, the hard drive partition is then unmounted and I can modify it with Gparted. However, on a low memory machine, the sfs file is left mounted and the partition is locked. So I can't change it.


Ok, I have modified the 'init' script in the initrd so that if booting off CD with 'pfix=ram' then will not search hard drives (or USB drives).


Posted on 18 Dec 2010, 5:21


Comments:

Posted on 18 Dec 2010, 7:22 by shinobar
'pmedia=cd' issue
Thanks, Barry.
How about the 'pmedia=cd' issue that cause UNetBotin fails?
http://www.murga-linux.com/puppy/viewtopic.php?p=470545#470545


Posted on 19 Dec 2010, 5:03 by BarryK
Re Unetbootin
Why is that a bug?

The iso is on a SD card, so you are booting from USB Flash memory, you are not booting from a CD.



Posted on 19 Dec 2010, 16:39 by shinobar
Re: 'pmedia=cd' issue
Cannot be a bug but an issue which arise by the recent change of woof.

In old woof, the 'pmedia=cd' boot option searched all the partition on the PC including USB media.
But with the recent change, it searches only internal devices excluding external media.
The change causes a problem using UNetbootin, used to work with old Puppy's but not works with recent woof.



Posted on 20 Dec 2010, 5:07 by BarryK
Re 'pmedia=cd'
As I see it, the new behaviour is more correct.

Booting with pmedia=cd, Puppy only searches optical drives for vmlinuz and the main sfs (and zdrv).

The save-file can be anywhere, including USB.



Posted on 22 Dec 2010, 8:12 by shinobar
'pmedia=cd' and UNetBootin
Yes, 'correct'. Can be an issue of backward compatibility.
Please be aware UNetBootin gets success with old Puppy's, but fails with new Puppy's.


Posted on 22 Dec 2010, 8:30 by BarryK
Correction
Booting with pmedia=cd, Puppy only searches optical drives for vmlinuz and the main sfs (and zdrv).

...correction, the above is true if boot with 'pfix=ram'.

Otherwise, searches optical for vmlinuz, but hd and optical for main .sfs (and zdrv).