How I added a SLAX Module to 2.15CE

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
kishore
Posts: 12
Joined: Sat 17 Jun 2006, 05:22

How I added a SLAX Module to 2.15CE

#1 Post by kishore »

I added Slax Module to Puppy 2.15CE as follows,

mount -oloop /mnt/home/modules/Sticker_Book_0_1_3.mo /mnt/modules/s01
unionctrl / --add /mnt/modules/s01

And some more modules that way.

That works fine.

But when I remove the unionfs directories and unmount the modules,
I can not mount another SLAX module.

This way we can add a script to rc.local0, so that all the (or selected) modules from SLAX modules directory will be mounted in the System.

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

mo2sfs

#2 Post by raffy »

Excellent - thanks!

Would it should be possible to write a mo2sfs script - Puppy 2.17 handles sfs mounting with one click.
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
sbaguz
Posts: 52
Joined: Thu 07 Sep 2006, 09:26
Location: Italy

#3 Post by sbaguz »

...and what about a mo2pup/mo2pet? :wink:

kishore
Posts: 12
Joined: Sat 17 Jun 2006, 05:22

#4 Post by kishore »

Rather converting it to 'pup' or 'pet', how about using the modules as it is,
just including them in system with startup script.

That way the 'pup_save' file will be untouched,
and Puppy & SLAX will coexist on the harddisk and
Puppy will still use the SLAX packages without increasing the size of 2fs/3fs/sfs files.
One file can be kept in modules directory of SLAX, which will decide what modules to be loaded in Puppy.

kishore
Posts: 12
Joined: Sat 17 Jun 2006, 05:22

#5 Post by kishore »

If there are SLAX modules in the directory /mnt/home/modules,
Script "addtopuppy" will add SLAX modules listed in "puppylist" to the / filesystem of Puppy.

1. addtopuppy
_________________________________________________________________________________________
exec < puppylist
while read line
do
dirname='ls /mnt/home/modules/$line | tr -d ".mo"
mkdir -p /mnt/slax/$dirname
mount -oloop /mnt/home/modules/$line /mnt/slax/$dirname
unionctl / --add /mnt/slax/$dirname
done
_________________________________________________________________________________________


2. puppylist

_____________________________________________________________________________________
Sticker_Book_0_1_3.mo
Qemulator_all_0_4_5.mo
_____________________________________________________________________________________

basd
Posts: 24
Joined: Fri 31 Aug 2007, 15:20

mounting slax module

#6 Post by basd »

I'm trying to use the unionctl command found here. The .mo package mounted okay and I can browse its directories.

But, when I run the unionctl command the response is "/ is not a valid union."

Is this something that has to be run at boot, or can I run it at the time I want to mount the .mo? My mounted directory contains "opt" "usr" and "var" directories, so the goal is to link them to the existing directories of the same names.

Thanks.
[size=75]Everything I know about Puppy [url]http://daltrey.org/tw/tiki-index.php?page=Puppy+Linux[/url][/size]

kishore
Posts: 12
Joined: Sat 17 Jun 2006, 05:22

SLAX module

#7 Post by kishore »

Which version of Puppy, you are using.

It worked well with Puppy 2.15CE, as it uses "unionfs".

Latest versions use "aufs".
These versions will give you error "/ is not a valid union."

I'll try it on "aufs".

basd
Posts: 24
Joined: Fri 31 Aug 2007, 15:20

aufs

#8 Post by basd »

I'm running 2.17. After making my post, I did suspect that the aufs /unionfs issue might be the problem (although I was unclear as to which was running on 2.17).

Is there a comparable command for aufs?

Thanks.
[size=75]Everything I know about Puppy [url]http://daltrey.org/tw/tiki-index.php?page=Puppy+Linux[/url][/size]

kishore
Posts: 12
Joined: Sat 17 Jun 2006, 05:22

Adding SLAX Module to Puppy 2.17

#9 Post by kishore »

Tried adding a SLAX module mounted directory '/mountedMO1' to '/'
It worked well.

Used following command for that
mount -o remount,append:/mountedMO1=ro /

I've to add one line to /etc/fstab for that,
none / unionfs 0 0

For Removing the directory, use
mount -o remount,del:/mountedMO1 /

To create a new Union '/NewUnion', use
mount -t aufs -o br:/mountedMO1=ro:/mountedMO2=ro testing /NewUnion

I tried this with '09_opera-9.02-i486-1kjz.mo'

akhmad_santoso
Posts: 2
Joined: Fri 21 Sep 2007, 21:29

#10 Post by akhmad_santoso »

Hi, this is my first post here.

I'm using 2.17 and I can use *.mo files from slax by renaming the extension into *.sfs, place them in /mnt/home (this is frugal install), open them in bootmanager and reboot. It seems to work like ordinary Puppy's *.sfs files. (I have managed to use Audacity 123 and Wine 0.9.16 modules from slax in this way).

kishore
Posts: 12
Joined: Sat 17 Jun 2006, 05:22

Adding SLAX module to 2.17

#11 Post by kishore »

Yes, that's the easiest way to add the SLAX module to Puppy.
But bootmanager allows us to add only 3 sfs files.
It'll be better to increase that count.

If this count is increased, We can add more SLAX modules to
Puppy, just by creating links /mnt/home/module.sfs to
/mnt/home/modules/module.mo

And can we add more loop devices ?

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#12 Post by HairyWill »

DIY extra loop devices
http://puppylinux.org/wikka/SfsModuleCreation
says
echo "Making more loop devices..."
mknod /dev/loop5 b: 7 5
mknod /dev/loop6 b: 7 6
mknod /dev/loop7 b: 7 7
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

kishore
Posts: 12
Joined: Sat 17 Jun 2006, 05:22

More loop devices

#13 Post by kishore »

Yes, as per http://puppylinux.org/wikka/SfsModuleCreation
Added more loop devices.
But works upto /dev/loop7 only.

How can I specify more than 8 loop devices?

i.e. max_loop=255

magerlab
Posts: 739
Joined: Sun 08 Jul 2007, 20:08

#14 Post by magerlab »

will slax mo. work in puppy 3.0?
there's a module for russian console support
i want to try it

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

Startup Script

#15 Post by ecomoney »

IF I understand it correctly, a .mo and and .sfs file are the same, to convert to a .sfs file you simply rename the .mo file.

Perhaps the longer term solution would be to make the puppy startup scripts automount .mo files as well as .sfs's?
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#16 Post by muggins »

to see what the relevant .mo contains you can mount it to a temporary location, just as with a .sfs file, & browse the contents with rox-filer. e.g.

mkdir /xxx
mount -o loop /xxx.mo /xxx

most .mo files work directly with puppy. but occasionally you might run into trivial, and sometimes bigger, library issues. as bk has moved pup3.00 to slackware library compatibility, that should resolve these sort of issues if you're running pup3.0.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#17 Post by BarryK »

Puppy 3.00 has gone back to unionfs, the new 2.x series. They recommend using 'mount -o remount....." rather than 'unionctl ....'. There are some docs, attached:
Attachments
unionfs2-usage.txt.gz
(1.42 KiB) Downloaded 312 times

Post Reply