younglo / cyanogenmod4milestone

Automatically exported from code.google.com/p/cyanogenmod4milestone
0 stars 0 forks source link

Mounting ext2 filesystem images through loop device returns errors. #788

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Mod Version: CyanogenMod 7.2.4f (UMTS/SHOLES)

Problem: `mount` returns error attempting to mount an ext2 filesystem image 
after using either losetup or mount -o loop

Steps to reproduce:
1) `mknod /dev/block/loop250 b 7 250`
2) `losetup /dev/block/loop250 /sdcard/<filesystem image>.img`
3) `mount -t ext2 /dev/block/loop250 <mount point>`

Actual error:
mount: mounting /dev/block/loop250 on <mount point> failed: No such file or 
directory

Expected output:
Mounted filesystem image. Should either return a success code of some kind, or 
no output, plus a readable and writable file structure inside the mount point.

Attempts to fix:
- Different kernels (ended up messing up my phone pretty badly after I 
installed a Droid kernel, wouldn't boot or charge, fixed by reinstalling CM)
- Different mounting methods (`mount -o loop -t ext2 <mount point> <file>`)

Additional notes:
I hear there's something about a kernel module missing, but that's for the 
Milesone's counterpart, the Droid, so I'm not sure if that's true or not. If 
there is though, please tell me. (Please, I beg of you!)

Original issue reported on code.google.com by arghargh...@gmail.com on 31 May 2013 at 8:30