Can ISO files mounted on N1 - Nexus One General

Devs,
Please move this thread to the right location if this isnt one, i looked everywhere but couldnt find anything about it. I was wondering if there is any way to mount iso files on my N1.

technicolor said:
Devs,
Please move this thread to the right location if this isnt one, i looked everywhere but couldnt find anything about it. I was wondering if there is any way to mount iso files on my N1.
Click to expand...
Click to collapse
Mount them where? And for what purpose? There are ways to mount image files(loopback), though I'm not sure about the format that can be used. At any rate, it'd require modification to the OS.

Forexample if i copy an iso file on my SDcard and then mount it like you can do on windows with DeamonTools or on ubuntu http://hacktivision.com/index.php/2008/02/24/how-to-mount-iso-images-in-ubuntu-the-ea?blog=2
I was just wondering if it is something that can be done, sky is the limit with Android aint it?

technicolor said:
Forexample if i copy an iso file on my SDcard and then mount it like you can do on windows with DeamonTools or on ubuntu http://hacktivision.com/index.php/2008/02/24/how-to-mount-iso-images-in-ubuntu-the-ea?blog=2
I was just wondering if it is something that can be done, sky is the limit with Android aint it?
Click to expand...
Click to collapse
I'd imagine it's possible with a rooted phone that has the appropriate kernel modules loaded. It's not exactly built in though, so aside from having the kernel modules ready, you'd have to manually mount it through the shell to some folder somewhere, and even then you'd only be able to access it through a shell or one of the file managers. At any rate, it doesn't seem too useful since there's no software for Android that requires any kind of disk(that I know of) and you'd have to have the image file on the sd card, which is already readable by the OS. So anything that could possibly be on the iso could just as easily be put on the sd card.

technicolor said:
Forexample if i copy an iso file on my SDcard and then mount it like you can do on windows with DeamonTools or on ubuntu http://hacktivision.com/index.php/2008/02/24/how-to-mount-iso-images-in-ubuntu-the-ea?blog=2
I was just wondering if it is something that can be done, sky is the limit with Android aint it?
Click to expand...
Click to collapse
Yes, it requires recompiling the kernel to support the correct filesystem. I did it the other day with a debian install disk. It's not too hard.

You will need a kernel that support cdfs,
mount -o loop /sdcard/name.ISO /path/to/mountpoint

Related

How do you delete a stale NFS file

Wallpaper set and save, I tried the rm command it wont work for a stale file is there any way to do this.
unless you really mounted a network drive, there's no way you can get a "stale NFS file", so the file system is corrupted.
billc.cn said:
unless you really mounted a network drive, there's no way you can get a "stale NFS file", so the file system is corrupted.
Click to expand...
Click to collapse
So I have wallpaper set and save as being stale, does that mean more files will become like this, and that my ext2 partition is bound to fail, cause I can live without that wallpaper program, as long as the rest of my stuff is stable. Does this mean more files will eventually become corrupt.
Joeriginal said:
So I have wallpaper set and save as being stale, does that mean more files will become like this, and that my ext2 partition is bound to fail, cause I can live without that wallpaper program, as long as the rest of my stuff is stable. Does this mean more files will eventually become corrupt.
Click to expand...
Click to collapse
Not necessarily. nfs stale file handle just means that nfs cannot resolve the nfs file handle that ext2 encoded for it. there could be many reason for it. lots of time, remount would fix the problem.
knaries2000 said:
Not necessarily. nfs stale file handle just means that nfs cannot resolve the nfs file handle that ext2 encoded for it. there could be many reason for it. lots of time, remount would fix the problem.
Click to expand...
Click to collapse
How would I do this remount process exactly? And would I be risking anything?
What exactly are you doing. Where are you getting this error?
knaries2000 said:
What exactly are you doing. Where are you getting this error?
Click to expand...
Click to collapse
I'm trying to install the program wallpaper set and save but the phone won't let me cause its a stale nfs file on my memory card ext2 partition, and I wanted to know if there is any way to fix that
Rebooting the phone does not solve it? If not then u might have an issue with your sdcard.
No reboot didn't help, this is the only app that does this so I don't think its the sdcard. I think it was a bad installation, and now its stuck somehow, oh well hopefully someone might find a resolution for this.
I was wondering would it be possible to move my apps back to the phone, and then delete the wallpaper set and save from a program like linda file manager then put them back on the sd card.
Joeriginal said:
I was wondering would it be possible to move my apps back to the phone, and then delete the wallpaper set and save from a program like linda file manager then put them back on the sd card.
Click to expand...
Click to collapse
do you have adb setup?
just do "adb shell ls /data/app/" and see if that wallpaper app is there... if it is try to remove it "adb shell rm /data/app/<name.apk>
knaries2000 said:
do you have adb setup?
just do "adb shell ls /data/app/" and see if that wallpaper app is there... if it is try to remove it "adb shell rm /data/app/<name.apk>
Click to expand...
Click to collapse
nope that didnt work, will it be possible to move them back to the phone, I used recovery mode to put them on my sdcard, and Im on RC33mod, can I do the undo copy.sh app or do I have to use recovery again.
I dont know about the copy.sh script, but u can do it by removing the symlink in /data/app
And then copy the app dir from sd back to /data
knaries2000 said:
I dont know about the copy.sh script, but u can do it by removing the symlink in /data/app
And then copy the app dir from sd back to /data
Click to expand...
Click to collapse
Sorry Im not to savy with all this, How would I go about doing that.
so there is no other way of me getting rid of wallpaper set save stale nfs, and reinstalling it, cause I cant get it on my phone. thats the only program and I like using to set my wallpapers is there another way.
you could always mount it in linux and run fdisk. delete that partition and remake it. that is what I had to do to clean up my /system/sd directory from stale NFS handles. If you need more help with this let me know.

Q&A for Linux/Android

Ok thought might as well start this off myself seen as people keep talking about it, lets have a Q&A thread instead of bashing up the original thread so it can be used just for news and updates.
Does Android work on my HD2?
yes and no, at the moment it boots, no touch-screen driver so that's it so if you try this is what you get
microang has made up some pretty nice versions that dont blue screen check them out here
http://forum.xda-developers.com/showthread.php?p=7032400#post7032400
Can I flash Android?
NO NO NO, it will run from Haret, it will not be a ROM, (yet maybe one day)
Can I boot Ubuntu?
yes you can, but touch-screen issues again,
UPDATE there now is a TS image to use
you would be better off using a mouse and keyboard via a powered usb hub.
Startup txt
Who can I donate to?
Dcordes' PayPal
Cotulla's PayPal
Netripper's PayPal
Links for fatsal-ubuntuX1-20100225 running on you're HD2, there is 3 but i cant find them all post if you have a working link.
http://hotfile.com/dl/51297725/02a8295/fatsal-ubuntuX1-20100225.7z.
thanks to yumm_007 for packaging this up
This Blog site & this Video is as FAKE as it get don't bother with it.
http://alltechdownloads.blogspot.com/
http://www.youtube.com/watch?v=BujRY_q53JI
http://androidforhd2.tk/
This is the IRC channel please dont go and post loads of crap there either
http://webchat.freenode.net/
use channel #htc-linux
Netrippers channel log
http://irclog.netripper.com/?chan=htc-linux&msgonly=0
__________________
Ok I have to go out i will add more and see about a ubuntu Tut to get it running when i get back, please post in here from now so we don't block up the original thread so we can leave that for news and development,
the 2 images are of how i have my folders set up and the other pic of proof it boots
I take no credit for the hard work gone in to this development just tried top clear the thread a bit but that didnt work did it lol, ALL CREDIT GOES TO
Dcordes'
Cotulla's
Netripper's
What I found was that the ubuntu folder must be inside another folder which is on sd root. So tree wise its setup as...
1) SD root
2) Folder (containing the ext2 and the ubuntu folder which contains the haret files)
If you do it like you did, it hangs, I had the same problem. If you do it the way I explained, it gets to the actual linux kernel (tux) but kp's when the modules are to be loaded.
Click to expand...
Click to collapse
Ok, this solves the cpu coherency freeze, what next? what is that we're doing wrong and can't boot the image?
thanks in advance.
artn3r said:
Yes, but i downloaded it over the rapidshare mirror.
what i did:
-copied everything to the sd root
-replaced zimage with the kernel that boots on hd2 (from irc log)
-merged the default.txt and startup.txt of the ubuntu build with the irc-log-build
start haret.exe
Click to expand...
Click to collapse
have you tried this yet???
hi guys,
i currently don`t understand what exactly i have to do to run the HaRET. i`ve downloaded the "fatsal-ubuntuX1-20100225". there are haret and so on and a folder named ubuntu. when i extract it to my sdcard an boot haret i got a stop error "can not access SDroot".
what is wrong? maybe i am stupid?
braumeister said:
hi guys,
i currently don`t understand what exactly i have to do to run the HaRET. i`ve downloaded the "fatsal-ubuntuX1-20100225". there are haret and so on and a folder named ubuntu. when i extract it to my sdcard an boot haret i got a stop error "can not access SDroot".
what is wrong? maybe i am stupid?
Click to expand...
Click to collapse
I got it working on touch diamond start of the year, just downloading for leo now
this was posted
ayilm1 said:
What I found was that the ubuntu folder must be inside another folder which is on sd root. So tree wise its setup as...
1) SD root
2) Folder (containing the ext2 and the ubuntu folder which contains the haret files)
Click to expand...
Click to collapse
Demon_man said:
have you tried this yet???
Click to expand...
Click to collapse
That's the first of it, but go grab artn3r's pre packed ubuntu from the official Android/Linux thread a few posts after the one you quoted I think, and set it up folder wise as...
1) SD root
2) "fatsal-ubuntuX1-20100225" (containing the ext2 and THEN the ubuntu folder which contains the haret files)
That's what I did to make it work but as stated in the official thread, it hangs at the module loader
the name doesn`t matter?
well I'm downloading now, i have to pop out but i will be be back in 45 mins, and ill play try n get it running, if you get it going in the meantime let us no
braumeister said:
the name doesn`t matter?
Click to expand...
Click to collapse
Not sure TBH. Something interesting happens if renamed to something other than the original name though. The coherency test hangs but if reverted, it runs up to the tux.
Just upload ur files if you got it runing
Great idea man!
Demon_man said:
Ok thought might as well start this off myself seen as people keep talking about it, lets have a Q&A thread instead of bashing up the original thread so it can be used just for news and updates.
Click to expand...
Click to collapse
Nice idea man! Glad to see that lot of people is running in the correct way to help this development!
Cheers from Portugal
Ok, SOME progress. Mine HALF succeeded in rebooting after deleting then recopying the files over (making changes of course). It got past the rebooting in 5 seconds hang and now has actually made an attempt to restart. (yay!) But all I got was it declaring it was about to reboot and the Kernel version number. i.e. 2.6.32.9
ayilm1 said:
Not sure TBH. Something interesting happens if renamed to something other than the original name though. The coherency test hangs but if reverted, it runs up to the tux.
Click to expand...
Click to collapse
no it doesn`t matter where the files are or in which folder or how it is called.
tried this:
1) haret, ubuntu folder and co in the root of the sd card
2) new folder called "fatsal-ubuntuX1-20100225" with alle the files and ubuntu folder in there
3) renamed the folder "fatsal-ubuntuX1-20100225" to anything else
does not matter...the result is all the same.
haret booting, init the panel and stops after a line "welcome to kovsky aka xperia - ubuntu" with an error
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed - invalid argument
failed to mount the sd card. cannot continue
/bin/sh: can`t access tty: job control turned off
/ # _ (blinking cursor)
BUT...hardware controls response
braumeister said:
no it doesn`t matter where the files are or in which folder or how it is called.
tried this:
1) haret, ubuntu folder and co in the root of the sd card
2) new folder called "fatsal-ubuntuX1-20100225" with alle the files and ubuntu folder in there
3) renamed the folder "fatsal-ubuntuX1-20100225" to anything else
does not matter...the result is all the same.
haret booting, init the panel and stops after a line "welcome to kovsky aka xperia - ubuntu" with an error
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed - invalid argument
failed to mount the sd card. cannot continue
/bin/sh: can`t access tty: job control turned off
/ # _ (blinking cursor)
BUT...hardware controls response
Click to expand...
Click to collapse
Ok maybe it was just mine acting up then.
have you any partitions on sd card? one or more? if so on which parti do you have the files?
@braumeister
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed - invalid argument
failed to mount the sd card. cannot continue
/bin/sh: can`t access tty: job control turned off
/ # _ (blinking cursor)
Interesting, mine gets none of that. In fact, the loadmodule shell extension is the only think stopping mine from progressing. Oh and umm. It also attempts to switch to rootfs.
braumeister said:
have you any partitions on sd card? one or more? if so on which parti do you have the files?
Click to expand...
Click to collapse
No other partitions, hmmm. But in case this helps, its still got winmo stuff on it, so not formatted to ext2. Doubt that'd make a difference though as the SD's format shouldn't effect the format of the ubuntu image.
transferring files now to my sd card
BOOTED
Hi,
Touchscreen working fine for me.. thanks to cotulla
At bootup it will stuck shortly and show your TS type.. the ones with 2A are the lucky
Image here:
http://cotulla.pp.ru/leo/ImageTS.rar
Do you mind uploading ur setup for unbuntu image?
Thanks you
chris5932 said:
Hi,
Touchscreen working fine for me.. thanks to cotulla
At bootup it will stuck shortly and show your TS type.. the ones with 2A are the lucky
Image here:
http://cotulla.pp.ru/leo/ImageTS.rar
Do you mind uploading ur setup for unbuntu image?
Thanks you
Click to expand...
Click to collapse
do you mean me?? and how you got touchscreen working lol

Making/editing system.ext2 in Windows 7

I am wanting to change and get my own build working... based on enomther for the Nexus One.
Currently I do not have dual boot setup (had to format pc). Is there anyway I can just edit a current system.ext2 file that I already have in windows or would I need to generate a new one in a linux based system.
Basically I want to know if I can take an update.zip file for the N1 and replace everything in the system.ext2 file with everything in the update.zip file.
Pretty sure you need linux to mod the ext2
have you tried using a VM to install linux into?
mastajest said:
Pretty sure you need linux to mod the ext2
have you tried using a VM to install linux into?
Click to expand...
Click to collapse
yea, I had it running on my PC before I had to wipe it. I just havent gotten it running again. Been so busy with work and school.
I am off for a few days, so that will give me something to do.
Suggested solution
I've managed to mount system.ext2 to Windows 7. Without VM and Linux at all.
What tools are needed:
1. Windows Ext2/Ext3 driver. You can get it from here.
2. Any software to mount image to virtual drive. I've used Gizmo Drive, but there are others also working.
Tip: Gizmo doesn't show ext2 as supportable image type, when you browse for image. So, manually type *.* filter.
Just download a disc image from here...
http://www.livecdlist.com/
Burn it to a CD and boot from that. No need for dual boot.
Corias said:
I've managed to mount system.ext2 to Windows 7. Without VM and Linux at all.
What tools are needed:
1. Windows Ext2/Ext3 driver. 2. Any software to mount image to virtual drive. I've used Gizmo Drive, but there are others also working.
Tip: Gizmo doesn't show ext2 as supportable image type, when you browse for image. So, manually type *.* filter.
Click to expand...
Click to collapse
can you edit system.ext2?
i install 1&2,and i can mount system.ext2,but i can't modify anything.
sorry for my bad english!
Corias said:
I've managed to mount system.ext2 to Windows 7. Without VM and Linux at all.
What tools are needed:
1. Windows Ext2/Ext3 driver. You can get it from here.
2. Any software to mount image to virtual drive. I've used Gizmo Drive, but there are others also working.
Tip: Gizmo doesn't show ext2 as supportable image type, when you browse for image. So, manually type *.* filter.
Click to expand...
Click to collapse
simple & work in win7
thanks bro
Corias said:
I've managed to mount system.ext2 to Windows 7. Without VM and Linux at all.
What tools are needed:
1. Windows Ext2/Ext3 driver. You can get it from here.
2. Any software to mount image to virtual drive. I've used Gizmo Drive, but there are others also working.
Tip: Gizmo doesn't show ext2 as supportable image type, when you browse for image. So, manually type *.* filter.
Click to expand...
Click to collapse
you can also simply rename the system.ext2 file to system.ext2.img, will work too
idogxx said:
can you edit system.ext2?
i install 1&2,and i can mount system.ext2,but i can't modify anything.
sorry for my bad english!
Click to expand...
Click to collapse
I was not able to write anything to mounted ext2

Data.img browser for pc

Is there a tool for the PC that will allow me to open and copy/paste from the data.img file?
Thx.
What exactly are you trying to achieve? There may be another way around it if that software doesn't exist (I've never heard of one)
xandermac said:
Is there a tool for the PC that will allow me to open and copy/paste from the data.img file?
Thx.
Click to expand...
Click to collapse
I was looking to do the same thing, being able to edit the image without affecting or booting the ROM. If I figure out a way, I'll tell you. I'm currently looking into it.
*edit* I think it might be possible with a Linux distribution to mount the .img file and modify it. I found a thread that talks about resizing... Here it is: http://forum.xda-developers.com/showpost.php?p=3643103&postcount=4824
I suggest you read up on mount options in Linux with the help of a live CD... I don't really have time to play with this as I'm at work.
Use Virtual Clone Drive
xandermac said:
Is there a tool for the PC that will allow me to open and copy/paste from the data.img file?
Thx.
Click to expand...
Click to collapse
You can download Virtual Clone Drive free from Slysoft and mount 'data.img' as a CD-ROM and read/copy from it.
dsooknanan said:
You can download Virtual Clone Drive free from Slysoft and mount 'data.img' as a CD-ROM and read/copy from it.
Click to expand...
Click to collapse
It said "disk might be corrupted"
zoftdev said:
It said "disk might be corrupted"
Click to expand...
Click to collapse
try it in ubuntu
You may have to install the filesystem drivers for ext2 from http://www.fs-driver.org/. But I have no ideaa if they are compatible with loop mounting in virtual clone drive. Obviously Linux OS's support ext2 out of the box.
Thanks for the replies everyone. I'll try your suggestions.
JJbdoggg said:
try it in ubuntu
Click to expand...
Click to collapse
yea a linux distribution would probably be the best and easiest way. and you can just run a live cd version, and save your modified data.img to your windows drive, since you should have access from linux.

after Data2loop Quadrant Advanced Score 3333

after Data2loop Quadrant Advanced Score 3333
i modify /system/etc/inandop.sh create a loopback device,Please make sure that you have the file.
USE THIS PACK AT YOUR OWN RISK
install adb drivers.
Unzip and run data2loop.bat.
thanks : Dexter_nlb ownhere
What is data2loop? Please elaborate.
Yeah what is that, and are there any drawback to using it?
i am guessing this is some sort of reallocation in the programming, so some programming terminology and not actually something u install....lol, i wish i had experience in this!
I would submit that it is programming, but also something that is installed to take advantage of the great hardware we have.
Asst Dean, IT
rapcon said:
What is data2loop? Please elaborate.
Click to expand...
Click to collapse
create a 512m loopback device,moving some data into the device, this can acheive rapid read and write on buffer data , such as the data under /data.
Is there a reason we r not sharing the wealth...lol. I am guessing this is something that will have to be added to the ROM? Imagine this and ext4! Whew! we might actually have something. If only Honeycomb source was out and viewsonic gave it to the developers....lol
Chenglu said:
create a 512m loopback device,moving some data into the device, this can acheive rapid read and write on buffer data , such as the data under /data.
Click to expand...
Click to collapse
Soudsn great, but again I am not programmer But let me know when it gets simpler
I uploaded the pack
Where please is your post and what we should.
Chenglu said:
I uploaded the pack
Click to expand...
Click to collapse
Do we just place inandop.sh and dataloop.bat in system/ect and reboot?
run dataloop.bat on your pc.
install adb drivers first
can you wrap this up in a zip for those that have ADB issues?
mzimand said:
Do we just place inandop.sh and dataloop.bat in system/ect and reboot?
Click to expand...
Click to collapse
Download and unzip the file on your PC which has a ADb connection to yout GT.
Then run the include data2loop.bat, this will install all the files.
Just like install any update, MAKE SURE you BACKUP your system first.
mzimand said:
Do we just place inandop.sh and dataloop.bat in system/ect and reboot?
Click to expand...
Click to collapse
Download and unzip the file on your PC which has a ADB connection to yout GT.
Then run the include data2loop.bat, this will install all the files.
Just like install any update, MAKE SURE you BACKUP your system first.
Chenglu said:
after Data2loop Quadrant Advanced Score 3333
i modify /system/etc/inandop.sh create a loopback device,Please make sure that you have the file.
USE THIS PACK AT YOUR OWN RISK
Click to expand...
Click to collapse
You beat my ext4 fix to the punch. But I like the way you packaged this up.
Just an explanation for what I believe chenglu is doing here -
His kernel enables loop devices, although I think they may be enabled by default too (http://en.wikipedia.org/wiki/Loop_device).
Then the modified inandop.sh script gets run at the end of init.rc, and that script is creating a file in the data area and mounting it as a loopback device.
He is then moving the stuff from data/data, data/anr and data/app-private directories and copying over the actual contents of those directories into the newly mounted directories on the loopback device.
I am not certain why the loopback device would be so much faster than the standard filesystem access, since it's still on the same device - I think it just has to do with some of the parameters he's passing to mount it? Or simply because it's plain ext2 rather than ext3 - i.e. no journalling.
Not to knock this impressive work (it's impressive because it's deceptively simple but seems to yield - at least in benchmarking - a significant improvement), but I'm not sure about the long term data integrity side of this - is the ext2 loopback device more prone to corruption? And we seem to already have more than enough data integrity issues with our ext3 /data partitions as it is.
Also, do you know how much of the gain is just attributable to the change in how you are mounting the data partition itself (noatime, nodiratime parameters obviously speed things up too, I'd already added that to my init.rc for the plain ext3 mount of the /data partition - I see you did that too in here).
I'm going to test this for TnT Lite today - I might add it to a 3.1.5 supplement, if it seems stable.
One concern is that it replaces busybox, which might break Titanium Backup. Anyone running might want to check if TB is still working, afterwards.
EDIT: Give me 30 minutes and I'll have something generic that should work on VEGAn and TnT Lite 3.x (they share the same busybox setup). And it will an update.zip.
roebeet said:
I'm going to test this for TnT Lite today - I might add it to a 3.1.5 supplement, if it seems stable.
One concern is that it replaces busybox, which might break Titanium Backup. Anyone running might want to check if TB is still working, afterwards.
EDIT: Give me 30 minutes and I'll have something generic that should work on VEGAn and TnT Lite 3.x (they share the same busybox setup). And it will an update.zip.
Click to expand...
Click to collapse
Patiently waiting for that update.zip =P For some reason when I try to download the usb drivers for adb it tells me access is denied... oh well.
I think, the most stable is fdisk inand 3 partions, mmcblk3p3 storage loopback device.
Yesterday I tested, scores almost. For users, it is very difficult..
husker91 said:
Patiently waiting for that update.zip =P For some reason when I try to download the usb drivers for adb it tells me access is denied... oh well.
Click to expand...
Click to collapse
sending you a PM

Categories

Resources