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 Thu 23 Oct 2014, 04:04
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Use NAND flash on a SSD Solid State Drive like USB stick
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
rrolsbe

Joined: 15 Nov 2006
Posts: 182

PostPosted: Wed 21 Jul 2010, 10:13    Post subject:  Use NAND flash on a SSD Solid State Drive like USB stick
Subject description: Give option of cacheing Pupsave writes to NAND on SSD's
 

I save my pupsave on an SSD drive and I assume many others do also. It would be nice if Puppy recognized it is not a spinning drive and would at least give me the option of treating it as if it were USB flash. This would save a little where a tear on the NAND flash of the SSD and give me the option of not saving my Pupsave file during a login session.

Regards, Ron

More INFO:
I boot from the Puppy CD but all the Puppy files are stored on my SSD (because it is much faster). I also boot from a USB stick but tell it, in the boot options, I am booting from a CD so it uses the Puppy files on my FAST SSD instead of one one on the SLOW USB stick.

Last edited by rrolsbe on Thu 22 Jul 2010, 15:14; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Wed 21 Jul 2010, 11:38    Post subject:  

Read here. This is the opposite situation to what you want, but you can switch it around by using "PUPMODE=13". Start at PART B.

I did a quick test and it seems to work.
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Wed 21 Jul 2010, 12:14    Post subject:  

You don't need to edit the init script. Just add pmedia=ataflash to the bootloader. If you install with the Puppy Universal Installer, and tell it you have an SSD, you'll get this automatically.

Another trick you can do with recent kernels:
Code:
echo 0 > /sys/block/sda/queue/rotational


This will let the kernel know that the drive is an SSD so it can optimize I/O correctly. Often SSDs emulate rotational drives, so the kernel can't tell by itself.
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


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

PostPosted: Wed 21 Jul 2010, 13:09    Post subject:  

Nice call.

It's too bad that "pmedia=usbhd" doesn't work the other way. If I have installed Puppy on an external hard drive, I don't really need to be working in PUPMODE=13.
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Wed 21 Jul 2010, 13:45    Post subject:  

That's something that would probably be easy to fix. I guess usb hard drives advertise themselves as "removable", which makes Puppy want to be in pupmode 13.
Back to top
View user's profile Send private message Visit poster's website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Wed 21 Jul 2010, 14:02    Post subject:  

I am testing your suggestion now Jemimah.

pmedia=ataflash in the kernel line of menu.lst using quirky on an Acer D250.

How do I check what is going on?

Edit one thing did change that give evidence it has worked so far.
It added a Save icon to the Desktop. Promising indeed.Now I need to
add some changes. Youtube file would do. Then save it on the home first
and then another one in my docs to see if it save that one or discards it?
A third that I save at shutdown? Hm maybe at different tests though.


I mean using Menu > System ???? something that shows that it works like you told us. I do trust you but would be cool to look at it doing its thing?

I guess if me shut down it maybe ask if I want to save changes?

Is that the only way to find out?

The HDD is a NTFS formatted internal 250GB spinning mechanical drive.

My reason is that I hate that it start up each 60 seconds and do a write despite me do nothing to ask it to.

Well, it does save without asking when I shut down.

But I guess that is how Mode 12 is set up. So maybe me need to do what rcrsn51 described how to change the initrd script?

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
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.0576s ][ Queries: 12 (0.0088s) ][ GZIP on ]