maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Android] NITDroid V2 & Multiboot Development And Announcement Thread (https://talk.maemo.org/showthread.php?t=58890)

aligatro 2010-07-26 05:46

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
Quote:

Originally Posted by Coffee (Post 764814)
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.

Coffee 2010-07-26 05:49

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
Quote:

Originally Posted by aligatro (Post 764816)
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.

aligatro 2010-07-26 05:52

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
I am gonna try to create 3 partitions inside emulator and see if it gonna work.

sepehrsfmech 2010-07-26 05:57

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
Quote:

Originally Posted by Coffee (Post 764814)
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

Coffee 2010-07-26 06:09

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
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]

Coffee 2010-07-26 06:20

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
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..

aligatro 2010-07-26 06:21

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
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

Coffee 2010-07-26 06:23

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
Much appreciated mate, will give that a go and get back to you

Coffee 2010-07-26 06:51

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
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

aligatro 2010-07-26 06:54

Re: [Android] NITDroid V2 & Multiboot Development And Announcement Thread
 
Quote:

Originally Posted by Coffee (Post 764856)
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


All times are GMT. The time now is 21:59.

vBulletin® Version 3.8.8