Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 16 Nov 2018, 14:24
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Who maintains boot code? Remove flash drive boot type.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5087
Location: Arizona, U.S.A.

PostPosted: Sun 14 Jan 2018, 19:56    Post subject:  Who maintains boot code? Remove flash drive boot type.  

I use a USB 64gb flash drive for my main HD.
The flash drive handling code is out dated.
Save file in ram is no longer needed.
I`ve tried to fix this, but boot code`s messy.
Remove the flash drive boot type and code.

These are the sections to remove:

1) Code that sets up the save file in ram.
2) Code that saves ram to flash at timed interval.
3) Code that saves ram to flash at shutdown.

Puppy has a lot of life left in it.
So much legacy crap bloating it!
Please... Lets clean it up!
Back to top
View user's profile Send private message 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1547

PostPosted: Sun 14 Jan 2018, 20:07    Post subject:  

edit: I found this:

sunburnt wrote:
Puppy distro. is: precise_5.4.X.5 , old I know, but it`s probably the same as newer Puppies.

Here's a thread about the new init in 7.x puppies (Xenialpup 7.5, Slacko 6.9.9.9). Perhaps this is a start to cleaning it up?
http://www.murga-linux.com/puppy/viewtopic.php?t=107178

I would argue that the flash option is still used. I actually use pmedia=ataflash on hard drive so I can see the Save icon. Smile
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 857

PostPosted: Mon 15 Jan 2018, 01:31    Post subject:  

So you want us to rewrite puppy because you are not using a HD?

Yeah, we'll get a guy right on that ..
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11264
Location: Charleston S.C. USA

PostPosted: Mon 15 Jan 2018, 02:04    Post subject:  

There is a big reason for the way the save works on a USB flash drive.
It limits the writes to the drive.
There is a number or writes limit on USB flash drives.
True, that limit is a high number on todays drives, but it is still a limit.

If you want it to work like saves on a hard drive.
Go into whatever is used to boot this install and use the pmedia=atahd or pmedia=usbhd option entry.

Example for a Grub4dos menu entry:
Code:
title Puppy xenialpup64 7.5 (sdc7/xenialpup6475uefi)
  uuid 1cd0f861-5576-42aa-af41-d09a6d260bc9
  kernel /xenialpup6475uefi/vmlinuz   psubdir=xenialpup6475uefi pmedia=atahd pfix=fsck
  initrd /xenialpup6475uefi/initrd.gz


I do not know what boots this.
Could be Grub4dos menu, isolinux.cfg, syslinux.cfg, extlinux.conf, etc......
But the change can be made or added to any of these boot configure files.

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked

Last edited by bigpup on Mon 15 Jan 2018, 02:20; edited 1 time in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11264
Location: Charleston S.C. USA

PostPosted: Mon 15 Jan 2018, 02:17    Post subject:  

Quote:
2) Code that saves ram to flash at timed interval.
3) Code that saves ram to flash at shutdown.

menu>System>Puppy Event Manager>Save Session
Here you can control these when booting from USB flash drives.

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1275

PostPosted: Mon 15 Jan 2018, 02:28    Post subject:  

I would like to add to bigpup's suggestions that if you want to use a usb flash device like a hard drive that you format the area where you keep the save file/folder or partition as
https://en.wikipedia.org/wiki/F2FS
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5087
Location: Arizona, U.S.A.

PostPosted: Mon 15 Jan 2018, 05:34    Post subject:  

Hi bigpup; It`s been a really long time, huh? Hope you are well...

What I see is this subject has been talked about a lot on the forum.
And as usual nothing is done to fix it permanently.
I talked about this "boot bug" years ago.

pmedia= ....... Does nothing to fix this.

Puppy Event Manager only sets the save interval.

There is no std. way to change the pupmode once Puppy is installed.

FIX: Make a new pup boot parameter that overrides the install setting.

pupmode=


# Please change the std. boot code for ALL Puppies in file: initrd

Then post the file so we can replace the initrd file in current Puppies.
.
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 3174
Location: The Blue Marble

PostPosted: Mon 15 Jan 2018, 09:36    Post subject:  

The RAM layer is useful for people who wants to have the options to save their sessions, or not.

But I agree with sunburnt that the RAM layer should not be tied out to whether a person is running on flash drive or not. It should be controlled independently, for those who needs it, whether or not they run on a flash drive.

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1678
Location: Japan

PostPosted: Mon 15 Jan 2018, 12:10    Post subject:  

sunburnt wrote:
I talked about this "boot bug" years ago.
You talked about it here and it would be most helpful if you would continue your original thread instead of opening a second one.
On 14 Sep 2016 sunburnt wrote:
Now maybe I can write a Bash script to mod. the initrd.gz file for anyone.
The mod. would make boot arg.: pmedia=atahd force: pupmode=12 ( As it should...)

I think you are talking about this section:
Code:
 12) #4=puppy.sfs found, 8=${DISTRO_FILE_PREFIX}save.2fs found.  total=12
  DRVSAVE="`echo -n "$PUPSAVE" | cut -f 1 -d ',' | sed -e 's/[0-9]*$//' -e 's/p$//'`" #ex: sda  110126 mmcblk0p1 becomes mmcblk0
  REMOVABLEDRVSAVE="`cat /sys/block/$DRVSAVE/removable`"
  #[ "$REMOVABLEDRVSAVE" = "1" ] && PUPMODE=13
  [ "$REMOVABLEDRVSAVE" = "1"  -a  "$PMEDIA" != "usbhd" ] && PUPMODE=13  #110116 shinobar.
  [ "$PMEDIA" = "usbflash" ] && PUPMODE=13 #v404 fix classmate, with internal usb flash.
  [ "$PMEDIA" = "ataflash" ] && PUPMODE=13 #w019 constrain writes to internal flash drv.
 ;;

So apparently what changes the PUPMODE from 12 to 13 is the value in /sys/block/$DRVSAVE/removable and not so much your pmedia string. If you booted with pmedia=atahd and your SSD is recognized as removable (=value 1) you will be switched to PUPMODE 13. But if you started with pmedia=usbhd you would stay with PUPMODE 12. pmedia=usbhd appears to be a guarantee for PUPMODE 12. Try it.

If "Having pmedia=usbhd or pmedia=atahd seems to make no difference." (as you stated earlier in the thread), then you probably use an old init file without shinobar's fix.
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1089
Location: SW Wisconsin

PostPosted: Mon 15 Jan 2018, 13:10    Post subject: Re: Who maintains boot code? Remove flash drive boot type.  

sunburnt wrote:
I use a USB 64gb flash drive for my main HD.
The flash drive handling code is out dated.
Save file in ram is no longer needed.
I`ve tried to fix this, but boot code`s messy.
Remove the flash drive boot type and code.

These are the sections to remove:

1) Code that sets up the save file in ram.
2) Code that saves ram to flash at timed interval.
3) Code that saves ram to flash at shutdown.

Puppy has a lot of life left in it.
So much legacy crap bloating it!
Please... Lets clean it up!

I use this 'legacy crap' every day on multiple pups, as do many of my users.!
Adding some control flexibility is a goal, getting rid of one of the features that makes pupLinux stand out isn't IMO.

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, LxPupBionic, upupbb and upupcc for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1678
Location: Japan

PostPosted: Mon 15 Jan 2018, 21:01    Post subject: Re: Who maintains boot code? Remove flash drive boot type.  

Marv wrote:
I use this 'legacy crap' every day on multiple pups, as do many of my users.!
Laughing
So do I.

I don't see what sunburnt refers to. At least for this particular task there is no 'crap', no 'bloat', no 'mess'. The 'bloat' consists of only one line of code and it still makes perfect sense.

And the problem of SSDs being recognized as removable drives: This issue is not new. Many people want to change this and there are numerous instructions on the net. Google can help.
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1553
Location: Brisbane, Australia

PostPosted: Sat 17 Mar 2018, 01:32    Post subject:  

@sunburnt,

I only just noticed your post in the "Rationalise" topic, and hence became aware of this topic.

If I remember correctly you can get real pupmode=12 on a usbstick, if you boot with "pmedia=usbhd".

But I agree that it would be better if there were a more direct method of specifying the way in which Puppy does saves.

May I humbly suggest you have a look at my more recent re-write of "init" in http://www.murga-linux.com/puppy/viewtopic.php?t=110636
It does support real pupmode=12 on a usb stick.
Of course it also does a lot of other stuff that you might not want.

gyro
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0721s ][ Queries: 13 (0.0150s) ][ GZIP on ]