Repartitioning the Nokia N9
Hi,
i kind of hated that on the nokia N9 there are 3 partitions: Code:
/dev/mmcblkp1 as MyDocs So i figured out you could use sfdisk to reformat the partitions while running in harmattan (openmode, don't know if that matters, but i think it doesn't) and even use ext3 or something else as partition type for the new partitions you might add. If you dont want to add a partition you can just set the partition type of partition 1 to Linux, will work just as good but i liked to have a small FAT partition for swapping files between operating systems at home, university and so on... my partition table looks like this now: Code:
# /sbin/sfdisk -l /dev/mmcblk0 But only the first partition gets registered to a host if connected via usb so i changed /etc/usb-moded/usb-moded.ini to this: Code:
# cat /etc/usb-moded/usb-moded.ini to use sfdisk to change the first partition use this command (after devel-su): Code:
/sbin/sfdisk --no-reread /dev/mmcblk0 -N1 and to modify the 4 partition use (obviously): Code:
/sbin/sfdisk --no-reread /dev/mmcblk0 -N4 for the fourth partition for start use the end of the first partition +1 and size again something you like (probably everything that is left) and type can be anything you like, i choose L which automatically uses a Linux type for the partition. step by step execution should look something like this: (i created this log after i did the setup on my device so the settings where already there, the sfdisk output should be different for you, partition 4 most likely won't exist yet). Code:
# /sbin/sfdisk --no-reread /dev/mmcblk0 -N1 After rebooting you can format the partitions using the mkfs commands, like (after devel-su): Code:
/sbin/mkfs.vfat /dev/mmcblk0p1 Code:
# cat /etc/fstab |
Re: Repartitioning the Nokia N9
I recently repartitioned also, but I made a bit more extensive changes;
So this is how my partitition table looks like: Code:
~ #
Currently all are formatted as ext4, but as soon as I get btrfs support on ubiboot I am going to try that on my device... :D |
Re: Repartitioning the Nokia N9
I have 16GB version and i wanted to have Harmattan, Nemo and Sailfish booting from different partitions. I made one for Nemo and one for Sailfish. My table looks like this:
Code:
Disk /dev/mmcblk0: 15.8 GB, 15896412160 bytes MyDocs 4,5Gb (I dont have that much media there) rootfs 4,0Gb home 2,0Gb Alt_OS 2,5Gb (for Nemo) Sailfish 2,5 Gb I made it with KDE Partition Manager. You can see that there is some unused space, but I'm fine with it.. :D.. |
Re: Repartitioning the Nokia N9
Quote:
|
Re: Repartitioning the Nokia N9
Could you link me to a small guide on re partitioning the N9, i cant install Nemo on my N9 16GB, its says 'repartitioning failed' in Moslo. :(
|
Re: Repartitioning the Nokia N9
Quote:
|
Re: Repartitioning the Nokia N9
@evander_f
Were you successful? Afaik the moslo auto repartitioning should also work on a 16GB version version, assuming you have enough free space on MyDocs, which needs to be > 4 GB. So maybe just free some space on p1 and try again. |
Re: Repartitioning the Nokia N9
This is my first post here. I've googled my way here many times, looking for some N900 or N9 detail or another in a hurry, but I don't like to have to make web accounts to participate (total nuisance + anti-freedom). I obviously broke down and made an account to post this though, as I've been working on exactly this for a few days now. I've long had an N900 (2 actually), followed by an N9 as well, and never started doing as much as I'd have liked with them until recently (for various pathetic reasons) :( I'm so late digging in deep that it's really a major pain now, considering how Nokia double shafted us loyal, high-end, "phree phonix" customers and all. All the resources I expected to be available are fragmented, broken and/or gone. It's a real spit in the face after having spent some $1800 on their [nice] **** in the last fourish years. Dicks! Oh, what could have been... Real tragedy and all that. Anyway, most of the "docs" for this stuff at least half suck, all Winblows perspective ruined and so on too. And, in this case, they all say "hexaboot" and ****, but then use Nemo's moslo initrd to repartition a SINGLE extra partition (which, of course lamely prevents all the hexaboot boasting). I like things proper and comprehensive. Anyway, here's my N9 filesystem config so far (as seen from my notebook), but I'm not really happy with it yet. I'll probably redo/modify it at least once over the next few days (I haven't laid OSs onto the partitions yet - I did, however, temporarily install Nitdroid into /home/nitdroid [blech!]).
Code:
[root@zardoz] ~/Nokia-N9> parted /dev/sdb unit s print p1, Meego MyDocs, 5GiB p2, Meego /, 4GiB p3, Meego /home, 2GiB p5, Debian, 4GiB p6, Nemo Mobile, 4GiB p7, Sailfish OS, 4GiB p8, Firefox OS, 4GiB p9, Nitdroid, 4GiB p10, shared space, 28.7GiB And I made the filesystems as follows (suggestions for better, minimal risk eMMC tuning improvements welcome). Code:
mkfs.ext4 /dev/sdbX -I 128 -E discard -G 32 -L LabelX -O flex_bg,^huge_file The only thing that's really still annoying me is partition alignment. I'm setting this all up via sectors (so, no spooky, automagic hand holding crap) and, unfortunately, the N9 reports insufficient alignment info... Code:
cat /sys/block/mmcblk0/alignment_offset = 0 Also, I'll almost certainly switch that MyDocs partition to ext4 at some point soonish, (vfat? really? blech!) and maybe combine it with /home. I'd like to change its stupid Winblows originated name too, but I'd have to dig around for lots of hardcoded breakage first, and maybe never find it all. Ug. And I'd like to put the three original filesystems into a sane order too; root first, of course. Vfat MyDocs (double blech!) is partition one?!!1111 Really? What kind of Winblows cretins did they have designing on this thing? I love it, warts and all, of course, but this stuff is downright offensive to the sensibilities. And don't even let me start on that aegis Treacherous Computing BS. Grr!!!!! Anyway, sorry I blathered and bitched so much along the way here, but I've built up a lot of issues all isolated in my cave over the years. lol ;) L8r -K |
Re: Repartitioning the Nokia N9
Also, how much total flash memory your N9 has (16 or 64G) is definitely irrelevant to the autopartition.sh script in moslo's initrd... and it's actual size requirements are...
Code:
### Calculate and check partition sizes and limits |
Re: Repartitioning the Nokia N9
Welcome aboard amonk.
What did you want to tell us??? ;) One thing about amounts of partitions on N9/00: it does not make sense to create more than 7 partitions (incl. the extended one) due to restrictions of kernel to 8 mmcblk0 devices. Fix exists, but would need self compiled kernel ... |
All times are GMT. The time now is 13:04. |
vBulletin® Version 3.8.8