well I tried that and still I get the "invalid argument" message > On Mon, Sep 12, 2011 at 7:58 PM, walter harms <[email protected]> wrote: >> >> This should generate a 1mb loop device. >> >> dd if=/dev/zero of=disk count=1024 bs=1024 >> mkdir tst >> mkfs -t minix disk # feel free to change to ext2 or so >> mount disk tst -o loop >> >> re, >> wh >> >> Am 12.09.2011 17:09, schrieb mehdi karamnejad: >>> Hi, >>> I'm having trouble mounting a initrd image using loop device. the >>> CONFIG_FEATURE_MOUNT_LOOP option in .config file of busybox is set and >>> mounting loop devices is enabled in my kernel (I'm using 2.6.32). then >>> I issue the following command : >>> mount /boot/initrdimg.img /mnt/img1/ -t ext2-o loop=/dev/loop0 >>> and I get the following error: >>> mount: mounting /dev/loop0 on /mnt/img1/ failed: Invalid argument >>> >>> ** I'm also positive that loop0 and the mount point /mnt/img1 both exist >>> >>> and here is the output of the strace command(the tail which contains >>> error and exists mount process , if I have to provide the whole output >>> please let me know): >>> .... >>> fstat64(3, {st_mode=S_IFREG|0644, st_size=256324, ...}) = 0 >>> mmap2(NULL, 256324, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb75c7000 >>> close(3) = 0 >>> geteuid32() = 1000 >>> write(2, "sudo", 4sudo) = 4 >>> write(2, ": ", 2: ) = 2 >>> write(2, "must be setuid root", 19must be setuid root) = 19 >>> write(2, "\n", 1 >>> ) = 1 >>> exit_group(1) >>> >>> I've also tried several version of busybox but no luck so far, there >>> are also some similar posts on the mailing list which address problems >>> like mine but no definite solutions so far. any idea how I can mount a >>> loop device? >>> >>> >> > > > > -- > :-----: >> Mehdi Karamnejad >
-- :-----: > Mehdi Karamnejad _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
