LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (https://www.linuxquestions.org/questions/puppy-71/)
-   -   How to create a lupusave.3fs file in puppy 528 ? (https://www.linuxquestions.org/questions/puppy-71/how-to-create-a-lupusave-3fs-file-in-puppy-528-a-915187/)

jackrnm 11-23-2011 04:08 PM

How to create a lupusave.3fs file in puppy 528 ?
 
I installed puppy linux 528 on a usb pendrive (ext3 partition) but the lupusave.3fs was not created. I re-partitioned and re-installed puppy to try and recreate the save file but could not (I did this several times). Is there a simple way to add a lupusvae.3fs file after a usb install? I am a relative newbe to puppy linux and any suggestions would be most appreciated.

jonyo 11-23-2011 04:20 PM

a save file depends on what type of install

Karl Godt 11-24-2011 01:48 AM

The relevant code is inside /etc/rc.d/rc.shutdown .

The save-file gets created by

Code:

dd if=/dev/zero of=/mnt/sdb1/save-file-name.2fs bs=1k size=512
mkfs -q -m 0 -F /mnt/sdb1/save-file-name.2fs

size=512 for 512MiB save-file .

Then the save-file has to be mounted

Code:

mkdir /tmp/save1stpup
mount -t ext2 -o noatime,rw,loop /mnt/sdb1/save-file-name.2fs /tmp/save1stpup
cp -a /initrd/pup_rw/* /tmp/save1stpup/
sync
umount /tmp/save1stpup

This applies to ext2 filesystem , for ext3 read the rc.shutdown script .
The copy command might also not copy any hidden files .
It would need
Code:

cp -a /initrd/pup_rw/root/.[a-zA-Z0-9]* /tmp/save1stpup/root/

jpeters 11-24-2011 03:04 AM

Quote:

Originally Posted by jackrnm (Post 4532122)
I installed puppy linux 528 on a usb pendrive (ext3 partition) but the lupusave.3fs was not created. I re-partitioned and re-installed puppy to try and recreate the save file but could not (I did this several times). Is there a simple way to add a lupusvae.3fs file after a usb install? I am a relative newbe to puppy linux and any suggestions would be most appreciated.

Generally, it prompts on shutdown to create one automatically. If it's not creating one, I'm guessing there's an issue with the pendrive.

darkcity 11-24-2011 05:17 AM

Quote:

Originally Posted by jpeters (Post 4532570)
Generally, it prompts on shutdown to create one automatically. If it's not creating one, I'm guessing there's an issue with the pendrive.

It should ask you to make a savefile when you reboot/shutdown the first time - unless your full installed (unusual on pen drive).

puppylinux.org/wikka/SaveFile


All times are GMT -5. The time now is 03:36 PM.