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 Tue 21 Oct 2014, 11:17
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Combine a number of SFS files into one SFS file
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
smokey01


Joined: 30 Dec 2006
Posts: 1828
Location: South Australia

PostPosted: Wed 31 Oct 2012, 15:42    Post_subject:  Combine a number of SFS files into one SFS file  

Below is a simple script which will allow you to combine a number of your favourite SFS into one larger SFS file.

All you do is drop all of your SFS files you wish to combine on top of the script. Place it on the desktop if you wish.

All SFS will be unsquashed to /mnt/home/work then all squashed up again in the same directory. When finished it will display a rox window with a file called new.sfs. You need to rename and move your new file because it will be deleted when you click on the OK dialog.

Most puppies, if not all, have the following required dependencies:
unsquashfs
squashfs
Xdialog
bash

Code:
#!/bin/sh
#Written by smokey01
# This is a simple script to unsquash a bunch of sfs files.
# Place this script on your desktop then drop all of your sfs files onto it
# to make one big sfs file.
mkdir -p /mnt/home/work
for i in "$@"; do
 case "${i}" in
   *.sfs|*.SFS)
urxvt -e /usr/sbin/unsquashfs -f -d /mnt/home/work/root-sfs "${i}"
   ;;
 esac
 done
 if [ "${1}" = "" ]; then
Xdialog --title squasher --infobox "You need to drop SFS files on the icon, \nnot click on it.\n\n
You require a lot of disk space this is why the\n working directory is at /mnt/home/work" 0 0 10000
 else
urxvt -e /usr/sbin/mksquashfs /mnt/home/work/root-sfs /mnt/home/work/new.sfs
rox /mnt/home/work
Xdialog --title "***** WARNING *****" --msgbox "Rename and move the new.sfs file.\n When you click on OK it will be deleted" 0 0
rm -rf /mnt/home/work
fi

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send_private_message Visit_website 
tlchost

Joined: 05 Aug 2007
Posts: 1722
Location: Baltimore, Maryland USA

PostPosted: Mon 08 Apr 2013, 17:09    Post_subject:  

I copied the script to the desktop in slacko5.5....no joy, can not drop sfs files onto it. Any ideas on how to fix it?

thanks

Thom
Back to top
View user's profile Send_private_message Visit_website 
bignono1


Joined: 17 May 2009
Posts: 362
Location: New ME

PostPosted: Tue 09 Apr 2013, 01:41    Post_subject:  

Copy the script to the startup folder.
Back to top
View user's profile Send_private_message 
smokey01


Joined: 30 Dec 2006
Posts: 1828
Location: South Australia

PostPosted: Tue 09 Apr 2013, 04:18    Post_subject:  

Tom what window manager are you using? Openbox or JWM?

You also need to have a /mnt/home drive so operating live probably won't work. I hard coded /mnt/home because you do need quite a lot of disk space when manipulating sfs files. Using the savefile is not recommended.

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Tue 09 Apr 2013, 16:28    Post_subject:  

make script executable and watchout for the right unsquashfs -v
Code:
unsquashfs              unsquashfs-4.2-lzma     unsquashfs-4.2-xz
unsquashfs3             unsquashfs-4.2-lzma_xz 
unsquashfs4             unsquashfs-4.2-lzma+xz 

_________________
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal Razz
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0502s ][ Queries: 12 (0.0034s) ][ GZIP on ]