Closed Thread
Thread Tools
Posts: 490 | Thanked: 191 times | Joined on May 2010
#331
Originally Posted by Coffee View Post
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?
Its gonna overwrite your flash card 3 times. So, you will get 1900 partition and second one the rest of space.
 
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#332
Originally Posted by aligatro View Post
Its gonna overwrite your flash card 3 times. So, you will get 1900 partition and second one the rest of space.
See, this is what I am saying. For guys like you, understanding his simple comments above is a given. I have no idea what he is saying and just going to get myself in strife. I'm sorry, not trying to be difficult though need someone to tell me the code required to make the three partitions.
 
Posts: 490 | Thanked: 191 times | Joined on May 2010
#333
I am gonna try to create 3 partitions inside emulator and see if it gonna work.
 

The Following User Says Thank You to aligatro For This Useful Post:
Posts: 312 | Thanked: 51 times | Joined on Mar 2010 @ dubai
#334
Originally Posted by Coffee View Post
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?
yes exactly like that
 
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#335
Are you sure, when I got invalid argument in the first line.
I tried:
sfdisk -uM /dev/mmcblk1p2 << EOF
,1900,C
,,L
,,
,,
EOF

and got: BLKRRPART: invalid argument
OK
Warning: start=7168000 - this looks like a partition rather than
the entire disk. Using fdisk on it is probably meaningless.
[use the --force option if you really want this]
 
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#336
When I do:
sfdisk -uM /dev/mmcblk1 << EOF
,3500,C
,,L
,,
,,
EOF

and then:

sfdisk -l

I see the table, it list:
mmcblk1p1 as a W95 FAT32 (LBA) 3583999+
mmcblk1p2 as LINUX 4177920
mmcblk1p3 Empty
mmcblk1p4 Empty

So I assume that works and simply sets partition 1 as close as possible to 3.5gb. Leaving the rest as partition 2.
How do I partition (split) p2 to give me p3 remaining?
or can I just set p3? I don't know how..
 
Posts: 490 | Thanked: 191 times | Joined on May 2010
#337
sfdisk -uM /dev/mmcblk1 << EOF
,3778,C
,1900,L
,2500,83
EOF

creates 3 partitions, but they don't have a proper filesystems for some reason. oO

This can be fixed by manually reformating each one

mkfs.vfat /dev/mmcblk1p1 #first one into fat32
mkfs.ext3 /dev/mmcblk1p2 #second one into ext3 (android)
mkfs.ext3 /dev/mmcblk1p3 #for easy debian . also ext3

you can copy-paste with comments, it will just ignore them
 

The Following User Says Thank You to aligatro For This Useful Post:
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#338
Much appreciated mate, will give that a go and get back to you
 
Posts: 222 | Thanked: 22 times | Joined on Jul 2010 @ Sydney Australia
#339
sorry mate, didn't work.
BLKRRPART: Device or resource busy
This disk is currently in use - repartitioning is probably a bad idea.
Unmount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
use the --force flag to overrule all checks.

Didn't look good though continued anyway.
/dev/mmcblkp1: No such file or directory.

BUGGERRRRRRR
 
Posts: 490 | Thanked: 191 times | Joined on May 2010
#340
Originally Posted by Coffee View Post
sorry mate, didn't work.
BLKRRPART: Device or resource busy
This disk is currently in use - repartitioning is probably a bad idea.
Unmount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
use the --force flag to overrule all checks.

Didn't look good though continued anyway.
/dev/mmcblkp1: No such file or directory.

BUGGERRRRRRR
try to unmount everything (external flash) first
 
Closed Thread

Thread Tools

 
Forum Jump


All times are GMT. The time now is 07:48.