|
2013-12-02
, 16:30
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#2
|
~ # ~ # /sbin/sfdisk -l Disk /dev/mmcblk0: 1957120 cylinders, 4 heads, 16 sectors/track Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/mmcblk0p1 16 131087 131072 4194304 83 Linux /dev/mmcblk0p2 131088 262159 131072 4194304 83 Linux /dev/mmcblk0p3 262160 393231 131072 4194304 83 Linux /dev/mmcblk0p4 393232 1957119 1563888 50044416 5 Extended /dev/mmcblk0p5 393232+ 524303 131072- 4194296 83 Linux /dev/mmcblk0p6 524304+ 655375 131072- 4194296 83 Linux /dev/mmcblk0p7 655376+ 1957119 1301744- 41655800 83 Linux ~ #
The Following 5 Users Say Thank You to juiceme For This Useful Post: | ||
|
2013-12-02
, 17:05
|
Posts: 334 |
Thanked: 2,004 times |
Joined on Oct 2013
@ Fin
|
#3
|
Disk /dev/mmcblk0: 15.8 GB, 15896412160 bytes 4 heads, 16 sectors/track, 485120 cylinders Units = cylinders of 64 * 512 = 32768 bytes Device Boot Start End Blocks Id System /dev/mmcblk0p1 252 148100 4731142+ c Win95 FAT32 (LBA) Partition 1 does not end on cylinder boundary /dev/mmcblk0p2 288513 419584 4194304 83 Linux /dev/mmcblk0p3 419585 485120 2097152 83 Linux /dev/mmcblk0p4 148100 288417 4490167+ 5 Extended Partition 4 does not end on cylinder boundary /dev/mmcblk0p5 148101 212109 2048256 83 Linux /dev/mmcblk0p6 212110 288417 2441848+ 83 Linux Partition table entries are not in disk order
The Following User Says Thank You to eekkelund For This Useful Post: | ||
|
2013-12-02
, 17:33
|
Posts: 545 |
Thanked: 560 times |
Joined on Dec 2011
@ lebanon
|
#4
|
The Following User Says Thank You to myname24 For This Useful Post: | ||
|
2013-12-02
, 17:39
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#6
|
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.
The Following User Says Thank You to For This Useful Post: | ||
|
2013-12-03
, 20:04
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#7
|
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
|
2013-12-24
, 02:47
|
Posts: 5 |
Thanked: 3 times |
Joined on Dec 2013
@ cipher
|
#8
|
[root@zardoz] ~/Nokia-N9> parted /dev/sdb unit s print Model: Linux File-CD Gadget (scsi) Disk /dev/sdb: 125255680s Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1024s 10486783s 10485760s primary fat32 lba 4 10486784s 112672767s 102185984s extended lba 5 10487808s 18876415s 8388608s logical ext4 6 18877440s 27266047s 8388608s logical ext4 7 27267072s 35655679s 8388608s logical ext4 8 35656704s 44045311s 8388608s logical ext4 9 44046336s 52434943s 8388608s logical ext4 10 52435968s 112672767s 60236800s logical ext4 2 112672768s 121061375s 8388608s primary ext4 3 121061376s 125255679s 4194304s primary ext4
mkfs.ext4 /dev/sdbX -I 128 -E discard -G 32 -L LabelX -O flex_bg,^huge_file tune2fs -E mount_opts=journal_async_commit -o discard,acl,user_xattr /dev/sdbX
cat /sys/block/mmcblk0/alignment_offset = 0 cat /sys/block/mmcblk0/mmcblk0p1/alignment_offset = 0 cat /sys/block/mmcblk0/mmcblk0p2/alignment_offset = 0 cat /sys/block/mmcblk0/mmcblk0p3/alignment_offset = 0 cat /sys/block/mmcblk0/queue/physical_block_size = 512 cat /sys/block/mmcblk0/queue/logical_block_size = 512 cat /sys/block/mmcblk0/queue/minimum_io_size = 512 cat /sys/block/mmcblk0/queue/optimal_io_size = 0
|
2013-12-24
, 03:12
|
Posts: 5 |
Thanked: 3 times |
Joined on Dec 2013
@ cipher
|
#9
|
### Calculate and check partition sizes and limits MIN_HARM_FREE_SPACE=$(($NEWPART_SIZE+500*$BLOCKS_PER_MEG)) # require 500 Megs empty space MIN_HARM_PART_SIZE=$(($NEWPART_SIZE+3000*$BLOCKS_PER_MEG)) # require 3000 Megs after re-partition if [ $HARM_PART_SIZE -gt $MIN_HARM_PART_SIZE -a $HARM_FREE_SPACE -gt $MIN_HARM_FREE_SPACE ]; then
|
2013-12-24
, 09:30
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#10
|
i kind of hated that on the nokia N9 there are 3 partitions:
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:
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:
to use sfdisk to change the first partition use this command (after devel-su):
and to modify the 4 partition use (obviously):
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).
After rebooting you can format the partitions using the mkfs commands, like (after devel-su):
Last edited by liar; 2013-12-02 at 15:24.