![]() |
Re: Repartition the internal drive
Quote:
Does anywhere know where MyDocs normally gets unmounted to handle the USB access? Graham |
Re: Repartition the internal drive
I guess what you are looking for is:
/usr/sbin/osso-usb-mass-storage-disable.sh /usr/sbin/osso-usb-mass-storage-enable.sh |
Re: Repartition the internal drive
Quote:
Don't! /usr can be done (see earlier in the thread) but you need to modify the startup files, or else the device will not boot successfully.. /etc - I don't see how this could work. You need /etc on the root partition so that /etc/fstab can be read in order to know how to mount the other partitions! I think this would come under "impossible", and certainly shouldn't be tried by anyone who hasn't got a plan to deal with /etc/fstab (ok, you could have a skeleton /etc/ in place on root partition and mount the full blown one over it.. Good luck! :) ) |
Re: Repartition the internal drive
Quote:
I guess it is /usr/sbin/ke-recv -- is that open source? Graham |
Re: Repartition the internal drive
Quote:
If you mount anything into /home/user/MyDocs you need to edit /usr/sbin/osso-mmc-umount.sh to unmount them before it tries to unmount the MyDocs device itself. And then remount them in /usr/sbin/osso-usb-mass-storage-disable.sh. Actually, we really need to create an infrastructure for handling additional mounts which would handle the /etc/fstab manipulation and the mounting at boot time, and the unmounting and remounting of anything which is using the VFAT partition before exporting it. Graham |
Re: Repartition the internal drive
FYI: I've started fixing ke-recv and system-services, and porting GNU parted.
see my post http://talk.maemo.org/showpost.php?p...5&postcount=48 |
Re: Repartition the internal drive
This feels so familiar...
I was an avid Zaurus c760 hacker back in the day, building a custom debian, then using pdaXrom, openzaurus, angstrom, etc. I'm very happy Nokia's gone the honorable (and long-term inevitable, I believe) route of open, transparent and empowering design... and as I said in the hello thread .. a well supported debian-in-pocket system is like a dream come true to me. But, it is a shame Maemo doesn't use a cleaner fs layout. It really should be based on initrd for initial booting ("flash rom" .. 16mb or so), that mounts 32gb root (/) from the MMC. That's it, that's all. IMHO there's no real performance argument... if program data keeps flushing executable/lib cache, tune the VM to flush buffers earlier, etc. If worse comes to worst, add another 32mb physical RAM (I know, too late for that, but still). Then give the user an option of creating a loopback VFAT fs off the mmc (of whatever size), or let them choose the SD card exclusively if they want. So much simpler, and no space restrictions. Updates shouldn't be flashed to the device .. they should be distributed with apt, so they don't need to rewrite /. A soft restore procedure could wipe everything except /home and unpack a fresh system without damaging user files. A hard restore could wipe and reinit the mmc. Minor complaints aside, go Nokia! You guys rock! :) Can't wait for my n900 to get here. |
Re: Repartition the internal drive
Is it possible, to use the eMMC as rootfs and the NAND as swap?
Maybe someone already tested, would be interesting for me if there are differences in performance... |
Re: Repartition the internal drive
Quote:
PR1.1 seems to have made it easier to integrate a boot menu (and to boot from eMMC) http://mer-project.blogspot.com/2010...e-in-pr11.html |
Re: Repartition the internal drive
No, swap is on mmcblk0p3 by default.
Already installed the bootmenu, but how to boot into debian partition or clone rootfs to eMMC? |
Re: Repartition the internal drive
I resolve CAMERA's problem!!!!
Now my camera can took pictures on ext3 and vfat!!!! I resolved it by modification ke-recv (I will try too put patch somewhere...). But camera has bug too..... Bug is: When camera start it is checking on presence folder DCIM on target partition. If it doesn't exist camera create folder DCIM. Here is a bug! DCIM created with root:root (group and user) but should be user:users. Like way around (until nokia will fix it) could be change owner:group by command: chown -R user:users DCIM chmod -R 664 DCIM After this camera make picture on ext3 partition!!! Quality of pictures absolutely same! full script for this: 1. Turn on Camera 2. Change Location for saving picture on internal memory 3. Make picture. Camera will be closed with error message. 4. in terminal type: chown -R user:users DCIM chmod -R 664 DCIM After this camera will work. |
Re: Repartition the internal drive
Please post the diff here.
|
Re: Repartition the internal drive
Ok here is my way to convert storage to ext3:
Code:
sudo gainrootYou can modify /etc/event.d/rcS-late or /usr/lib/genfstab.awk. I modified /usr/lib/genfstab.awk. here my file: Code:
#!/usr/bin/awkCode:
#!/bin/shDifferences is here: Quote:
Code:
#!/bin/shCode:
sudo addgroup --gid 29999 n900EDIT: modified file "/usr/sbin/osso-mmc-mount.sh" (I didn't change now differences). In new file improved permissions changes for files. It is more comfortable for using with other linux computer. Before last modification some files was read only on computer because my script provide access to files by group (user on n900 and computer different). Now all files will have permissions: rwXrwXnnn (n-don't changed). Additional information could be found in bug: https://bugs.maemo.org/show_bug.cgi?id=8179 If you would like to have this modification by default in new release you can vote for this bug |
Re: Repartition the internal drive
Hmm so all it was is a stupid permissions error... gah... Time to remove MyDocs from the mount... I'll still keep it around somewhere else in case I need to share something with a win system.
|
Re: Repartition the internal drive
Gah... not even that... The camera app expects a volume... this is just anal.
|
Re: Repartition the internal drive
Where do you get that it needs a volume from?
Hmmm... so maybe, you're right. Removed the vfat partition completely, just made a MyDocs/DCIM subdir with the appropriate permissions in /home/user The cam won't take pics there... WTF? Ahhh, do I really have to have a volume mounted in MyDocs ? Why are the perms allowing read/write in MyDocs and DCIM not enough? |
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
Oh man, this really is an anal solution.
Created a tiny volume, mounted as ext3 in /home/user/MyDocs It takes pics fine, duh... How to get rid of this volume thingie? |
Re: Repartition the internal drive
Quote:
Where's the conf for the camera that mandates this volume stuff though? You'd think the proper directory structure would be enough... But no... |
Re: Repartition the internal drive
I'm assuming the camera app follows some digital camera specification that states that in needs to use a volume.
A simple solution would be: replace the camera app with an alt one. |
Re: Repartition the internal drive
Could someone post the output of ls -al /home/user/MyDocs
I deleted the original directory, want to symlink it through the mounted volume to some SD storage place and know some apps put stuff there, like OVI maps etc., so just to create the dirs... |
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
Quote:
If you will mount by ke-recv it will create all necessary folder on mounting. Here is the code for creation additional folders: Code:
# create some special directories for user's partitionCode:
max-n900:~# cat /home/user/.config/user-dirs.dirs |
Re: Repartition the internal drive
What's the proper syntax for bind mounting a dir somewhere through ke-recv
Also, unrelated, but where does ovi maps save it's data? It should also be in MyDocs |
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
Quote:
What I didn't test was doing an eMMC reflash. It should work ok over an ext3 partition, no? As a side question, if one were to manage to mangle the partition table badly, what's the standard procedure to recover? Besides easing the use of the Camera app, a nice side effect of having MyDocs be an ext3 volume is that you can define the links, Code:
ln -s / RootThese links, create circular references in the file system and sure enough they make Tracker spin on its wheels... but this can be easily fixed by configuring those two directory references in the "exclude" list of Tracker. Recursive searches such as "find / -name foo.bar" work without problem. Anyway, can you think of other situations where this could prove harmful? --denis Edit 6/17/10: The conversion of ~/Mydocs to ext3 as per mikhmv recipe doesn't survive the update to PR1.2 via OTA/NSU. I had to reflash my N900 with both PR1.2 Fiasco and eMMC images. Then applying the recipe works quite well... but first the modified genfstab.awk needs a new mod to generate the /home/optmounting in /etc/fstab. If any mishaps occur that brick the N900, flashing as above gets the device back to the partitioning defined by Nokia. |
Re: Repartition the internal drive
Quote:
--denis |
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
Has anybody managed to resize existing 3 partitions (w/o swap is 2) to custom sizes. Let's say 4 GB /home (for apps) and the rest for /MyDocs?
|
Re: Repartition the internal drive
Quote:
any way, last my re flash change it to 4GB for /home |
Re: Repartition the internal drive
One "s" less :)
But yeah this is exactly what this thread is primarily about :) |
Re: Repartition the internal drive
What different between: create
1) Separate FAT 2GB partition 2) FAT image which is expandable (Titan's method). Is the second way more convenient since the image size is actual need and sometime we store maps and pictures from camera more than 2GB (just in case). Is there any different performance between them? Thanks. |
Re: Repartition the internal drive
the second one is slower, but more flexible.
Camera and maps don't require a FAT partition (anymore), i.e. MyDocs can be a normal folder on ext3. you can loopmount the FAT image on another folder (e.g $HOME/Extern) and export it via USB. Quote:
|
Re: Repartition the internal drive
Well found some new limitation. Maemo5 expects /usr available early init(/sbin/preinit relies on it). So if you do offload /usr and then rm the old /usr your device will stop booting up.
I guess I'll modify my script to use /usr/local for storage now. |
Re: Repartition the internal drive
Yep, you can only move parts of /usr
I've been experimenting, with frequent reflashes due to moving some parts of /usr that were needed early on and it wouldn't boot, haven't gotten around to getting rescue menu working, so that I could jump to rescue shell when not booting and move stuff back. I've had about hundred reflashes already, no BS... Anyhow, I've moved and symlinked the following from /usr/ and it boots: doc games include local man src var and the following from /usr/share/ autoconf fonts games icons lbreakout2 libtool locale mc microb-engine mime nokia-maps perl perl5 pixmaps sounds themes tutorial-applet zoneinfo |
Re: Repartition the internal drive
Well rescue shell wouldn't help much since it relies on things in /usr/lib and /usr/bin
libcal* and text2screen and awk and cut from what I can tell. Sad that M5 doesn't follow the FHS :( I guess I'll keep / as is and rebuild stuff to use /usr/local Should be a better solution than symlinking stuff all over the place. A nice way of a rescue shell would be an initramfs. But I haven't been able to generate a small enough initramfs(needs to be ~200kb since the kernel is 1.7MB and apparently the max size that can be flashed into the kernel part is 2MB :( |
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
Quote:
/usr/local - just add /usr/local/bin and keep on running |
Re: Repartition the internal drive
True.
I have a better solution even, which I've been getting around to posting for these couple of weeks. Anyhow, what I've done is created a shell script wrapper via dynamically exporting paths etc. which enables you to what I call optlink any package installed anywhere. The benefit of this is, it doesn't require root privileges, I just optlink all the apps into a ~/root and ~/links directories and it enables you to have multiple instances/different versions of the package installed, to remove just optunlink it, it just removes the symlinks in these directories all the paths get reexported and your system is clean, you don't mess with anything... I've been using it some time now, works great, also on a PC. Need to post a complete guide on this. You then install apps just by unpacking anywhere, again no root privs, and optlinking it... I've got all the GNU tools installed this way, not messing with busybox etc. |
Re: Repartition the internal drive
Sounds like GNU Stow or some other such tool.
I just built my own gcoreutils and gtar. Might even do the same for the others. Just prefixed with g. Like it more than the gnu-* packages in extras which install inte $PREFIX/bin/gnu |
| All times are GMT. The time now is 19:13. |
vBulletin® Version 3.8.8