View Single Post
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#18
Originally Posted by thel8elvis View Post
OK - dumb question - my .img is not getting mounted , mount failed, not a block device. My understanding of -o loop option is that it will mount a file on the loopback as block device .... so ... any clue where this might be failing ?

Nokia770-49:~# fsck /media/mmc1/XFCE.img
fsck 1.37 (21-Mar-2005)
e2fsck 1.37 (21-Mar-2005)
/media/mmc1/XFCE.img: clean, 11/131072 files, 16553/524288 blocks

Nokia770-49:~# mount -o loop /media/mmc1/XFCE.img /usr/local/
mount: Mounting /media/mmc1/XFCE.img on /usr/local failed: Block device required
Nokia770-49:~#
I know you did not used to be able to do mount -o loop on 770 and early n800, losetup used to be there, I have n800 with latest OS, are you running Hacker edition or what OS?

is losetup on you box?
How about something like this?

losetup /dev/loop0 /media/mmc1/XFCE.img
mkfs.ext2 /dev/loop0
mount -t ext2 /dev/loop0 /usr/local