View Single Post
Old 11-01-2012, 02:21 AM   #19
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by EternalCyclist View Post
...
Why do I have to mount it via /dev/loop?
What about simply doing "mount -o offset=1075838976 /dev/mmcblk0p4 /somehwere" ?
I was thinking this as well. In my mntusb.params (from my Select Boot thread) I run /mnt/us/RUNME.sh at startup after I directly mount /mnt/us using an offset and no loop mount. It works fine. As far as I know, no (automatic) loop mount is used (unless I am misunderstanding something here).
Quote:
Originally Posted by eureka View Post
...
You could mount with your command. With losetup loop device is chosen by you, and with your command loop device is chosen by mount tool. It's the sole difference, AFAIK.
But his command did not include "mount -o loop", and without the "loop", are you sure it is the same as losetup?

I thought that loop mounting was for mounting an image file as a block device, rather than raw partitions. If I am wrong in my thinking here, please enlighten me. Thanks...

EDIT: WikiPedia seems to agree with me:
http://en.wikipedia.org/wiki/Loop_device
Quote:
In Unix-like operating systems, a loop device, vnd (vnode disk), or lofi (loopback file interface) is a pseudo-device that makes a file accessible as a block device.
And as I see it, the whole point of your exercise is to mount a raw partition that you created instead of mounting an image file, to avoid problems experienced with out-of-memory errors while using loop mounts. Remind me again, WHY are we loop mounting here?

Last edited by geekmaster; 11-01-2012 at 03:43 AM.
geekmaster is offline   Reply With Quote