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 13 Dec 2019, 11:53
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Safe to remove USB media after booting 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
Steve129836

Joined: 22 Aug 2019
Posts: 2

PostPosted: Thu 22 Aug 2019, 10:39    Post subject:  Safe to remove USB media after booting Puppy?
Subject description: I've turned off autosave
 

I am running xenialpup 7.5 which I boot from USB media.

I have created some python\bash scripts that I'd like to run after I remove the USB media. (I've turned off the autosave) So I think I'm safe to remove the USB.

The scripts work fine with the USB inserted. If I run a script then remove the USB media the script still works. However if I haven't already run a script and I remove the USB media it doesn't run. An input/output error is generated. As far as I can tell this is expected behavior as my xenialpup64save.4fs savefile isn't copied to RAM.

So my question is what to do?
Is it possible to copy the 4fs over to RAM at boot?
Or can I copy the specific scripts/files I need to RAM? If so how?
Or do I need to remaster puppy?

Thanks for any help
Steve
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12996
Location: S.C. USA

PostPosted: Thu 22 Aug 2019, 14:28    Post subject:  

If the save is on the USB drive.
The drive needs to stay plugged in.
Access to the save is constantly needed.

Booting from a live Puppy CD/DVD is the mode that lets you remove the CD/DVD after booting to a desktop.
Usually you put the save on the computers hard drive.
So, the CD/DVD are not needed after bootup.

You do not say how you did the install to USB drive, but by what you say it is kind of working like it is on a CD/DVD.

Whatever boot config file is being used to boot.
In that file are boot menu entries.
pmedia= tells Puppy what device it is booting from.
Pmedia=cd says booting from a CD/DVD
By default the boot config files that come with Puppy are set to pmedia=cd
So I will assume you have pmedia=cd as the pmedia= command.

I will assume you have the save on the USB drive.

Try moving the xenialpup64save.4fs save file to the top layer of the hard drive.
There it can still be seen and used.

Cold try putting your scripts in a ydrv sfs file.
Name it the same as the zdrv sfs file that is in Xenialpup 7.5
Make a directory.
Put the scripts in it.
Name it ydrv_xenialpup_7.5.sfs

That should get loaded into memory on bootup.

Look inside the zdrv sfs to see how to put stuff into one.
Inside of these special sfs packages are the files, inside of the specific directories, you want them to be loaded into.
That is important to identify.

_________________
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
YaPI(any iso installer)
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 3676

PostPosted: Thu 22 Aug 2019, 16:14    Post subject:  

Fatdog supports booting from a usb and saving back to the usb but where the usb can be unplugged once booted. Puppy's don't.
_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2205

PostPosted: Thu 22 Aug 2019, 17:09    Post subject:  

rufwoof wrote:
Fatdog supports booting from a usb and saving back to the usb but where the usb can be unplugged once booted. Puppy's don't.


I wonder how fatdog does this. I think for it to work reliably the save file needs to be copied to ram. I think the procedure would be like this:
1. Copy save file to ram
2. Change the save file layer to point to the new location.
3. Remount all layers.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
Steve129836

Joined: 22 Aug 2019
Posts: 2

PostPosted: Tue 27 Aug 2019, 06:53    Post subject:  

Thanks for the help. Gives me a few things to look at.

I created the puppy on usb. syslinux.cfg says pmedia=usbflash. The save file is also on the USB. However I've turned off autosave to flash. I believe I can unmount and remove the USB drive provided I don't need any other files or want to save changes.

I do not want anything on the PC hard drive to change, hence not saving anything there.

I've proven remastering the USB works. I left my files in the my-applications folder and they get remastered. But its a bit of a convoluted process.

Thanks again
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12996
Location: S.C. USA

PostPosted: Tue 27 Aug 2019, 09:06    Post subject:  

Quote:
I created the puppy on usb. syslinux.cfg says pmedia=usbflash. The save file is also on the USB. However I've turned off autosave to flash. I believe I can unmount and remove the USB drive provided I don't need any other files or want to save changes.

pmedia=usbflash boots Puppy Linux into pupmode 13.

The save is mounted as read only.

A ramdisk is used, into which all new and modified directories go. It is the working area, and has the potential limitation of the amount of RAM available.

Auto save or clicking on the desktop save icon, flushes the ramdisk and puts stuff into the save.

Any installed programs, program settings, program changes, etc... are in the save.
Because the save is mounted read only.
Anything that a program needs, that is in the save, is only read from the save, when the program starts

If you remove the USB drive.
The save is not there to access anything in it.
The ramdisk has no place to put stuff into. So, anything in the ramdisk is lost when you shutdown.

I am not too sure how strong the mounting of the save is, as read only. But, it is still a kind of soft mounting.
May or may not be any long term affect to just pull the USB drive.

_________________
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
YaPI(any iso installer)
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 » 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.0475s ][ Queries: 11 (0.0135s) ][ GZIP on ]