USB flash-drive frugal 'mods'.....can it be done?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
mikewalsh
Moderator
Posts: 5742
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 636 times
Been thanked: 1777 times

USB flash-drive frugal 'mods'.....can it be done?

Post by mikewalsh »

Morning, guys'n'gals.

This isn't a 'life-or-death' enquiry, nor something I absolutely have to get done; more a case of Uncle Mike attempting to increase his understanding of how Puppy 'stuff' works, prompted by a couple of recent threads.

It's fairly normal (so I believe), when doing a 'frugal' install to a USB flash-drive, to use a save-file, and to set the save interval to 0 ('Never'), thereby prompting a shutdown query as to whether you wish to save.....yes? This is not something I tend to do, hence the question:-

Can the above be performed, except with a save-folder instead? In other words, can manual saves be initiated to a save-folder.......or is this process peculiar to the save-file? AFAICT, Puppy doesn't care two hoots what you save, as long as it knows two things:-

  • How often ('when') you wish to save, and

  • Where you wish to save to

Is that a fair summary, people?

TIA.

Mike. ;)

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

dancytron
Posts: 664
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 446 times
Been thanked: 192 times

Re: USB flash-drive frugal 'mods'.....can it be done?

Post by dancytron »

Yes, that's how I set up my usb backup drives. It works pretty much like normal if you format the usb drive to an ext* type of format. IIRC the consensus is ext3 to avoid some sort of bug.

What I do is :

--manually put a puppy distro on the ext3 formatted usb drive and run grub4dos from another puppy to set the boot stuff up (or do the same with Debian Dog and its install program).

-edit the menu.1st file as needed

-Boot to puppy and reboot to set up the save folder.

-set up event manager to only save on exit.

I assume you could do more or less the same thing for UEFI installs.

User avatar
Jafadmin
Posts: 379
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: USB flash-drive frugal 'mods'.....can it be done?

Post by Jafadmin »

An additional trick is to boot with 'pmedia=ataflash' which will put the 'Save' icon on your desktop so you can do manual saves whenever you wish. That way you can commit a disk write while in session, as well.

User avatar
mikewalsh
Moderator
Posts: 5742
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 636 times
Been thanked: 1777 times

Re: USB flash-drive frugal 'mods'.....can it be done?

Post by mikewalsh »

Okey-doke, guys; all useful info.

I've only ever run my kennels in one of two ways. On the odd occasions I've put a Puppy on a flash drive, it's always been 'pmedia=usbflash', which gives me a save icon, and using a save-file, set to the usual 30 mins. Or, as now, on the new hardware (and the old Compaq tower), running frugals from a hard-drive, 'pmedia=atahd', with either save-files (on the Compaq), or save-folders nowadays on the new HP. Currently, I'm in Quirky64 April 7.0.1, and the save-interval is set to 30 (but 'greyed-out').

A lot of folks have been asking about this stuff this last couple of months. I'm as willing as the next guy to help out with queries on anything, y'all know that, but if I don't fully understand this stuff, and all the various permutations, it's a bit pointless me doing so! So:-

I take it each different PUPMODE has a different set of parameters. Where do the 'definitions' for these live? Is it all tucked away inside the initrd? Is it anywhere you can actually access & "read", as such?

Mike. ;)

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

TerryH
Posts: 591
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 130 times
Been thanked: 137 times

Re: USB flash-drive frugal 'mods'.....can it be done?

Post by TerryH »

The pmedia= is the key. It's presence in the boot stanza tells the system how to treat the Save file/folder. Using pmedia=atahd flags it as a traditional HD. It is writing directly to the save not stored in memory, so no need for a save to occur. Using pmedia=ataflash | usbflash tells the system that it is a solid state drive, regardless of what the actual drive is. This sets it as PUPMODE=13 allowing manipulation of save interval and also placing a Save desktop launcher on the desktop. No difference in treatment of save file or folder in regards to saving.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

User avatar
bigpup
Moderator
Posts: 6538
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 794 times
Been thanked: 1358 times

Re: USB flash-drive frugal 'mods'.....can it be done?

Post by bigpup »

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
mikewalsh
Moderator
Posts: 5742
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 636 times
Been thanked: 1777 times

Re: USB flash-drive frugal 'mods'.....can it be done?

Post by mikewalsh »

@TerryH :-

Thanks for the clarification, Terry. That's much appreciated.

@bigpup :-

Heh. Yah... Y'know, I've scanned that document a few times over the years. I know it gives a lot of detail about this stuff, but I always give up on it after a few pages, 'cos it is SO "dry" & complicated..!!

Perhaps I just don't have the right kinda "mindset" to take it all in..... :shock: :oops: :lol: :lol:

Mike. ;)

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

Geek3579
Posts: 254
Joined: Sat Jul 18, 2020 1:07 pm
Has thanked: 73 times
Been thanked: 64 times

Re: USB flash-drive frugal 'mods'.....can it be done?

Post by Geek3579 »

Just an additional comment for Mike's query. I tend to agree with comments above.

I have always used a savefolder for frugal installs - usually in a ext2 or ext4 partition. But I think FAT32 can work as well, but the savefile is limited to 4GB in size...not that one needs that much.

As long as I use pmedia=usbflash or similar the saves always work. Thats one more reason why I love Puppy Linux.

Post Reply

Return to “Users”