Closed Thread
Thread Tools
Posts: 490 | Thanked: 191 times | Joined on May 2010
#321
Originally Posted by Coffee View Post
Aligatro,
Sounds great mate, could you tell me what the code would be. I have absolutely zero idea.
Much appreciated

Stephen
sorry I dunno how to do it from console. I use graphical tool called "gparted"
 
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#322
Aligatro,
From what i understand, using xterm is done via sfdisk.
As advised by Dj Steve for NITDroid setup on SD card:
sfdisk -uM /dev/mmcblk1 << EOF
,6100,C
,,L
,,
,,
EOF

Gives you a 6.1gb partition and the other is remainder.
 
Posts: 490 | Thanked: 191 times | Joined on May 2010
#323
Originally Posted by Coffee View Post
Aligatro,
From what i understand, using xterm is done via sfdisk.
As advised by Dj Steve for NITDroid setup on SD card:
sfdisk -uM /dev/mmcblk1 << EOF
,6100,C
,,L
,,
,,
EOF

Gives you a 6.1gb partition and the other is remainder.
complicated methods
 
Posts: 490 | Thanked: 191 times | Joined on May 2010
#324
You can probably manually edit the partition table dump and put it back.

sfdisk -d /dev/mmcblk1 > partition.table.dump
and the do cat partition.table.dump

it should give you something like

# partition table of /dev/mmcblk1
unit: sectors

/dev/mmcblk1 : start= 0, size= 8388608, Id= 0

and you can add partitions to it here is for example my partition table of ssd

# partition table of /dev/sda
unit: sectors

/dev/sda1 : start= 0, size= 0, Id= 0
/dev/sda2 : start= 63, size= 21012957, Id=83
/dev/sda3 : start= 21013020, size= 72196110, Id=83
/dev/sda4 : start= 93209130, size= 31824765, Id= 5
/dev/sda5 : start= 93209193, size= 31824702, Id= b

you can use http://www.t1shopper.com/tools/calculate/ tool to convert gb to kilobytes.

Last edited by aligatro; 2010-07-26 at 04:39.
 

The Following User Says Thank You to aligatro For This Useful Post:
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#325
Aligatro,
Thank you for the offer mate though way over my head and wouldn't feel safe going this road. If anyone else could assist I would be most appreciateive.

Stephen
 
Posts: 490 | Thanked: 191 times | Joined on May 2010
#326
Download this: http://gparted.sourceforge.net/download.php
burn it to cd/dvd or get http://unetbootin.sourceforge.net/ instead and let it install a cd image to a usb flash drive.
Alternatively, you can download vmware player , mount the iso from http://gparted.sourceforge.net/download.php, attach n900 as flash drive and resize from inside virtual machine.
 
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#327
Thanks anyway mate but I think I will just wait for one of these guys to reply.
I am not very good with software and bound to hit further issues and hence ask further questions, just different or similar ones. Someone on here must have the smarts to use sfdisk and be able to give me the code.
Plenty of clever cookies on here.


Thank you for your time and effort though, much appreciated.
 
Posts: 312 | Thanked: 51 times | Joined on Mar 2010 @ dubai
#328
@coffee
you can just learn from djsteves work like if he wants to partition mmcblk1p1 and mmcblkp2, well u do that with p3 and p4 and tell me how it went!
 
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#329
Anyone?
Surely some of you clever guys can assist with using sfdisk to partition the SD card on the n900?
 
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#330
Originally Posted by sepehrsfmech View Post
@coffee
you can just learn from djsteves work like if he wants to partition mmcblk1p1 and mmcblkp2, well u do that with p3 and p4 and tell me how it went!
Sorry mate, didn't see your reply until after I posted.
I don't really follow, sorry.

umount /dev/mmcblk1p1
sfdisk -uM /dev/mmcblk1 << EOF

If correct? mmcblk1 is the SD card and the p1 is the partition 1?
So are you saying it would be something like this:
umount /dev/mmcblk1p1
sfdisk -uM /dev/mmcblk1 << EOF
,3500,C
,,L
,,
,,
EOF

umount /dev/mmcblk1p2
sfdisk -uM /dev/mmcblk1 << EOF
,1900,C
,,L
,,
,,
EOF

and the 3rd partition would be the remaining?
 
Closed Thread


 
Forum Jump


All times are GMT. The time now is 03:33.