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 Mon 20 May 2013, 23:34
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
What kernel params to make USB flash drive "READ-ONLY"?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Sun 08 Jul 2012, 15:15    Post subject:  What kernel params to make USB flash drive "READ-ONLY"?  

Hi all.
Anyone one know what kernel parameters to use when booting Puppy4.3.1
from a USB flash drive to make it load to RAM and make the USB flash
that Puppy booted off read-only?

Thanks,
Dave.
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 833

PostPosted: Sun 08 Jul 2012, 16:31    Post subject:  

Dave,

I'm not sure what you're after here...... but you can make your pup-save file "read-only' when booting from a usb flash drive by this -
Code:
 mount -o remount,ro /dev/loop1


That's assuming that your pup save file is "loop1'

Cheers,
s
Back to top
View user's profile Send private message 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Sun 08 Jul 2012, 16:49    Post subject:  

Hi seaside

What I'm trying to achieve is Read-Only for everything at boot.
I have several machines acting as kiosks and they are often disconnected
at the wall socket as the night cleaning staff need somewhere to plug in
the floor polishers.
A few times I have had the contents of the USB flash drives get corrupted.
Since no changes are required, why not make the whole thing Read only.
That way no problem when power goes down.

I know it would be easier to just boot off a CD, but the computers are
mini-ATX form factor and space is at a premium so no go for CD/DVD drives.

The machines all have 1GB of RAM, so it shouldn't be a problem loading everything to RAM.

Dave.
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 833

PostPosted: Sun 08 Jul 2012, 17:06    Post subject:  

Dave,

I don't know enough about kernel params to say if this could be done, but if the puppy initrd file were altered to mount "/initrd/mnt/dev_save" as readonly, it should work.

Cheers,
s
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7018
Location: qld

PostPosted: Sun 08 Jul 2012, 19:39    Post subject:  

Dave..

Have you thought about net booting? Of course your clients must be capable of PXE boot.

It works with most late model puppies, Slacko has the pets for it in PPM.

All you need to do is remaster an image that cuts out all the startup junk, and the shutdown junk so you boot straight to a desktop and shutdown just kills everything with out saving.

Amazingly, there seems no conflict with dhcp as I just tried it.

My main machine (server) is connected to the modem/router in the 192.168.1.1 to 192.168.1.200 scope through a 5 port switch. It starts dnsmasq which broadcasts dhcp on the machines IP. The client is connected to the same switch, PXE enabled, it boots as quickly as CD boot and once the booting is finished it picks up the router broadcast and is already online by the time X starts.

For more information see here and here.

Shouldn't cost you anything unless you need a separate switch. Other Linux should be capable of serving the Puppy image too in case your server doesn't run Puppy.

HTH

Cheers

_________________
keep the faith Cool ..
Back to top
View user's profile Send private message Visit poster's website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Sun 15 Jul 2012, 08:15    Post subject:  

Hi 01micko

Sorry about the late reply, been away.

PXE did cross my mind but there is no wired network connection near
the computers in question and wifi is too unreliable.

I also tried seasides suggestion of remounting the save file as read-only
but puppy refuses and says that it's in use by puppy.

Dave.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7018
Location: qld

PostPosted: Sun 15 Jul 2012, 08:25    Post subject:  

Ok, here's another idea...


Do the remaster as mentioned, load onto usb sticks, add "pfix=ram" to the kernel line, and disable saving, should be a matter of just commenting out the calls to "shutdownconfig" (this is in late model woof pups, wary,-5.3, racy-5.3, slacko-5.3+.). I think you'll find it in /usr/bin/wmpoweroff and /usr/bin/wmreboot.

_________________
keep the faith Cool ..
Back to top
View user's profile Send private message Visit poster's website 
bigpup


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

PostPosted: Sun 15 Jul 2012, 08:36    Post subject:  

Maybe this will work for you.
Save-Pup-Lock
http://murga-linux.com/puppy/viewtopic.php?t=67341

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
Back to top
View user's profile Send private message 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Sun 15 Jul 2012, 09:20    Post subject:  

Nice ideas, will give it a go.

Thanks, 01micko and bigpup.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
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.0528s ][ Queries: 11 (0.0081s) ][ GZIP on ]