![]() |
[HOW TO] Format and use a ext2 MyDocs partition.
3 Attachment(s)
This tutorial with the ext2Manager app is part of the Maemo Coding Competition 2012 ! (Desktop, System & Utilities + Beginners)
This is a complete guide on how to format and use your Nokia N9 with the storage memory formatted in ext2, this tutorial should works with any operating system, I tested N9 "Mass Storage" mode in ext2 on an Linux (Ubuntu) system and a Windows 7 system, I didn't test it with Mac OSx but it should works too. Basic acknowledgement : Difficulty of execution : Medium. Time required : +02H00. (add +01H00 for Macintosh and Windows users). Tested on : N9 PR1.3 Required level for understanding commands : Advanced (Linux users), Expert (Windows users). Pros : +4GB file support. no file fragmentation. Cons : POSIX file permissions (I made a simple app to help facing this problem, so you should not care about it). Resources : ext2Manager Ext2fsd v0.51 All other resources are available at the end of this tutorial. Requirements : - You need a computer with one of the following operating system. (Windows XP and after, Linux or Mac OSx, or anything UNIX based). - You should know how to flash your device (http://talk.maemo.org/showthread.php?t=82693). - Your Nokia N9 should be fully charged. - Some knowledges about POSIX file permissions would be good for you to understand this tutorial, if you don't know about it look at this page : http://en.wikipedia.org/wiki/Filesystem_permissions. - You need developer mode. - You need to backup all personal data stored on your N9 (Media files, contacts, messages, apps, etc...). F.A.Q. : - Does every app (including pre-installed apps like Nokia Maps) still works after applying this tutorial ? - Yes, files read/write access remains the same as before. - Does "Sync and connect" mode works too ? Yes, you can still sync your N9 with either Nokia Suite or Nokia Link. - Does the SDK mode still works ? Yes, no problem here too. - I do not understand what POSIX's rights are, can I follow this tutorial anyway ? - Yes, this isn't a problem. - Is there a difference of performance between ext2 and fat32 ? Not really, follow this link for more details : TODO - Will I be able to apply Nokia updates to my phone ? Yes, this hack is totally invisible, in regards of Nokia updates. - Will this brick my warranty ? No, it shouldn't. - Does the Nokia flasher works even if the MyDocs filesystem has been changed ? Yes, as this tutorial do not modify any partition size, the flasher do not detect any difference, and format the MyDocs partition back to fat32. - Do I need inception or OpenKernel mode ? No, they aren't necessary at all. Disclaimer : Please follow exactly the steps mentioned below, as this tutorial modify important system files, I claim not to be responsible if you brick your phone and/or lose data. I tested like five time this tutorial, and my N9 never bricked while executing it... Just read carefully the commands and nothing will go wrong. Let's start ! STEP 1 - Installing an ext2 driver for Windows (and Macintosh) Windows by default can't detect/read/write ext2 filesystems, to fix this we first need to install an ext2 driver on it, otherwise you won't be able to connect your N9 in "Mass storage" mode on your computer, after formatting it in ext2 (Windows won't recognize it anymore). Important Note : The driver we're going to use integrates totally with Windows, so it modifies important system files configuration, which means if the installation fail, it can destroy your system, please do have a backup of Windows (like a restore point) and a copy of your personal data. There should be no problem with the latest version, this is just in case something wrong happen. Download Ext2fsd and install it following the default installer settings, your computer should then reboot... Once your computer is back on, go to the "Start menu"and launch Ext2Fsd > Ext2 Volume Manager. Important Note 2 : If you're a Windows/Linux dual-boot user then you should have Linux partitions on your hard drive. I absolutely recommend you not to mount them ! Ext2fsd can read/write ext2/3/4 partitions according to it's documentation, but write mode is totally unstable with ext3/4 partitions. Go to Tools > Service Management and apply my settings : http://talk.maemo.org/attachment.php...1&d=1347118033 You can now use ext2 on Windows ! Macintosh, as I haven't one I can't write a tutorial for OSx users, but you should look on the web for a tutorial about MacFuse and fuse-ext2. If you do have a Macintosh and successfully installed ext2 support in Mac OSx, please share the tutorial you used, I will add it. STEP 2 - ext2Manager Follow the step mentioned on the official thread page to install it. STEP 3 - MyDocs in ext2 I am assuming you prepared everything, your N9 should be charged, your computer turned on, and you should have backed up your all personal data from your N9. First, I recommend you to follow those step with a clean N9 to be sure everything will happen as I expect it should happen. From now please flash your device using comprehensive reset method. This will erase all the data on your phone. Once, the flashing process is done, please enable "developer-mode" under Settings > Security > Developer mode, your N9 will reboot, after this go back to the same menu and install "Utilities". Then connect your device to your computer via the usb cable. Select "Mass storage" mode. Backup all the content of your storage memory, to a folder named "backup_orig" on your computer, be aware of ".filename" hidden files on Unix based systems, do not forget to copy them. Now please unmount/eject your N9 from the OS only. Do not remove the usb cable ! This is important, it blocks the N9 to mount the MyDocs partition. To be formatted, a partition needs to be unmounted with the umount command, but aegis doesn't allow the use of the umount, that's why I use the "Mass storage" trick. Now we can begin the shell part, open the meego-terminal and enter the following commands : Code:
devel-su As we will change a partition filesystem, we need to edit this file. From now you should see this on your screen : Quote:
Editing the fstab file : With the arrow keys, go to the beginning of the 3rd line, press enter, and write those two character : "# ". Now go up to the blank line you inserted and write this text : "/dev/mmcblk0p1 /home/user/MyDocs ext2 rw,noatime,nodiratime,errors=remount-ro 0 0". Do not modify anything else. I won't explain the changes made, but here's how the file should exactly look after modification : Quote:
To save the file press CTRL + o, and then CTRL + x to close it. Back to the terminal enter this command to check the content of fstab : Code:
cat fstab Code:
cd /sbin Then reboot your N9 : Code:
./reboot Your N9 should boot using the ext2 filesystem for mass storage. Launch ext2Manager once to fix the MyDocs folder rights, and copy back the data from the backup_orig directory on your computer, do not delete this backup directory before the end of the tutorial. (Check STEP 4 to learn about how to transfer files since you formatted your N9 in ext2). Launch the gallery, if the default pictures doesn't show up, well it's because the program configuration (tracker-control) that indexes files has broke. Let's repair it. (I experienced this bug anytime I followed my tutorial.) Copy the user-dirs.dirs file to the MyDocs directory from your computer. Now start the meego-terminal app and enter those commands : Code:
cd /home/user/MyDocs Once it reboots, open the meego-terminal, the "Clear device" process has reformatted the mass memory into fat32, so we're going to put it back to ext2... again ! Connect your N9 in "Mass storage" mode to your computer, and eject/unmount it without removing the usb cable. Code:
devel-su You're now using a fully functional N9 with MyDocs formatted in ext2. YOU CAN NOW RESTORE YOUR PERSONAL DATA. (Don't forget to run ext2Manager first.) STEP 4 - [Reminder] Learn how to use the "Mass storage" with any of your operating systems Windows : Connect the N9 in "Mass storage" mode to your computer, do what you want, disconnect the N9. Linux Ubuntu : - Connect the N9 in "Mass storage" mode to your computer, - then open a terminal : Code:
sudo chown -R yourusername:root /path/to/N9mountpoint Code:
sudo chown -R alexis:root /media/"Nokia N9" - disconnect the N9 - and launch ext2Manager. Linux : - Connect the N9 in "Mass storage" mode to your computer, - then open a terminal with root rights : Code:
chown -R yourusername:root /path/to/N9mountpoint Code:
chown -R alexis:root /media/"Nokia N9" - disconnect the N9 - and launch ext2Manager. Macintosh : - Connect the N9 in "Mass storage" mode to your computer, - then use the Mac OSx utility to fix rights on a folder, - do what you want, - disconnect the N9 - and launch ext2Manager. THE END. |
Re: [HOW TO] Format the MyDocs partition into ext2.
2 Attachment(s)
Tips :
- Assign a fix drive letter for your N9 on Windows : Launch "Ext2 Volume Manager" then right click your N9 partition and click on "Change Drive Letter", click on the actual drive letter, and click the button change, select the new letter and don't change any other settings, click OK. That's it. - Accessing your N9 on Windows without an ext2 driver : Select "Sync and Connect" mode, you'll be able to see your files, or you can use bluetooth too. - Formatting MyDocs into ext3 or ext4 : If you're a Linux only user you can adapt this tutorial easily by changing this command : Code:
./mkfs.ext2 /dev/mmcblk0p1 Code:
./mkfs.ext3 /dev/mmcblk0p1 Quote:
Quote:
- Benchmarks to test the Windows ext2 driver performance : On the left fat32, on the right ext2. http://talk.maemo.org/attachment.php...1&d=1347230606http://talk.maemo.org/attachment.php...1&d=1347230606 Note : ext2 performance should be better than fat32 on the N9, as Meego use Linux as it's kernel. |
Re: [HOW TO] Format the MyDocs partition into ext2.
afaik, there's no need in clearing device, just forcing tracker-control to (re)index specific directories, worked for me many times
|
Re: [HOW TO] Format the MyDocs partition into ext2.
Quote:
|
Re: [HOW TO] Format and use a ext2 MyDocs partition.
Thanks for the tutorial :)
I did something similar, reformatting it as fat32, 4kb. Works well, especially since ext2 isn't natively supported on Mac OSX or Windows (Main OSes used today) like you say. While you can still adapt your N9 to work, it isn't as simple as "plug 'n' play" of Fat32. Still though, great tutorial and good on you for sharing it :) Just thought I'd add my two cents |
Re: [HOW TO] Format and use a ext2 MyDocs partition.
what's on-device R/W speeds?
|
Re: [HOW TO] Format and use a ext2 MyDocs partition.
Quote:
|
Re: [HOW TO] Format and use a ext2 MyDocs partition.
1 Attachment(s)
Something like bonnie++ might work for testing on N9. hdparm is useless as it tests only low level, not the filesystem.
Here's a run on my N9's fat32 partition (formatting seems to get messed up here even with code tags, some lines are wrapped): Code:
~/MyDocs/tmp $ time bonnie |
Re: [HOW TO] Format the MyDocs partition into ext2.
Quote:
|
Re: [HOW TO] Format and use a ext2 MyDocs partition.
If after following instructions you encounter the gallery (and other media) problem, it's possible to resolve it with the Gallery Fix included in N9QTweak (Tweak KK-9), following its instructions in the associated PDF file. For me it worked instead flashing the device.
|
All times are GMT. The time now is 17:47. |
vBulletin® Version 3.8.8