How I added a SLAX Module to 2.15CE
How I added a SLAX Module to 2.15CE
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.
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.
mo2sfs
Excellent - thanks!
Would it should be possible to write a mo2sfs script - Puppy 2.17 handles sfs mounting with one click.
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].
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.
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.
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
_____________________________________________________________________________________
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
_____________________________________________________________________________________
mounting slax module
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.
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]
SLAX module
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".
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".
aufs
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.
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]
Adding SLAX Module to Puppy 2.17
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'
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'
-
- Posts: 2
- Joined: Fri 21 Sep 2007, 21:29
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).
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).
Adding SLAX module to 2.17
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 ?
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 ?
DIY extra loop devices
http://puppylinux.org/wikka/SfsModuleCreation
says
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]
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]
More loop devices
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
Added more loop devices.
But works upto /dev/loop7 only.
How can I specify more than 8 loop devices?
i.e. max_loop=255
Startup Script
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?
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!
Sorry, my server is down atm!
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.
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.
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
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