OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

4 Pages V  < 1 2 3 4 >  
Reply to this topicStart new topic
> Oesf Forum Archive, ..squashfs mountable on Z
speculatrix
post Nov 22 2006, 02:43 PM
Post #16





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



yeah, I think lofiprint is for formatting when printing... lofiscreen is the one you want, without it the forum posts kind of merge together and it's harder to read.
Go to the top of the page
 
+Quote Post
Jon_J
post Nov 22 2006, 02:46 PM
Post #17





Group: Members
Posts: 1,843
Joined: 31-December 05
From: Illinois USA
Member No.: 8,821



Thanks for this info.
If you have time, read my post above about my defragging nightmare... smile.gif
http://www.oesf.org/forums/index.php?showt...ndpost&p=146974
post #9
I just updated it.
Go to the top of the page
 
+Quote Post
speculatrix
post Nov 22 2006, 03:13 PM
Post #18





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



I have created cramfs and its uploading to my website, it's 72638464 bytes!

I copied the image onto my SD card, and mounted it under /tmp (which on cacko is elsewhere).. thus:

$mkdir /dev/shm/tmp/oesfforlofi

$mount -o loop -t cramfs /mnt/card/oesfforlofi.cramfs /dev/shm/tmp/oesfforlofi

then simply tell opera to browse file: and go to /tmp and to oesfforlofi and then index.html


I will also try with squashfs as its archive is only 39407616 bytes, a very worthwhile saving on bandwidth! I can't seem to work out the syntax of squashfs on cacko, it's somehow different to cramfs and I'm tired after a long day!

# mount -o loop -t squashfs/mnt/card/oesfforlofi.squashfs /dev/shm/tmp/oesfforlofi
mount: Mounting /mnt/card/oesfforlofi.squashfs on /dev/shm/tmp/oesfforlofi failed: Invalid argument
Go to the top of the page
 
+Quote Post
Jon_J
post Nov 22 2006, 03:23 PM
Post #19





Group: Members
Posts: 1,843
Joined: 31-December 05
From: Illinois USA
Member No.: 8,821



I have Meanie's Automounter installed. I'll use it to mount the squashfs version as it becomes available.
Thanks again speculatrix
In the meantime, the unzipped archive seems to work pretty well smile.gif
If I ever learn Linux and don't have to write everything down, I can stop using this FAT file mess and it's fragmentation problems...
Go to the top of the page
 
+Quote Post
cvmiller
post Nov 22 2006, 07:05 PM
Post #20





Group: Members
Posts: 242
Joined: 31-March 04
Member No.: 2,592



QUOTE(speculatrix @ Nov 22 2006, 03:13 PM)
I have created cramfs and its uploading to my website, it's 72638464 bytes!

I copied  the image onto my SD card, and mounted it under /tmp (which on cacko is elsewhere).. thus:

$mkdir /dev/shm/tmp/oesfforlofi

$mount -o loop -t cramfs /mnt/card/oesfforlofi.cramfs /dev/shm/tmp/oesfforlofi

then simply tell opera to browse file: and go to /tmp and to oesfforlofi and then index.html


Thanks for this. I had plenty of room, so I just popped this file over to my 1GB SD card. Mounted in my wevserver (boa) root directory, and now I am serving the archive to my local network! Great stuff.

Thanks again,

Craig...
Go to the top of the page
 
+Quote Post
speculatrix
post Nov 23 2006, 02:11 AM
Post #21





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(Jon_J @ Nov 23 2006, 12:23 AM)
I have Meanie's Automounter installed. I'll use it to mount the squashfs version as it becomes available.
Thanks again speculatrix
In the meantime, the unzipped archive seems to work pretty well smile.gif
If I ever learn Linux and don't have to write everything down, I can stop using this FAT file mess and it's fragmentation problems...
*


What I would do if I were you would be... copy off the files you want from your flash card, reformat it, and put the files back again, it'd be a lot quicker than de-fragging!
Go to the top of the page
 
+Quote Post
speculatrix
post Nov 23 2006, 02:16 AM
Post #22





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



I deleted the zip file off my site to save disk space, but Antikz's kind provision of a mirror will allow those who want it to grab it.

I'm uploading the squashfs archive now. I am wondering whether I used the right flags to make it as there are lots of options. If someone can test it, please let me know if you can make it work!
Go to the top of the page
 
+Quote Post
Jon_J
post Nov 23 2006, 08:18 AM
Post #23





Group: Members
Posts: 1,843
Joined: 31-December 05
From: Illinois USA
Member No.: 8,821



QUOTE(speculatrix @ Nov 23 2006, 04:16 AM)
I'm uploading the squashfs archive now. I am wondering whether I used the right flags to make it as there are lots of options. If someone can test it, please let me know if you can make it work!
*

I just copied it to my hard drive. /hdd3/oesf/ folder.
Rebooting to see if Meanie's automounter mounts it.
It didn't mount automatically, so I created a folder: /mnt/oesf/
Then I tried to mount it in the console.
su
mount /hdd3/oesf/oesfforlofi.squashfs /mnt/oesf

I got this error
mount: mounting /hdd3/oesf/oesfforlofi.squashfs on /mnt/oesf failed: Block device required

I don't remember what I need to do to make a block device.
I recall when using Meanie's pdaXqtrom, there was a script that installed, and mounted the squashfs archives.
I'm going to look at Meanie's PDF file and find out how to mount this.
Go to the top of the page
 
+Quote Post
speculatrix
post Nov 23 2006, 08:51 AM
Post #24





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



suse kernel comes with cramfs but not squashfs (and without either toolsuite for mkcramfs or mksquashfs, so I built them).

I just finished rebuilding the kernel modules on my fileserver and installed squashfs and am able to mount the oesfforlofi.squashfs on loopback mount and it works fine!
CODE
# mount -t squashfs -o loop,ro /home/download/zaurus/docs/oesfforlofi.squashfs /tmp/oesf-squashfs
# ls /tmp/oesf-squashfs
backblue.gif  external.gif  external.html  index.html  www.oesf.org


However, I cannot mount the cramfs image!
CODE
# mount -o loop -t cramfs /home/download/zaurus/docs/oesfforlofi.squashfs /tmp/oesf-cramfs
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
      missing codepage or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so
# dmesg | tail
cramfs: wrong magic


Very odd. And a bit annoying. I am woindering if its an endian incompatibility between x86 and Arm - perhaps mkcramfs defaults to arm compat, and mksquashfs to x86?

It does mean the squashfs image is worth having if you have an x86 workstation... I wish it were the otherway round because it's the Zaurus that would benefit from the space saving!

This post has been edited by speculatrix: Nov 23 2006, 08:54 AM
Go to the top of the page
 
+Quote Post
Jon_J
post Nov 23 2006, 08:59 AM
Post #25





Group: Members
Posts: 1,843
Joined: 31-December 05
From: Illinois USA
Member No.: 8,821



I don't know much about mounting either cramfs or squashfs archives, but Meanie's pdaxqtrom comes in both types.
using Meanie's script mounts either cramfs or squashfs versions of pdaxqtrom.
Cacko already includes the necessory module for squashfs, but I heard the Sharp rom doesn't.
EDIT:
So do I have to manually mount this archive by using the above commands?
That's what I thought Automounter was for. I thought it did all the commands and mounting for you.
I have a problem remembering the commands and switches...

This post has been edited by Jon_J: Nov 23 2006, 09:04 AM
Go to the top of the page
 
+Quote Post
Jon_J
post Nov 23 2006, 09:09 AM
Post #26





Group: Members
Posts: 1,843
Joined: 31-December 05
From: Illinois USA
Member No.: 8,821



I just tried your command above with my directory setup,
mount -t squashfs -o loop,ro /hdd3/oesf/oesfforlofi.squashfs /mnt/oesf
but I got this error:
invalid argument.
Go to the top of the page
 
+Quote Post
Jon_J
post Nov 23 2006, 09:27 AM
Post #27





Group: Members
Posts: 1,843
Joined: 31-December 05
From: Illinois USA
Member No.: 8,821



I just downloaded the cramfs version, going to try it now.
Do I need to rename it from oesfforlofi.cramfs.arm to oesfforlofi.cramfs
Go to the top of the page
 
+Quote Post
speculatrix
post Nov 23 2006, 09:28 AM
Post #28





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(Jon_J @ Nov 23 2006, 05:18 PM)
mount: mounting /hdd3/oesf/oesfforlofi.squashfs on /mnt/oesf failed: Block device required

I don't remember what I need to do to make a block device.
I recall when using Meanie's pdaXqtrom, there was a script that installed, and mounted the squashfs archives.
I'm going to look at Meanie's PDF file and find out how to mount this.
*


the error about block device means that the loop-back mount didn't work as it should see the file as a pseudo block device.

according to the docs, mksquashfs can make big-endian or little-endian file systems, the one I made yesterday was LE (and I would suggest you rename is to .e.g. oesfforlofi.squashfs.le). It says that the kernel module FS can mount either BE or LE files, but I am wondering if this is the case, and am making a new BE file and will test it to see if will mount on cacko, if it does I will upload it.

so, in the meanwhile, you'll have to live with cramfs on zaurus and squashfs on x86!

sorry for all this hassle guys, I should really have tested them before uploading.
Go to the top of the page
 
+Quote Post
Jon_J
post Nov 23 2006, 09:32 AM
Post #29





Group: Members
Posts: 1,843
Joined: 31-December 05
From: Illinois USA
Member No.: 8,821



The cramfs version mounted. smile.gif

EDIT: what is the reason for renaming the squashfs archive to oesfforlofi.squashfs.le
That won't make it work on the Z, will it?
If it only works on a desktop Linux PC, then I'll just delete it off my Zaurus.

Thanks speculatrix, I get it now. (I'm a little dense when it comes to these things).
I'll try the next squashfs version when it's ready.
No hurry, don't miss out on the turkey today while fussing with this smile.gif

This post has been edited by Jon_J: Nov 23 2006, 09:45 AM
Attached File(s)
Attached File  oesf_cramfs.png ( 43.41K ) Number of downloads: 29
 
Go to the top of the page
 
+Quote Post
speculatrix
post Nov 23 2006, 09:45 AM
Post #30





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(Jon_J @ Nov 23 2006, 06:32 PM)
The cramfs version mounted. smile.gif

EDIT: what is the reason for renaming the squashfs archive to oesfforlofi.squashfs.le
That won't make it work on the Z, will it?
If it only works on a desktop Linux PC, then I'll just delete it off my Zaurus.
*


you can call these files anything you want, it doesn't matter at all. glad you've got a working mounted archive.

renaming to .le is just my way of remembering which version is which. since it doesn't appear to work on your Z, might as well delete it.. hopefully I will get a squashfs version which does work on Z soon.
Go to the top of the page
 
+Quote Post

4 Pages V  < 1 2 3 4 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th December 2014 - 06:37 AM