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 28 Jul 2014, 00:14
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Pup_save file with other filesystem format than ext2
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
vellowax

Joined: 19 Nov 2009
Posts: 45
Location: still playing in the backyard

PostPosted: Tue 26 Jan 2010, 02:25    Post subject:  Pup_save file with other filesystem format than ext2  

Hey all,

I use NOP431 in ext4.
Is a pup_save can be created in other format than ext2, cause i would like to have a pup_save file in ext4 format too.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Tue 26 Jan 2010, 07:13    Post subject:  

Quite some time ago the pup save was in 3fs. For some reason, I don't remember anymore, Barry went back to 2fs.

I know some persons have done the test to go to 3fs again.

As far as I know, nobody tried the 4fs.

So I think, technically it might be possible, but I don't have the skills to advice you further.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
vellowax

Joined: 19 Nov 2009
Posts: 45
Location: still playing in the backyard

PostPosted: Tue 26 Jan 2010, 08:26    Post subject:  

thank you Béèm for your fast reply.

I hope there would be someone can make it or might be Barry would give some option for filesystem format when saving the pup_save file, because with ext4, i think puppy will run more faster than in ext2.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Tue 26 Jan 2010, 08:31    Post subject:  

I think there has been a discussion on ext4.
Use the puppysearch link in my sig to find it.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
vellowax

Joined: 19 Nov 2009
Posts: 45
Location: still playing in the backyard

PostPosted: Tue 26 Jan 2010, 09:19    Post subject:  

thanks again Béèm.
I'll keep hanging around in forum.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Tue 26 Jan 2010, 09:27    Post subject:  

If ext4 is included in the kernel the change is very simple...examine the init from here
http://www.murga-linux.com/puppy/viewtopic.php?t=51410
regardless of speed using anything other than ext2 will make the pup_save more reliable. I'm using ext3 on puppy 4. It was dropped because someone said it is not allowed .....well rules were meant to be broken Very Happy

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

Joined: 19 Nov 2009
Posts: 45
Location: still playing in the backyard

PostPosted: Thu 28 Jan 2010, 13:44    Post subject:  

@mike :
can it be implemented for ext4?
I have not tried it because now I run puppy in full install.

My conclusion so far is that, when installed puppy with frugal ways, and make the pup_save file, the pup_save file has the same function with virtual disk which containing any personal data we might have. But in puppy, the pup_save file will layered the puppy it self. And the pup_save file could be in format with various filesystem formats we can choose, as long as puppy can support it.

But, if install puppy with full install, where there are no pup_save file, i think puppy should detect the filesystem as the same format like before puppy got installed.
Am i right so far?

My puppy partition is in the ext4 format, in full install it should be read as ext4 filesystem too right?. But puppy detected the partition as ext2 while booting.
Isn't that weird?

Last edited by vellowax on Thu 28 Jan 2010, 18:40; edited 1 time in total
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Thu 28 Jan 2010, 14:14    Post subject:  

Well this was the change for puppy 4.12
Quote:
###detection
FND_PUPSAVE2FS="`find /mnt/data -maxdepth 2 -mount -type f -name pup_save*.[23r]fs | grep -v ' ' | sed -e 's%^/mnt/data%%g' | tr '\n' ' '`"
#plus
BPATTERN="/pup_save.*\\.[23r]fs"

###mounting
losetup /dev/loop1 /mnt/dev_save${PUPSAVEFILE}
FILEFS="ext2" #add filesystem types...not done for encrypt
[ "${PUPSAVEFILE##*.}" = "3fs" ] && FILEFS="ext3"
[ "${PUPSAVEFILE##*.}" = "rfs" ] && FILEFS="reiserfs"

echo "/dev/loop1 $CREATEPUPSAVE2FS ext2 defaults 1 1" >> /etc/fstab #v2.21
fsck_func loop1 $FILEFS $PUPSAVEFILE #v3.01 ####changed to fsck ..may work for reaiser if binary available#####
mount -t $FILEFS -o noatime /dev/loop1 $CREATEPUPSAVE2FS


so adapting to 4.13 and adding a condition for 4fs should be straightforward..this only deals with mounting......a premade and formatted pup_save would be needed.

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

Joined: 16 Jun 2006
Posts: 2308
Location: Wyoming, USA

PostPosted: Thu 28 Jan 2010, 21:52    Post subject:  

ext3 was dropped due to some theoretical concerns of having a journaling file system on top of a non-journaling one, or vice versa, can't remember what. Anyway, in some rare instances it is supposed to mess up the journaling. No one has actually reported this, but then lots of failures happen that people don't know the cause of. I suppose that's what backups are for.

I have this utility for converting pupsaves. One of the things it can do is convert from ext2 to ext3 or vice versa. It could be hacked to add ext4 I suppose. If anyone does hack it and tries it and it works, let me know and I will add the changes to it.
convert-pupsave.tar.gz
Description 
gz

 Download 
Filename  convert-pupsave.tar.gz 
Filesize  5.24 KB 
Downloaded  267 Time(s) 
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Fri 29 Jan 2010, 19:48    Post subject:  

I tried Mikeb's method which did work well.
_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Fri 29 Jan 2010, 22:19    Post subject:  

Quote:
I tried Mikeb's method which did work well.

oh good...well I just did it for people to try out an obviously only the version I'm using.
'mount' should verify that ext3 is being used.

regards

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

Joined: 16 Jun 2006
Posts: 2308
Location: Wyoming, USA

PostPosted: Mon 01 Feb 2010, 01:08    Post subject:  

Hmmm, I was going to recook my utility to support ext4 and reiserfs, but when I ran xarchive and attempted to add the first file to the archive, it gave an error. I tried again from the command line and got this:

Code:
from wrapper_cmd: /usr/local/lib/xarchive/wrappers/tar-wrap.sh -n /root/convert-pupsave.tar.gz /mnt/home/convert-pupsave.rc
tar: /tmp/tartmp.a24255: Cannot write: No space left on device
tar: Error is not recoverable: exiting now
wrapper exited with: 2


The file in question is a very small file, and there's lots of room on the two different devices I tried. Any ideas? I am using Puppy 4.3.1.

I tried a search here and found nothing. I can read from archives no problem, just writing to them fails. Is xarchive broken?

<later>
Never mind. /tmp was full, and for some reason it was full because my utility ran (it has a directory, something like plugtmp-encryption). I deleted that and everything was OK. Strange it filled up /tmp though.
convert-pupsave.tar.gz
Description  New version supports ext4 and reiserfs
gz

 Download 
Filename  convert-pupsave.tar.gz 
Filesize  5.25 KB 
Downloaded  303 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 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.0668s ][ Queries: 12 (0.0040s) ][ GZIP on ]