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 01 Aug 2014, 04:22
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to remove + reinsert a bootable thumbdrive with puppy?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
Dromeno

Joined: 12 Sep 2008
Posts: 534

PostPosted: Fri 05 Jun 2009, 17:24    Post subject:  How to remove + reinsert a bootable thumbdrive with puppy?  

Is there a way to remove + re-insert the thumbdrive which is used to boot puppy from (without messing up the possibility to save changes to the 2fs on the thumbdrive)?

I would love to have the ability to free the USB port when puppy is booted, and then perhaps get a question on my screen to re-insert the thumbdrive when puppy needs some file on it. In this way one more USB port can be freed.

At the moment it looks as if the drive which contains the 2fs absolutely needs to stay attached to the computer in order to be able to shut down properly (or save changes to the 2fs).
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 415

PostPosted: Sat 06 Jun 2009, 01:20    Post subject:  

I think your assumptions are right. My solution to the issue was to create a thumb that would boot and look for "save" files on all attached drives (like the LiveCD does), then copied the .sfs and .2fs files from the thumb to a 1st level directory (called "puppy") on the C drive.

This is done by editing the extlinux.conf file in the root of the thumb drive. Change the line that says "pmedia=usbflash" to "pmedia=cd".

When I boot, puppy finds the files on the C drive and gives me the option to load them. After loading them I can remove the thumb drive for the session. I can then later copy the files from the puppy directory on the C drive to the thumb drive if i want what was saved to be on it.
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 534

PostPosted: Sat 06 Jun 2009, 04:51    Post subject: The 2fs needs to be on the thumbdrive
Subject description: ...if you want to keep puppy portable
 

Jafadmin - your solution sounds plausible but if the 2fs is on the c drive and not on the thumb then the home directory refers to the computer instead of the thumb.

And more important, if you want to save some change to the 2fs and you happen to work on someone else's computer then the 2fs needs to be on the thumbdrive.

So... am i right in that when you use a 2fs puppy is no longer fully portable (or more to the point, it is portable but it still is similar to a not-ejectable live CD)?

I wonder if that can be remedied in a future version of puppy?
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3401
Location: West Lothian, Scotland, UK

PostPosted: Sat 06 Jun 2009, 08:51    Post subject:  

I'm a Puppy newbie.
However, in my travels on the Puppy Linux forum I remember reading that:

1. A Puppy being loaded from a Flash drive normally automatically saves the present state of the session back to the pup_save file every 30 min [this is the default setting].

2. But it is possible to make a configuration change so that the Puppy will only save at shut-down.
[Sorry, I don't have a link to those instructions, so you'll need to search for them]

3. That means that since the Puppy RAMdrive [in which it runs] is loaded totally into RAM [plus the swap partition if the RAMdrive overflows from RAM]...
And the session is only being saved back at shut-down...
Then it is possible to remove the Flash Drive...
And make use of the freed-up USB socket during the session...

4. But you MUST re-insert the Flash Drive prior to shutting down the Puppy.

5. How Puppy works.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8041

PostPosted: Sat 06 Jun 2009, 09:40    Post subject:  

As it stands its not possible as the pup_save is mounted into the union and puppy does not have the ability to unmount and mount to it...(slax does but it's magic)

But what you propose is possible.
Manual saves and at shutdown is already available in puppy.

Possible system.......
1) at boot pup_save is mounted and the contents are copied to tmpfs .
2) pup_save unmounted and tmpfs gets mounted to the union at pup_rw (as it does in flash and pfix_ram and multisession ! anyway )
3) puppy runs in pfix_ram mode...everything in ram...obviously needs plenty of ram...flash stick can be removed as nothing is mounted in it.
4)at shutdown or manual save....stick is inserted , pup_save is mounted and the contents of tmpfs are copied to it.
5) puppy shuts down or unmounts pup_save/stick and carries on

If shutdown with no stick puppy will simply boot to the last saved session.

Something similar was proposed a while ago but the interest was running completely in ram for speed.
Indeed puppy is capable of all this , it just needs scripting.

mike
Back to top
View user's profile Send private message 
sky king

Joined: 08 Apr 2009
Posts: 72

PostPosted: Sun 07 Jun 2009, 19:57    Post subject: Freeing USB port  

Maybe just a simple solution, like a USB hub? Or a 2 into one adapter?
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 » 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.0541s ][ Queries: 11 (0.0059s) ][ GZIP on ]