Pussy: potentially a Puppy with a perfect package manager

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1481 Post by saintless »

nooby wrote:So it is that difficult? I wonder what changes that Ubuntu made to the Debian code/script that allowed my cheat booting learned from d4p and maybe others.
Nooby, you can be sure the changes they made are in initrd.img file and vmlinuz file. Most likely they did it by accident and they can't tell you what exactly makes the rw access to boot NTFS partition possible.

You can try to tease them with a question like that but I doubt they will help you with answer what exactly and where has to be changed.
nooby wrote:Wish Debian had such a loophole too. :)
Yes, there is a loophole for full rw access to all your NTFS partitions, but you will need at least 512Mb RAM on your computer.

1. Merge all the squash files in one big squash file. (I'm doing this for my needs anyway and I can upload the result if you want to test this NTFS rw method).

2. Move this merged big squash file inside the live folder with initrd.img and vmlinuz files. Don't leave any other files inside the live folder. Just initrd.img, vmlinuz and 01-merged.squashfs (lets assume this is the name of the merged squash file).

3. Add this at the end of your kernel line in the menu list:

Code: Select all

toram=01-merged.squashfs
My boot code looks like this:

Code: Select all

title Pussy Linux Beta 2
root=(hd0,0)
kernel /live/vmlinuz boot=live config persistent swapon quickreboot noprompt autologin username=root password=pussy toram=01-merged.squashfs
initrd /live/initrd.img
boot
This will copy only the squash file into RAM.

4. Reboot the computer. Now Pussy linux is running in your RAM and your NTFS partition is ready to be mounted with RW access.

With my merged copy your NTFS partition will be mounted from boot because of the auto-mount-all-drives script from Emil, which is included for my needs. If it is mounted as read-only with this auto-mount script you will have to unmount and mount it again with ntfs3g driver.

Anyway you will have RW access to all your NTFS partitions, because the system will boot from the live folder on your NTFS partition but it will be running in your RAM letting you to do whatever you like with your NTFS partitions. You can even format your entire hard drive if you like.

I suppose this will be convenient enough for you to use Pussy linux or any Debian live CD.


Edit: You can also test this with this HotROX merged file from JBV. It contains the first two squash files from pussy linux. Download it from here:
http://www.thepussycatforest.info/linux ... y.squashfs
Last edited by saintless on Sat 26 May 2012, 19:03, edited 1 time in total.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1482 Post by saintless »

OK, Nooby,

tested with 1-hotROXpussy.squashfs and it works like charm. You will need only 200 MB of RAM with hotROX.
Download link here:
http://www.thepussycatforest.info/linux ... y.squashfs

Put in the live folder 1-hotROXpussy.squashfs, vmlinuz and initrd.img and add this at the end of the kernel line in menu list:

Code: Select all

toram=1-hotROXpussy.squashfs
Here is mine full code:

Code: Select all

title Pussy Linux Beta 2
root=(hd0,0)
kernel /live/vmlinuz boot=live config persistent swapon quickreboot noprompt autologin username=root password=pussy toram=1-hotROXpussy.squashfs
initrd /live/initrd.img
boot
Then reboot. Your NTFS partition will not be even mounted.
You can mount it and you have rw access and much more - for the experiment I just deleted my entire partition: containing the live folder with 1-hotROXpussy.squashfs, vmlinuz and initrd.img.

Hope this is enough cheat code for your NTFS problem.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#1483 Post by nooby »

Thanks I give it a try
It boots but I have no way to find the harddisk.

"You can mount it "

How do I mount it? it is sda2

I also fail to get firefox going I added that sqfs file too from
the older hotrox How does one call it up? Lynx I have no idea
how to tell it to go to www
Networks seems to fail too. Nothing happens when I click on it

But if I use the same code and use the older 1-hotrox.sqfs from
Mars 3 instead of the lastest one then both firefox works and
access to Drive works. Have not tested to write anything yet
I am in pussy now.

Edit Leafpad can not write with the older 1-hotrox
so good that you have tested to change that
but no good that it failed to start firefox and no access to the HD
drive is nowhere to be seen. Very odd
thanks for the try though. Would could I do wrong ?
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1484 Post by saintless »

nooby wrote:Thanks I give it a try
It boots but I have no way to find the harddisk.

"You can mount it "

How do I mount it? it is sda2

I also fail to get firefox going I added that sqfs file too from
the older hotrox How does one call it up? Lynx I have no idea
how to tell it to go to www
Networks seems to fail too. Nothing happens when I click on it

But if I use the same code and use the older 1-hotrox.sqfs from
Mars 3 instead of the lastest one then both firefox works and
access to Drive works. Have not tested to write anything yet
I am in pussy now.

Edit Leafpad can not write with the older 1-hotrox
so good that you have tested to change that
but no good that it failed to start firefox and no access to the HD
drive is nowhere to be seen. Very odd
thanks for the try though. Would could I do wrong ?
Nooby, with this Grub code you can load only one squash file in RAM. You can't load easy another squash file from the hard drive.
If you manage to load the firefox squash file from your live folder you will go back to your NTFS problem, because the firefox squash file will make your NTFS partition to give you the error:"can't mount the device, the device is bussy", or something simillar.

To have firefox working yo need to merge firefox squash file with 1-hotroxpussy squash file. They have to become one file. This is easy to do so don't waste your time with this now.

Try to mount the sda2 this way. It will mount the partition in /mnt folder:

Code: Select all

mount /dev/sda2 /mnt
This works with NTFS partition created with GParted. I'm not sure if it will work with partition created by Windows. For Windows NTFS partition may be this command will work better:

Code: Select all

mount -t ntfs-3g /dev/sd2 /mnt
Once you confirm you can write on your NTFS partition I will write you how to get firefox working.

You have internet connection. Type in terminal:

Code: Select all

apt-get update
and you will see.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#1485 Post by nooby »

okay thanks
I give it a short try now it is too late for anything more 10.53PM

Yes that worked well.
Using Iceweasel now åäö even works.

But I should have prepared the savefile
now I will lose everthing when I shut down :)
And now I can write to the hd too. Ooops should take a last look
Hold your breath. Yes it works to write using leafpad.

Jay thanks Saintless. AFAIK it did not work using the old one.
So this is real progress.

I have now created a save file but are not sure if I have
to rename it for it to work and if I should place it in hotroxpussy
dir or on home? Root? /
I use Google Search on Puppy Forum
not an ideal solution though

aarf

#1486 Post by aarf »

aarf wrote:
sunburnt wrote: All people are capable of playing a violin, and probably a few animals.

.
i've played a few cats in my time but we can all rest easy in our beds knowing that the pollys are on to it. http://www.news.com.au/breaking-news/ca ... 6366886344
and after they finish with the pussys their coming to microchip your budgie

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1487 Post by saintless »

nooby wrote:okay thanks
I give it a short try now it is too late for anything more 10.53PM

Yes that worked well.
Using Iceweasel now åäö even works.

But I should have prepared the savefile
now I will lose everthing when I shut down :)
And now I can write to the hd too. Ooops should take a last look
Hold your breath. Yes it works to write using leafpad.

Jay thanks Saintless. AFAIK it did not work using the old one.
So this is real progress.

I have now created a save file but are not sure if I have
to rename it for it to work and if I should place it in hotroxpussy
dir or on home? Root? /
All right, Nooby, do not rush. One step at a time, please ;)
You have RW access on your NTFS boot partition and working internet connection. Well done!

You don't need to install Iceweasel at all.
As I promised here is the way to use 44-firefox.squashfs:

1. Mount your partition and navigate to 44-firefox.squashfs. It doesn't matter where this file will be located. Then click on it and a new window will open with two folders (scripts and user). You will also have a mount point to this two folders in /mnt/+mnt+path+to+the+file (if you mount sda2 in /mnt).

2. Open the user folder and navigate to firefox executable file:
user --> local --> firefox (folder)--> firefox (file). Single click on this file will start Firefox.

The same way you can open 4-pussyxtra-beta2.squashfs and you can start OpenOffice and AssaultCube from /xtra folder.

Now about your save file - I can't test it with NTFS partition made from Windows because I have not any Windows installed.
You will have to test this yourself.
The save file has to be named live-rw and the location must be on the top of any partition. Not inside any folder. If you use your boot partition you have to see your live folder and live-rw file next to each other.
It is better to use different partition, not the boot partition where your /live folder is located, because this save file will mount your boot partition.
You can test to see if it will mount the boot partition in ro or rw mode. If it is ro mode you have to put it on another partition or on usb stick instead. Otherwise again you will lose rw access to your boot NTFS partition.

Another way to have save file is to create snapshots and to merge them with 1-hotROXpussy.squashfs.

You have enough tasks to test for know. Be happy and let us know if something works or not.
Last edited by saintless on Sun 27 May 2012, 00:14, edited 1 time in total.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1488 Post by saintless »

Nooby, I forgot to add you need to have the word persistent in your kernel line in grub menu list in order to use live-rw file.

And one more important thing:
Do not delete live-rw file while it is in use from 1-hotROXpussy!
If you need to delete it do it from LM or Puppy or from Windows.
Otherwise you may loose the space from live-rw file and the only way to get it back is to format the partition.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#1489 Post by nooby »

Thanks for all your efforts.

This part does not look promising at all.

"It is better to use different partition,
not the boot partition where your /live folder is located,
because this save file will mount your boot partition.

You can test to see if it will mount the boot partition in ro or rw mode.
If it is ro mode you have to put it on another partition or on usb stick instead.
Otherwise again you will lose rw access to your boot NTFS partition. "

So Debian is almost impossible to use in frugal install.

Now wonder it took years for AntiX devs to make it possible for them.
Thanks for the description how to install firefox. But without being able
to use the live-rw then what usage would I have of Pussy?

I could use LM12 instead and have a much more modern distro?

An odd thing is that when I start up Terminal and give it the command
setxkbmap se then it takes nearly 60 seconds to parse that one.

So something is very wrong there. LM12 does it in a second.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1490 Post by saintless »

nooby wrote:Thanks for all your efforts.

This part does not look promising at all.

"It is better to use different partition,
not the boot partition where your /live folder is located,
because this save file will mount your boot partition.

You can test to see if it will mount the boot partition in ro or rw mode.
If it is ro mode you have to put it on another partition or on usb stick instead.
Otherwise again you will lose rw access to your boot NTFS partition. "

So Debian is almost impossible to use in frugal install.

Now wonder it took years for AntiX devs to make it possible for them.
Thanks for the description how to install firefox. But without being able
to use the live-rw then what usage would I have of Pussy?

I could use LM12 instead and have a much more modern distro?

An odd thing is that when I start up Terminal and give it the command
setxkbmap se then it takes nearly 60 seconds to parse that one.

So something is very wrong there. LM12 does it in a second.
Nooby, I didn't say save file on boot partition will not work for you. You have to try it to find out your self.
You can also use a snapshot instead of save file or live-rw file on a flash drive or on a different partition.

Debian is very easy to use frugal on vfat and ext partitions. As you can see it is difficult but possible on NTFS partition also.

If live-rw save file on your boot partition makes the partition to mount in read-only mode you can use live-rw on flash drive or snapshot to save your settings. But you don't know if live-rw works or not on your boot partition unless you try it.

I don't remember trying to convince you how modern is Pussy linux compared to other linux, nor to use Pussy linux instead of Linux Mint or Puppy.

The point is you can use it even on NTFS boot partition with read and write access. This was your problem and now it is solved.

60 seconds for setxkbmap: I don't know way it is so slow on your computer. This command takes 2-3 seconds on mine.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#1491 Post by nooby »

Yes sorry. this time terminal took only 1 second. I think I used the
LX-terminal when it too some 60 seconds. Not sure. I test again.

I did my best to get the save file working but I don't have
the brain needed to get all this.
What am I supposed to do to tell it to save it to the live-rw?

Nothing happens.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1492 Post by saintless »

nooby wrote:What am I supposed to do to tell it to save it to the live-rw?

Nothing happens.
Nooby, you need to have live-rw file on sda2 partition. Don't move it inside any folder. When you mount sda2 you have to see live-rw file and live folder next to this file.

The other thing to do is to add persistent to your kernel line.

title Pussy Linux Beta 2
root=(hd0,0)
kernel /live/vmlinuz boot=live config persistent swapon quickreboot noprompt autologin username=root password=pussy toram=01-hotROXpussy.squashfs
initrd /live/initrd.img
boot

Then reboot and install some program. Then reboot again and see if this program is still there.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#1493 Post by nooby »

Hehe that is what I trust I have done a few times now.
I failed making the 44-firefox opening the way you wrote.
It shows the clock that it do something but in the end
nothing happens. So I lost temper and used synaptic
and installed iceweasel instead.

Now I will reboot and see if it remains.
Edit Nope it is gone so something fails.
Could be me not good at reading your
instructions. I've done my best though
and have to give priority to other things.

A major redo of how to place furniture in my small room.
Will take days to change around.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1494 Post by saintless »

nooby wrote: Now I will reboot and see if it remains.
Edit Nope it is gone so something fails.
Could be me not good at reading your
instructions..
OK, Nooby,
live-rw works from NTFS partition according to debian live manual:
But since live system users cannot always use a hard drive partition, and considering that most USB keys have poor write speeds, 'full' persistence could be also used with just image files, so you could create a file representing a partition and put this image file even on a NTFS partition of a foreign OS, with something like:

Code: Select all

dd if=/dev/null of=live-rw bs=1G seek=1
/sbin/mkfs.ext2 -F live-rw
This will create 1Gb live-rw file.
Then copy the live-rw file to a writable partition and reboot with the boot parameter 'persistent'.
So you might be doing something wrong. Don't forget to format the live-rw file for ext2 with:

Code: Select all

/sbin/mkfs.ext2 -F live-rw
or

Code: Select all

mkfs.ext2 -F live-rw
Take your time.

Also check is your sda2 partition auto mounted after reboot with live-rw save file and do you still have rw access to the files on the partition.

cthisbear
Posts: 4422
Joined: Sun 29 Jan 2006, 22:07
Location: Sydney Australia

#1495 Post by cthisbear »

I hope that this project proceeds despite the recent circumstances.

No.... I haven't tried it.

But I was luke warm to Lucid, Slacko and Saluki.
To which I have given plenty of later testing.

So eventually if it becomes easy to download and run
like a regular puppy ISO can....I will give it a shot.

I just like to peek through the door now and then
to see what's happening.

Regards...Chris.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#1496 Post by nooby »

I trust that this part fails

"check is your sda2 partition auto mounted after reboot with live-rw save file and do you still have rw access to the files on the partition."
I did not have access to it had to do a manua. mount -t ntfs-3g /dev/sda2 /mnt
It is a ext2 file though. But one have to manually do the mounting of sda2
so most likely that explains why it does not load the live-rw

Can one tell it on the command to load it before it really boot :)

I mean to stop before it boots and there tell it to load the live-rw?

or does it goes wrong when it reboot. It never writes to it.
It still says it accessed it yesterday when I created it so
it has never got accessed ever since then. Despite me did my best
to follow your instructions. So something important is missing.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1497 Post by saintless »

nooby wrote: Can one tell it on the command to load it before it really boot :)

I mean to stop before it boots and there tell it to load the live-rw?

or does it goes wrong when it reboot. It never writes to it.
It still says it accessed it yesterday when I created it so
it has never got accessed ever since then. Despite me did my best
to follow your instructions. So something important is missing.
Nooby,

the word persistent in your kernel line makes the system to look for a file called live-rw on all available partition and connected usb flash drives. It doesn't matter if they are NTFS, vfat or ext, because the live-rw save file is formated with ext2 filesystem and the system writes inside this ext2.

The live-rw file must be on the top of the partition and it must be called live-rw exactly.

Maybe something went wrong while you created the live-rw file.
Go inside /scripts/control-panel/save-file/normal/1gb-example-save-file.zip and extract this 1Gb example save file and use it to be sure it is a good one.

If it doesn't work again just to test copy this save file on a flash drive and reboot the computer with the flash drive connected. See if the save file works from the flash drive.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#1498 Post by nooby »

Nah I don't want to add the extra complexity of having to use a USB
Sorry. I have to take care of others things now. Much appreciated
that you cared about my selfish wants and wishes.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1499 Post by saintless »

As you wish, Nooby.

Since I've spend some time on this problem, I've tested NTFS partition made with Gparted + 1Gb live-rw file on it and 1-hotROXpussy.squashfs loaded in RAM.
The save file works and the partition is mounted on boot.

I don't see the point to continue this test by installing Windows and by formatting the NTFS partition from Windows.

I'm sure in time this information will be useful for someone else.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#1500 Post by nooby »

Yes this forum has/have a lot of active users
and at least some of them have windows
so it should be easy for them to jump in and
do the test.

I certainly did my best to unzip the offical live-rw file
and placed it on the / that my puppy name root.

So I have no idea why it failed. Ooops can it be this thing?

title Pussy Linux Beta 2
root=(hd0,1)
kernel /pussyhotrox/vmlinuz rw live-media-path=/pussyhotrox boot=live config persistent swapon quickreboot noprompt autologin username=root password=pussy toram=1-hotROXpussy.squashfs
initrd /pussyhotrox/initrd.img
boot


And I took the vmlinuz and the initrd.img from the Beta One of
hotRox. Where did you take it from?

If you are sure it will be important and none else want to test
then I can use your code instead but I want the word live
to be free for other OS I need to install on that HD.

So was it the code or was it the vmlinuz and the initrd.img
that where too old. I had access to none else at that moment.
I use Google Search on Puppy Forum
not an ideal solution though

Post Reply