Re: [maemo-developers] mounting squashfs-image fails with "block device required"

2006-10-07 Thread Sascha Heid

Thanks alot, works great :-)

Sascha
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] mounting squashfs-image fails with "block device required"

2006-10-07 Thread Dirk Kuijsten
Op Wo, 27 september, 2006 20:00, schreef Sascha Heid:
> Hi List.
>
> I added squashfs-support into the kernel so i can put the (german)
> wikipedia on my 2gb card which squashfs compresses from 15GB to 1,8GB.
> The mount-command i use is "mount -t squashfs -o loop image.sqfs dir/"
> but i get the error "Mounting . failed: Block device required".
> I also tried different options like -o loop=/dev/loop0, -o ro,loop or
> -o loop=/dev/mtdblock0 (if you think this guy must be clueless you are
> right) but with the same result.
>
> Does anyone know what to do here?
>
> I have /dev/loop, /dev/loop0,...,/dev/loop7.
>
> Regards
> Sascha
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
>

Hi,

I have been using squashfs successfully for months now to read my local
newspaper (html) every day on the 770 while on the train. For me this is
my killer app!
I think you should use losetup to use the loop device. My guess is the
mount program on the 770 doesn't support looping.
I use:

1. Insert squashfs kernel module: insmod squashfs.ko
2. /sbin/losetup /dev/loop1 file.sq
3. mount -t squashfs /dev/loop1 /mnt/directory


You need to compile util-linux for the losetup program. For the 2006
software version i have put it on my website:
http://www.xs4all.nl/~kuijste2/losetup
I have also put the kernel module on this website (2006 kernel, 2.6.16):
http://www.xs4all.nl/~kuijste2/squashfs.ko

greetings,

Dirk Kuijsten.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] mounting squashfs-image fails with "block device required"

2006-09-30 Thread Sascha Heid

> I added squashfs-support into the kernel so i can put the (german)
> wikipedia on my 2gb card which squashfs compresses from 15GB to 1,8GB.
On the 770 did you use cat /proc/filesystems to see squashfs in the list
of supported file systems?  If you compiled the kernel as a module, then
 did you copy it to your 770 and modprobe the module?


Yes i see squashfs in there and it does not have "nodev" in front of
it like most other fs do (i dunno what that means).
It is built into the kernel. First i patched the kernel assuming its
not already in since i couldn't find it in the defconfig. After
patching it i added CONFIG_SQUASHFS=m into the config and recompiled
the kernel.
After i realized the module was not copied onto my 770 i changed to
CONFIG_SQUASHFS=y and this worked.
I copied that kernel with ./flasher-2.0 -l -b -k
kernels/zImage-su-18-200639 btw which is the test-boot option.


> The mount-command i use is "mount -t squashfs -o loop image.sqfs dir/"
> but i get the error "Mounting . failed: Block device required".

You can graft in file systems to any directory.  I'd try either an
absolute path /mnt/dir i.e.
mkdir /media/wiki
"mount -t squashfs -o loop image.sqfs /media/wiki"
or make sure that you are above the directory where you want to mount
the device and use
"mount -t squashfs -o loop image.sqfs dir"


Both doesn't work.


If the mount command could not find you image file, then you'd receive
"No such file or directory" instead. The focus needs to be on either the
image.sqfs file or the squashfs.  Did you do an md5sum or where you
provided a way to check the image.sqfs?  Could it be bad?


I copied the squashfs-image back to my laptop and "file" identified it
as squashfs-image:
Squashfs filesystem, little endian, version 3.0, 0 bytes, 5411 inodes,
blocksize: 65536 bytes, created: Mon Sep 25 20:48:02 2006".
I also can mount that squashfs-image on the laptop.


> I also tried different options like -o loop=/dev/loop0, -o ro,loop or
> -o loop=/dev/mtdblock0 (if you think this guy must be clueless you are
> right) but with the same result.
>
> Does anyone know what to do here?
>
> I have /dev/loop, /dev/loop0,...,/dev/loop7.
>
Please check permissions on these devices. Make the other loop devices
match brw--- 1 root root /dev/loop


The permissions of the /dev/loop entries have been brw-rw--- and
root:disk (on my laptop too) but changing them to brw-- and
root:root did not have any effect


I could only find this with similar issues
http://www.oesf.org/forums/index.php?showtopic=10201&st=15


?


Did your kernel have all the suggestions here?
http://www.artemio.net/projects/linuxdoc/squashfs/SquashFS-HOWTO.html


The image-file is right, the mount-command is right, i have squashfs
support in my kernel, i have loopback-devices, is there anything i
missed?


Regards,
Sascha
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] mounting squashfs-image fails with "block device required"

2006-09-30 Thread Greg Morgan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sascha Heid wrote:
> Hi List.
> 
> I added squashfs-support into the kernel so i can put the (german)
> wikipedia on my 2gb card which squashfs compresses from 15GB to 1,8GB.
On the 770 did you use cat /proc/filesystems to see squashfs in the list
of supported file systems?  If you compiled the kernel as a module, then
 did you copy it to your 770 and modprobe the module?

> The mount-command i use is "mount -t squashfs -o loop image.sqfs dir/"
> but i get the error "Mounting . failed: Block device required".

You can graft in file systems to any directory.  I'd try either an
absolute path /mnt/dir i.e.
mkdir /media/wiki
"mount -t squashfs -o loop image.sqfs /media/wiki"
or make sure that you are above the directory where you want to mount
the device and use
"mount -t squashfs -o loop image.sqfs dir"
If the mount command could not find you image file, then you'd receive
"No such file or directory" instead. The focus needs to be on either the
image.sqfs file or the squashfs.  Did you do an md5sum or where you
provided a way to check the image.sqfs?  Could it be bad?

> I also tried different options like -o loop=/dev/loop0, -o ro,loop or
> -o loop=/dev/mtdblock0 (if you think this guy must be clueless you are
> right) but with the same result.
> 
> Does anyone know what to do here?
> 
> I have /dev/loop, /dev/loop0,...,/dev/loop7.
> 
Please check permissions on these devices. Make the other loop devices
match brw--- 1 root root /dev/loop


I could only find this with similar issues
http://www.oesf.org/forums/index.php?showtopic=10201&st=15

Did your kernel have all the suggestions here?
http://www.artemio.net/projects/linuxdoc/squashfs/SquashFS-HOWTO.html

Please post back if you make progress or have success.

Regards,
Greg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFHr5nxyxe5L6mr7IRAqjCAJ49iPTOzRLyuKvyWlgZ+D1hXcVyFQCghcTY
ojmjkYRQkVl46+oglrZRnYY=
=qo3Q
-END PGP SIGNATURE-
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] mounting squashfs-image fails with "block device required"

2006-09-27 Thread Sascha Heid

Hi List.

I added squashfs-support into the kernel so i can put the (german)
wikipedia on my 2gb card which squashfs compresses from 15GB to 1,8GB.
The mount-command i use is "mount -t squashfs -o loop image.sqfs dir/"
but i get the error "Mounting . failed: Block device required".
I also tried different options like -o loop=/dev/loop0, -o ro,loop or
-o loop=/dev/mtdblock0 (if you think this guy must be clueless you are
right) but with the same result.

Does anyone know what to do here?

I have /dev/loop, /dev/loop0,...,/dev/loop7.

Regards
Sascha
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers