Re: [maemo-developers] Re: Span filesystem across both SD cards?
This is already on the wiki[1] and ITT forums. This is not new. I would recommend cleaning up the wiki page if you feel it is unclear. Alternative2 is what you did. [1] http://maemo.org/maemowiki/HowTo_BootRootFSFromMMC --Paul On 2/2/07, sebastian maemo [EMAIL PROTECTED] wrote: Hi, I've been playing around Fanoush's idea and MUST say it is a pretty cool solution. Things are improving a lot. Before giving definitive results I want to play with all weekend, but I can just say that performance speed has increased substantially. I would say that it's almost doubled (seriously). I'd suggest that the effect is similar to that one can experience when adding a lot of extra RAM to a Desktop PC (running Windows). The idea is basically to create first a dual boot system, then copy an image of the whole system to the memory card, and finally dual boot to the memory card or internal flash. It is supposed to preserve the internal flash system intact (as a backup), and usually boot from the mmc in order to have 1GB or more to install as many applications as you like. I've personally got 700MB of free memory space to install my favourites applications that are: ALL OF THEM!!. Principally I needed to install Octave that consumed a lot of space. My first conclusion of this solution is that: 1. It's easy to implement (when you know exactly what to do, of course; after all your help in this matter, I'll prepare a blog to explain it to the last detail, so that people don't need to browse multiple sites to find out) 2. ACCELERATION. It's incredible how clean and fast are my browser and other typically slow applications. I don't want to look naive in this question. But it might be interesting to do a test of speed before and after. I'm not in the mood to do it, because I just don't want to pass the whole process again. 3. Free memory. Now I can install as many applications I like. Before this solution, I typically had to uninstall the less used apps in order to install new or more necessary apps. I needed octave for my job, and that limited me a lot. I think that good and clear advice on this subject is COMPULSORY for Sputnik users. I think that (almost) all of them are interested in gaining more memory space for installation, and improve the speed of their devices. And this could be THE solution. I'll write again in three days or so to give a definite opinion. Salut. Sebas. Thanks again to all of you, and specially to Frantisek. 2007/2/2, Neil MacLeod [EMAIL PROTECTED]: Matan Ziv-Av wrote: insmod unionfs.ko mount -t unionfs -o dirs=/media/mmc1/usr=rw:/usr=ro unionfs /usr to startup scripts (early enough) before anything opens a file for writing under /usr. See here: http://www.linux-live.org/unionfs/ Would unionfs allow a single file to span two directories/partitions? ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On 2/1/07, Jon Smirl [EMAIL PROTECTED] wrote: Most people won't bother with all this work and limitations and just buy 2GB or 4GB cards. It is a lot of work to get dm/lvm working to merge two 512MB cards. 2GB cards are really getting cheap. I just noticed this place selling 2GB cards for $18.50 shipped. http://meritline.stores.yahoo.net/a-data-2gb-speedy-minisd-with-adapter.html Your own time isn't free, I'd just buy a 2GB card instead spending five or six hours trying to merge two 512MB ones. -- Jon Smirl [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On 2/3/07, Neil MacLeod [EMAIL PROTECTED] wrote: Jon Smirl wrote: On 2/1/07, Jon Smirl [EMAIL PROTECTED] wrote: Your own time isn't free, I'd just buy a 2GB card instead spending five or six hours trying to merge two 512MB ones. I'm not sure the size of the cards really matters though - you can find yourself short of sufficient space on any individual card whether it is 512Mb or 8GB, yet across both cards you may have the space to store the file. I'd actually like to span across two 8GB cards giving a unified 16GB filesystem (or perhaps keep 1GB for swap and OS, and the remaining 15GB unified for media file storage). Even with 8GB cards I could find myself with insufficient room to squeeze in one more file on either card! :) Using dm/lvm to merge the devices into a single large device means that the cards are paired and can't be used individually anymore. If you take one out and put it in a reader, you won't be able to read it. The usb storage feature of the Nokia would also have to be modified to export the merged drive instead of the individual sd devices. It should be easy to point USB storage at a different device name. You could also improve the read/write speed of the system by combining the models into a raid0 array. That is probably easier than dm/lvm. But for raid0 to be efficient the devices need to be identical. The raid0 driver is a small module that can be built into the kernel, it will stripe the file system across both devices without any redundancy. -- Jon Smirl [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
Maybe it's already tere. But it's not self-contained, and it took me a non-sleeping week to get it ready. I think it's inadmissible for an end user (though intermediate level). I even think it should be completely automated... 2007/2/3, Paul Klapperich [EMAIL PROTECTED]: This is already on the wiki[1] and ITT forums. This is not new. I would recommend cleaning up the wiki page if you feel it is unclear. Alternative2 is what you did. [1] http://maemo.org/maemowiki/HowTo_BootRootFSFromMMC --Paul ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
sebastian maemo wrote: Don't you get pretty soon the no-more-free-memory advertisement after installing octave and abiword? Wouldn't you like to install anything you like and more? http://fanoush.wz.cz/maemo/#initfs http://maemo.org/maemowiki/HowTo_GetStartedWithSardine You need bigger card than the 128MB one, though. 1 or 2GB are not that expensive nowadays. Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
Hi Fran: I've got 1GB card. 128MB is the internal memory of my 770. And that is ALL I've got to install applications. Since it is IMPOSSIBLE (unless you tell me how) to install an application in MMC. So easy to understand... I think I'm going to resell my 770. I'm fed up with struggling with it and getting almost nothing. My S60 Symbian-based N80 phone works far much better than my 770. 2007/2/2, Frantisek Dufka [EMAIL PROTECTED]: sebastian maemo wrote: Don't you get pretty soon the no-more-free-memory advertisement after installing octave and abiword? Wouldn't you like to install anything you like and more? http://fanoush.wz.cz/maemo/#initfs http://maemo.org/maemowiki/HowTo_GetStartedWithSardine You need bigger card than the 128MB one, though. 1 or 2GB are not that expensive nowadays. Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
I suppose you could just boot from MMC and then install everything on it ! I don't see how you can compare a N80 and the 770 ??? Fred sebastian maemo a écrit : Hi Fran: I've got 1GB card. 128MB is the internal memory of my 770. And that is ALL I've got to install applications. Since it is IMPOSSIBLE (unless you tell me how) to install an application in MMC. So easy to understand... I think I'm going to resell my 770. I'm fed up with struggling with it and getting almost nothing. My S60 Symbian-based N80 phone works far much better than my 770. 2007/2/2, Frantisek Dufka [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: sebastian maemo wrote: Don't you get pretty soon the no-more-free-memory advertisement after installing octave and abiword? Wouldn't you like to install anything you like and more? http://fanoush.wz.cz/maemo/#initfs http://maemo.org/maemowiki/HowTo_GetStartedWithSardine http://maemo.org/maemowiki/HowTo_GetStartedWithSardine You need bigger card than the 128MB one, though. 1 or 2GB are not that expensive nowadays. Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
sebastian maemo wrote: Since it is IMPOSSIBLE (unless you tell me how) to install an application in MMC. I thought I just gave a hint how to do that in my last mail :-) True that internal flash won't be used at all when booting from the card but you can consider this being an advantage. You can keep internal flash as a 'safe mode'. Also who cares about slow/compressed 128MB of internal memory when the card has gigs of space and is faster? Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
Hi Fran: I'll try that: booting from the card. I'll read and study a bit. What I don't understand is why something so logically needed (it is featured in all new brand Nokia phones) is not available as default. Just about the comparison with N80: your surprise makes me think you aren't aware of what it's really capable of. I'll tell that it's a real computer, as 770 is. The only difference is its OS: 770 is linux, and N80 is S60. But with java, python, and other languages support, my N80 is a little computer (and 3G phone). Well, I'll go on with setupping my 770... Booting from the card you said. Let's see... 2007/2/2, Frantisek Dufka [EMAIL PROTECTED]: sebastian maemo wrote: Since it is IMPOSSIBLE (unless you tell me how) to install an application in MMC. I thought I just gave a hint how to do that in my last mail :-) True that internal flash won't be used at all when booting from the card but you can consider this being an advantage. You can keep internal flash as a 'safe mode'. Also who cares about slow/compressed 128MB of internal memory when the card has gigs of space and is faster? Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
RE: [maemo-developers] Re: Span filesystem across both SD cards?
Hi Fran: I'll try that: booting from the card. I'll read and study a bit. What I don't understand is why something so logically needed (it is featured in all new brand Nokia phones) is not available as default. IIRC this was looked into seriously and decided to not do it. So this is not a planned feature AFAIK. Plus, its really easy to get at least 175 MB of free internal storage on N800. Br, --jakub ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
Hi Jakub: Maybe for N800, but I've bought N770 and hope last a couple of years (two as a minimum). Nevertheless I'm trying. I've just played with the copy-your-existing-filesystem thing. I think I've succeeded copying my entire system to the ext2 partition in my mmc. Cool. But it still doesn't work. Why? Just because I've got IT2006.49-2 and Fran's initfs-flasher is updated just to prior version (39-14) or next version (N800). When trying it, I get the message: !!!unknown initfs version osso-n770.2006-48, cannot install bootmenu Cannot find initfs.bootmenu.jffs2, something failed, nothing flashed. As I've saved my entire system in the mmc, I think I may go on and experiment without fear. But without initfs-flasher I cannot boot from the mmc. What could I do? Should I re-install previous IT2006.39 reflashing via desktop PC? Salut. Sebas. 2007/2/2, [EMAIL PROTECTED] [EMAIL PROTECTED]: What I don't understand is why something so logically needed (it is featured in all new brand Nokia phones) is not available as default. IIRC this was looked into seriously and decided to not do it. So this is not a planned feature AFAIK. Plus, its really easy to get at least 175 MB of free internal storage on N800. Br, --jakub ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On Fri, Feb 02, 2007 at 06:29:22AM +0100, sebastian maemo wrote: When I bought N80 phone, I found a very useful and logic feature: when you install a new app, the application manager asks you whether you want it installed over your tiny phone memory, or over your large GB memory card. For don't-know-what-reason Nokia failed to make this feature available on his 770. They just let me create a 64M swap file that helps, but not that much. I would guess the reason is that it's not that simple to do this in a Linux system. I agree that it would be useful. So would a thousand other features. So here I am, trying to make things work. I've learned how to create partitions with sfdisk (not so friendly as fdisk), format them with mkfs.ext2 (that was easy), and mount and unmount them at startup and shutdown via init.d scripts (that was the worst one). And now that I've learned all that much, I created the wrong symlinks: I cp'ed /usr to the MMC, and then made the wrong link: ln -s /media/mmc2/usr /usr. Yes, now I know it should be the reverse way, but do not understand why. No, your command is correct. Other things might be wrong: - cp doesn't preserve file permissions, unless you ask for it explicitly. You may have ended up with all the programs in /usr/bin not executable - If you did not remove the /usr directory before creating the symlink, you've ended up with a symlink /usr/usr - /media/mmc2/usr This should not have prevented it from booting, though. - I do not know if /media/mmc2 is mounted early enough before the boot sequence needed to access files in /usr. Marius Gedminas -- Linux was made by foreign terrorists to take money from true US companies like Microsoft. -Some AOL'er. To this end we dedicate ourselves... -Don (From the sig of Don [EMAIL PROTECTED]) signature.asc Description: Digital signature ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
sebastian maemo wrote: But it still doesn't work. Why? Just because I've got IT2006.49-2 and Fran's initfs-flasher is updated just to prior version (39-14) or next version (N800). I had no time to upgrade my N700 yet. Send me /mnt/initfs/linuxrc file privately. Or try to apply https://garage.maemo.org/svn/bootmenu/trunk/linuxrc-bootmenu.2006-38.diff patch to linuxrc file. If it applies cleanly there is no change. Or you can blindly rename initfs.osso-n770.2006-38.tgz to initfs.osso-n770.2006-48.tgz inside flasher directory before running flashing script and cross your fingers. There is quite high chance there will be no change in linuxrc file and bootmenu will work. Initfs is probably newer mainly because of newer wi-fi firmware blobs. Can't say for sure without seeing linuxrc file. Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
Thank you, Marious. That encourages me a lot. Because now I've copied the whole system a la Fanoush, that is: via GNU tar. So I hope there's not going be any problem of preserved links or similar details. Now I was blocked because I didn't have got a usable initfs-flasher in order to dual-boot. Maybe the solution is just to symlink. Your help here could be precious... Yes I created ln -s /media/mmc2/usr /usr, and then renamed original /usr to /usr-old. I don't mind removing it. So the idea is correct: /usr - /media/mmc2/usr Now the problem is to mount the mmc2 before the system needs it. I've mounted at minircS, just before the line that says mount_devpts (line number 98). Would it suffice? How do I know? I've tried to put the line much above, but the script didn't recognized it. Maybe to early. Hope I success. In that case, I'll write a complete report and blog it, for future users. Salut. Sebas. 2007/2/2, Marius Gedminas [EMAIL PROTECTED]: On Fri, Feb 02, 2007 at 06:29:22AM +0100, sebastian maemo wrote: When I bought N80 phone, I found a very useful and logic feature: when you install a new app, the application manager asks you whether you want it installed over your tiny phone memory, or over your large GB memory card. For don't-know-what-reason Nokia failed to make this feature available on his 770. They just let me create a 64M swap file that helps, but not that much. I would guess the reason is that it's not that simple to do this in a Linux system. I agree that it would be useful. So would a thousand other features. So here I am, trying to make things work. I've learned how to create partitions with sfdisk (not so friendly as fdisk), format them with mkfs.ext2 (that was easy), and mount and unmount them at startup and shutdown via init.d scripts (that was the worst one). And now that I've learned all that much, I created the wrong symlinks: I cp'ed /usr to the MMC, and then made the wrong link: ln -s /media/mmc2/usr /usr. Yes, now I know it should be the reverse way, but do not understand why. No, your command is correct. Other things might be wrong: - cp doesn't preserve file permissions, unless you ask for it explicitly. You may have ended up with all the programs in /usr/bin not executable - If you did not remove the /usr directory before creating the symlink, you've ended up with a symlink /usr/usr - /media/mmc2/usr This should not have prevented it from booting, though. - I do not know if /media/mmc2 is mounted early enough before the boot sequence needed to access files in /usr. Marius Gedminas -- Linux was made by foreign terrorists to take money from true US companies like Microsoft. -Some AOL'er. To this end we dedicate ourselves... -Don (From the sig of Don [EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFw0HykVdEXeem148RAj7KAJ4ltfro5hUmIcXVyHRGOCemLFRSBgCfXaQG jWbk3RPJ2yQTieEaWS0onQo= =/hpd -END PGP SIGNATURE- ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On 2/2/07, sebastian maemo [EMAIL PROTECTED] wrote: Now the problem is to mount the mmc2 before the system needs it. I've mounted at minircS, just before the line that says mount_devpts (line number 98). Would it suffice? How do I know? I've tried to put the line much above, but the script didn't recognized it. Maybe to early. Note that you don't have to symlink the whole /usr directory. You could leave the critical files for boot in the on-board /usr and then individually link other apps into the directory. Or you can use your path to search for apps in more than one place, etc. Maybe future secondary apps could be built to install into /opt instead of /usr and then /opt get added to the search path. That would make it much easier to get the apps onto the mmc card. You would symlink /opt to the mmc card and then install the app. -- Jon Smirl [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
Jon Smirl wrote: Maybe future secondary apps could be built to install into /opt instead of /usr and then /opt get added to the search path. That would make it much easier to get the apps onto the mmc card. You would symlink /opt to the mmc card and then install the app. Some files needs to be in system hardcoded directories (menu shortcuts, icons, ...). This symlinking (or overlaying using FUSE) way is a can of worms which IMHO should stay closed :-) What you expect to happen if you remove the card when system is running? And if you don't plan to remove the card you may as well boot from it and save yourself from all the headache of modifying root filesystem to support it. Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On 2/2/07, Marius Gedminas [EMAIL PROTECTED] wrote: On Fri, Feb 02, 2007 at 06:29:22AM +0100, sebastian maemo wrote: For don't-know-what-reason Nokia failed to make this feature available on his 770. They just let me create a 64M swap file that helps, but not that much. I would guess the reason is that it's not that simple to do this in a Linux system. I agree that it would be useful. So would a thousand other features. Not sure how constructive this comment is, but... My Linksys router running linux uses ipkg packages. I can set it up to install to alternate destinations just be doing something like ipkg -d ram -i packagename or ipkg -d jffs2 -i packagename where ram and jffs2 are defined in some config file somewhere. I could see defining destinations like root, mmc1, and mmc2 for my n800, but of course we use apt/dpkg, so this function doesn't exist. Like I said, not really constructive ;) --Paul ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On Fri, Feb 02, 2007 at 03:12:04PM +0100, sebastian maemo wrote: Thank you, Marious. That encourages me a lot. Because now I've copied the whole system a la Fanoush, that is: via GNU tar. So I hope there's not going be any problem of preserved links or similar details. Yes, tar is very good at that. (Another thing to check is that /media/mmc2 is not mounted with -o noexec.) Now I was blocked because I didn't have got a usable initfs-flasher in order to dual-boot. Maybe the solution is just to symlink. Your help here could be precious... Actually booting from MMC sounds like it is a simpler and safer choice, if you can get it to wowk. Yes I created ln -s /media/mmc2/usr /usr, and then renamed original /usr to /usr-old. Wait a second. Did you do these two steps in exactly this order? Because if you did, then after ln -s you ended up with a symlink in /usr/usr, and after the second step you did not have a /usr at all, because the symlink got moved with the whole old /usr to /usr-old/usr. I don't mind removing it. So the idea is correct: /usr - /media/mmc2/usr Yes. Now the problem is to mount the mmc2 before the system needs it. I've mounted at minircS, just before the line that says mount_devpts (line number 98). Would it suffice? I don't know. Maybe. How do I know? I've tried to put the line much above, but the script didn't recognized it. Maybe to early. Hope I success. In that case, I'll write a complete report and blog it, for future users. Good luck, Marius Gedminas -- Nobody will ever need more than 640k RAM! -- Bill Gates, 1981 Windows 95 needs at least 8 MB RAM. -- Bill Gates, 1996 Nobody will ever need Windows 95. -- logical conclusion signature.asc Description: Digital signature ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On Fri, Feb 02, 2007 at 04:25:30PM +0100, Zoran Kolic wrote: And now that I've learned all that much, I created the wrong symlinks: I cp'ed /usr to the MMC, and then made the wrong link: ln -s /media/mmc2/usr /usr. Yes, now I know it should be the reverse way, but do not understand why. That's it! Don't warry about. You have option to symlink whole directory: ln -s /usr/bin /media/mmc2/usr/bin Wrong. ln is like cp: it takes the existing path first, and makes it appear at the destination, which you supply second. The command you wrote would create a symlink in /media/mmc2/usr/bin, pointing to /usr/bin. Marius Gedminas -- If the code and the comments disagree, then both are probably wrong. -- Norm Schryer signature.asc Description: Digital signature ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
2007/2/2, Zoran Kolic [EMAIL PROTECTED]: My device is just now reflashed. Cool! Have you started to breath again? Not exactly. I think I've broken my mmc with so much usb up and down :( It sometimes crashes. But then I format it again (the VFAT part) and it seems to work till crashes again. I've received very good help from Frantisek. And I think I'm going to get it. But I need another card in order to be sure about the results. I breath a little bit more again. This weekend I'll find out whether I can or cannot reboot the device from my mmc. Thank you very much to all of you. Salut. Sebas. ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On 2/2/07, sebastian maemo [EMAIL PROTECTED] wrote: 2007/2/2, Zoran Kolic [EMAIL PROTECTED]: My device is just now reflashed. Cool! Have you started to breath again? Not exactly. I think I've broken my mmc with so much usb up and down :( It sometimes crashes. But then I format it again (the VFAT part) and it seems to work till crashes again. Don't reboot your Nokia device or unplug the USB cable without first unmounting the USB drive from the Linux system. This is almost certainly what is causing the errors in your MMC drive's FAT file system. The host system quickly buffers changes to the USB drive in RAM and then more slowly writes them out to the physical drive. Unmounting will force these changes to be written. If you unplug before they are written the file system will be partially updated which causes the errors you see. I've received very good help from Frantisek. And I think I'm going to get it. But I need another card in order to be sure about the results. I breath a little bit more again. This weekend I'll find out whether I can or cannot reboot the device from my mmc. Thank you very much to all of you. Salut. Sebas. ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers -- Jon Smirl [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On 2/2/07, Neil MacLeod [EMAIL PROTECTED] wrote: Matan Ziv-Av wrote: insmod unionfs.ko mount -t unionfs -o dirs=/media/mmc1/usr=rw:/usr=ro unionfs /usr to startup scripts (early enough) before anything opens a file for writing under /usr. See here: http://www.linux-live.org/unionfs/ Would unionfs allow a single file to span two directories/partitions? No, it just transparently merges the directories. DM/LVM is the only way I know for a file to span volumes. ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers -- Jon Smirl [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
Hi, I've been playing around Fanoush's idea and MUST say it is a pretty cool solution. Things are improving a lot. Before giving definitive results I want to play with all weekend, but I can just say that performance speed has increased substantially. I would say that it's almost doubled (seriously). I'd suggest that the effect is similar to that one can experience when adding a lot of extra RAM to a Desktop PC (running Windows). The idea is basically to create first a dual boot system, then copy an image of the whole system to the memory card, and finally dual boot to the memory card or internal flash. It is supposed to preserve the internal flash system intact (as a backup), and usually boot from the mmc in order to have 1GB or more to install as many applications as you like. I've personally got 700MB of free memory space to install my favourites applications that are: ALL OF THEM!!. Principally I needed to install Octave that consumed a lot of space. My first conclusion of this solution is that: 1. It's easy to implement (when you know exactly what to do, of course; after all your help in this matter, I'll prepare a blog to explain it to the last detail, so that people don't need to browse multiple sites to find out) 2. ACCELERATION. It's incredible how clean and fast are my browser and other typically slow applications. I don't want to look naive in this question. But it might be interesting to do a test of speed before and after. I'm not in the mood to do it, because I just don't want to pass the whole process again. 3. Free memory. Now I can install as many applications I like. Before this solution, I typically had to uninstall the less used apps in order to install new or more necessary apps. I needed octave for my job, and that limited me a lot. I think that good and clear advice on this subject is COMPULSORY for Sputnik users. I think that (almost) all of them are interested in gaining more memory space for installation, and improve the speed of their devices. And this could be THE solution. I'll write again in three days or so to give a definite opinion. Salut. Sebas. Thanks again to all of you, and specially to Frantisek. 2007/2/2, Neil MacLeod [EMAIL PROTECTED]: Matan Ziv-Av wrote: insmod unionfs.ko mount -t unionfs -o dirs=/media/mmc1/usr=rw:/usr=ro unionfs /usr to startup scripts (early enough) before anything opens a file for writing under /usr. See here: http://www.linux-live.org/unionfs/ Would unionfs allow a single file to span two directories/partitions? ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
On 2/1/07, Neil MacLeod [EMAIL PROTECTED] wrote: Jon Smirl wrote: The ability already exists in Linux. You need to turn on device mapper in your kernel and then use LVM2 or EVMS. Great! :) Unfortunately that's way over my head :) When you say turn on device mapper in the kernel, do you mean compile the kernel with device mapper enabled (or can it already be turned on somehow)? And is LVM2 or EVMS already available on the N800? And just what is device mapper? My N800 isn't here yet. But you will probably need to build a new kernel and turn on the config for device mapper. Or just look at the modules on your current system, I think it is called dm.ko, it may already be there. I haven't noticed any one building LVM2 or EVMS for the Nokia. Once you merge the cards with device mapper you will always have to use them together. They will be useless individually. Most people won't bother with all this work and limitations and just buy 2GB or 4GB cards. If you don't have to have files that are larger than a single volume, you can just use a symlink to logically merge them any way you want. -- Jon Smirl [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Span filesystem across both SD cards?
Please Jon, expand it a bit, por favor. I've just bricked my device and reflahed it again trying to symlink anyway I need. Maybe it's not a question for developers-list, but Nokia didn't thought that 128M wouldn't suffice me enough to install all apps I'd like for my device. When I bought N80 phone, I found a very useful and logic feature: when you install a new app, the application manager asks you whether you want it installed over your tiny phone memory, or over your large GB memory card. For don't-know-what-reason Nokia failed to make this feature available on his 770. They just let me create a 64M swap file that helps, but not that much. So here I am, trying to make things work. I've learned how to create partitions with sfdisk (not so friendly as fdisk), format them with mkfs.ext2 (that was easy), and mount and unmount them at startup and shutdown via init.d scripts (that was the worst one). And now that I've learned all that much, I created the wrong symlinks: I cp'ed /usr to the MMC, and then made the wrong link: ln -s /media/mmc2/usr /usr. Yes, now I know it should be the reverse way, but do not understand why. My device is just now reflashed. Before reflashing it again and again, could somebody tell me what should I do right now, before installing any apps, what to do to be able to install them on the MMC instead of on the 770's internal memory. Does anybody know what I'm talking about? Am I the first guy who dares such a naive question? Don't you get pretty soon the no-more-free-memory advertisement after installing octave and abiword? Wouldn't you like to install anything you like and more? Why should it be so difficult? Salut. Sebas. 2007/2/2, Jon Smirl [EMAIL PROTECTED]: If you don't have to have files that are larger than a single volume, you can just use a symlink to logically merge them any way you want. -- Jon Smirl [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers