OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 136867.0
November 24, 2009 02:10 AM

Categories: Pogoplug v1, v2, and PRO

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

josep

Member
Joined: 11/24/2009

I would like to mount image files on the Pogoplug.

As I saw the /dev/loopX files, I thought the loop module was included in the kernel, but apparently this is not the case.

Could anybody confirm what is the status of this module in the kernel?

If not included in the kernel, is there a way to access a pre-built loop module to load it on a Pogoplug?

Discussion:    Add a Comment | Comments 1-5 of 5 | Latest Comment

November 24, 2009 6:31 AM updated: November 24, 2009 6:32 AM

Just tried it. "mount --help" says there is a loop device and "losetup" is there but when I try to mount a loop device I get

-bash-3.2# mkdir /tmp/mount_loop
-bash-3.2# dd bs=512 count=2880 if=/dev/zero of=imagefile.img
2880+0 records in
2880+0 records out
-bash-3.2# mkfs.minix imagefile.img
480 inodes
1440 blocks
Firstdatazone=19 (19)
Zonesize=1024
Maxsize=268966912
-bash-3.2# mount -o loop /tmp/imagefile.img /tmp/mount_loop
mount: cannot setup loop device: No such file or directory

November 24, 2009 7:32 AM

Yes, exactly, that is what happens to me, which leads me to the conclussion that the kernel has been built without support for a loop block device.

November 24, 2009 9:38 AM updated: November 24, 2009 9:39 AM

Here is the applicable section of the pogoplug 2.6.22.18 .config file.


#
# Block devices
#
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SX8 is not set
# CONFIG_BLK_DEV_UB is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=16384
CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set

November 24, 2009 10:00 AM

Yup.

This whole thing started as I wanted to port slimserver to my pogoplug installation. my drive is NTFS formatted, which in the pogoplug world means that only root can write to it (at least as far as I know). I cannot run slimserver as root...

I wanted to mount an ext2/3 filesystem backed up y a file on the USB drive I have, but what I thought was going to be simple, has got to be quite complicated, thanks to the unavailability of the loop block device driver.

Back to looking for alternatives, unless I can find a kernel module for the pogoplug kernel providing the loop driver functionality.

November 24, 2009 11:00 AM

Well,

  I have tried loading a couple of different loop.ko kernel modules from kernels which seemed close enough to the one in the pogoplug, but I get the following result in both cases:

-bash-3.2# insmod -f loop.ko
insmod: cannot insert 'loop.ko': Invalid module format (-1): Exec format error
-bash-3.2#
 

The kernels from which I took the modules were built for arm, one was from the NSLU2 dist and the other from debian lenny.

Discussion:    Add a Comment | Back to Top | Comments 1-5 of 5 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window