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 Tue 07 Jul 2020, 13:11
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to have Puppy regulate saves to flash drive?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Fri 29 Feb 2008, 19:29    Post subject:  How to have Puppy regulate saves to flash drive?  

Hi, everyone. I have recently started using Puppy Linux with my ASUS Eee PC (thanks to dvw86's helpful notes!) but I have encountered a problem:

I understand that Puppy should buffer writes to the save file when it detects that it is on flash memory. However, it hasn't been working for me. The computer has flash memory as its hard drive, and I have set pmedia=ideflash to give Puppy the hint, but still the save file is being "mounted directly top layer" and the "save" icon is not appearing on the desktop.

I would rather not go through the Universal Installer now because I have already set up Puppy with GRUB and am keeping, for now, the option of booting the default Xandros. I have tried Pupeee but currently am using wNOP. Since I would like my hard drive to last as long as it can, could someone please explain to me how to make Puppy realize it is on flash?

Thanks,
cel
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Sat 01 Mar 2008, 13:36    Post subject:  

You didn't specify the version you are using.
I have used with dingo a pup_save on a usb stick.
At regular intervals, it saves, a msg at the top is saying so.
I am not sure, but I think the 'save' button has been abandoned.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Sat 01 Mar 2008, 13:44    Post subject:  

I am using wNOP v0.2; Puppy 3.01. The problem is that it isn't saving at regular intervals, because it doesn't seem to recognize that it is running on flash media.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Sat 01 Mar 2008, 13:58    Post subject:  

I had not realized your boot media is the flash card.
I boot (frugal) from disk, so I don't have the PMEDIA parameter.
I suppose you need that PMEDIA parameter to boot correctly from the flash card.
Sorry, I have no experience in such a set-up.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Sat 01 Mar 2008, 14:08    Post subject:  

The pmedia parameter (ideflash) doesn't help. even though it sounds like it should. Thanks anyway
Back to top
View user's profile Send private message 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Sat 29 Mar 2008, 20:57    Post subject:
Subject description: bump
 

Any ideas, anyone? I would much appreciate it!
Back to top
View user's profile Send private message 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Mon 31 Mar 2008, 10:09    Post subject:  

One think one must never do is move a pup_save file that was originally saved to a hard disk to a flash stick. Not that it seems you did this.

If you want a save icon, along with the benefits of periodic writing rather than constant writing, install pup_save on a flash stick, make sure the save icon is there, then move it to your other location, the flash drive.

There are undoubtedly other ways. But the way I suggest is an expedient that I think (hope) should solve the problem of not having a save icon.
Back to top
View user's profile Send private message 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Mon 31 Mar 2008, 19:00    Post subject:  

Thanks for the info, Bruce. I'll try that method and see if it helps.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 13128
Location: Stratford, Ontario

PostPosted: Mon 31 Mar 2008, 19:37    Post subject:  

@Bruce B: Could you clarify your comment about never moving a pup_save file from a hard drive to a flash drive? Whenever I have done this, Puppy automatically updated the file /etc/rc.d/PUPSTATE to reflect the change in location. In particular, it modified the value of the PUPMODE variable from 12 to 13. Then it started making periodic saves to the flash drive exactly as would be expected.
Back to top
View user's profile Send private message 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Tue 01 Apr 2008, 11:10    Post subject:  

rcrsn51 wrote:
@Bruce B: Could you clarify your comment about never moving a pup_save file from a hard drive to a flash drive? Whenever I have done this, Puppy automatically updated the file /etc/rc.d/PUPSTATE to reflect the change in location. In particular, it modified the value of the PUPMODE variable from 12 to 13. Then it started making periodic saves to the flash drive exactly as would be expected.


Sure, my comment is based on something Barry posted. You were contributing on the same topic.

BarryK wrote:
I hope that you didn't copy the 'pup_save' file from the hard drive?

You bootup from usb without any pup_save, and create it on first shutdown.


I took it as something one should not do. This was in 2.16 days also, so maybe something changed.

http://www.murga-linux.com/puppy/viewtopic.php?
t=18379&search_id=1687296383

I wanted to post a nicely formatted link to the topic but it didn't work. Don't know why.

Most important is behavior. You can make a pup_save file on hard disk, move it to USB Flash, the save icon shows up and it behaves properly? If so, then I'll change my understanding accordingly.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Tue 01 Apr 2008, 13:13    Post subject:  

Bruce B wrote:

http://www.murga-linux.com/puppy/viewtopic.php?
t=18379&search_id=1687296383

I wanted to post a nicely formatted link to the topic but it didn't work. Don't know why.


Just highlight the link in the composition window and click on the URL tag. Wink
Like this. Smile
http://www.murga-linux.com/puppy/viewtopic.php?t=18379&search_id=1687296383

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 13128
Location: Stratford, Ontario

PostPosted: Tue 01 Apr 2008, 16:18    Post subject:  

@Bruce B: You may be right about how older versions of Puppy handled this situation. However, when I copied a Dingo savefile from a hard drive to flash drive, it was actually smart enough to put the "Save" icon on the new desktop.

It would be interesting to know from CEL what value the PUPMODE variable has in his setup. It sounds like Puppy is mistakenly treating "ideflash" as the same as "idehd" and making it PUPMODE=12.

There is a converse situation that may also be incorrect. If you put an actual hard drive in a USB enclosure, you would expect it to be treated as a regular frugal install with PUPMODE=12. But the last time I checked, it was treated as a flash drive. This causes Puppy to ignore a swap file/partition which it should be able to use without fear of excess writes.

Perhaps BarryK can comment.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Tue 01 Apr 2008, 16:50    Post subject:  

There is a problem going on in the French group, where a full install of Toutu is considered as pupmode=5 Bizarre.
Should be 2
Toutou is at 3.01.2

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
Marv


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

PostPosted: Tue 08 Apr 2008, 19:21    Post subject: ideflash and PUPMODE  

Yes, PUPMODE=13 is not set correctly by ideflash. I have edited init (in initrd.gz) using the editing guides in the 301 release notes to patch this by adding the following line after line 506 in init:
[ "$PMEDIA" = "ideflash" ] && PUPMODE=13

A note on this editing. To get cpio to extract everything, I had to open up the permissions on the working directory fully using chmod 1777. I created it in my /tmp directory which already had been chmod 1777 to get syslinux to run. I spun my wheels for quite a time trying to work on a usbflash before getting this.

A bit rude but finally the pmedia=ideflash results in PUPMODE 13 and 'save' on my frugal installs to ideflash cards.

On the moving the Pup_Save file back and forth from idehd to usb. If the pmedia parameter is not set in syslinux.cfg, the usb is detected correcctly and 'save' results. If the pmedia parameter is passed as ideflash or (as I recall) usbflash, the save mode is not enabled correctly for either with the unpatched init.

_________________
Pups currently in kennel Very Happy Older LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64 and upupEF 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 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Thu 10 Apr 2008, 19:39    Post subject: patched initrd.gz?  

@Marv:

Great, that sounds like exactly the solution to my problem. I also found information about it at this topic. But, I wasn't able to put together the initrd with cpio—I would just get a kernel panic on startup. Could you possibly send me your patched initrd.gz so I could use that instead?

I find it odd that this isn't already implemented in Puppy… I guess not many people use a flash hd.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0498s ][ Queries: 11 (0.0057s) ][ GZIP on ]