Reply
Thread Tools
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#51
Originally Posted by michaaa62 View Post
Is there an error message, or is it just switching to the first partition??? I need to know lots of details before giving you some more advices, that might destroy the non-working partition for good, or bad.

not error


my problem is to make partition how i can do it please ?

Last edited by azad1top; 2012-09-06 at 12:10.
 
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#52
Please help me

michaaa62
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#53
Hi, sorry for the delay...
Here are the commands to try first:
Code:
sudo gainroot


echo "unit: sectors
 > /dev/mmcblk0p1 : start=           64, size= 44400640, Id=c
 > /dev/mmcblk0p2 : start= 44400704, size= 16777216, Id=83
 > /dev/mmcblk0p3 : start= 61177920, size=  1572864, Id=82
 > /dev/mmcblk0p4 : start=       0, size=        0, Id= 0" > table


sfdisk --no-reread /dev/mmcblk0 < table
These are just three commands. For easier copy and paste i attach a text file with them.
Reboot and report if there are changes to the fsck procedure
Code:
sudo gainroot
fsck -af /dev/mmcblk0p2
Attached Files
File Type: txt commands_azad1top_V3.txt (355 Bytes, 67 views)

Last edited by michaaa62; 2012-09-10 at 10:55. Reason: Awfully wrong command corrected!!!
 

The Following User Says Thank You to michaaa62 For This Useful Post:
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#54
Originally Posted by michaaa62 View Post
Hi, sorry for the delay...
Here are the commands to try first:
Code:
sudo gainroot


echo "unit: sectors
 > /dev/mmcblk1p1 : start=      64, size= 44400640, Id=c
 > /dev/mmcblk1p2 : start=  693761, size= 16777216, Id=83
 > /dev/mmcblk1p3 : start=  955905, size=  1572864, Id=82
 > /dev/mmcblk1p4 : start=       0, size=        0, Id= 0" > table


sfdisk --no-reread /dev/mmcblk1 < table
These are just three commands. For easier copy and paste i attach a text file with them.
Reboot and report if there are changes to the fsck procedure
Code:
sudo gainroot
fsck -af /dev/mmcblk0p2



Hello. Thank you

This open error



test disk When go to restart the scanning is



This open error



Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) 
Enter 'help' for a list of built-in commands. 

~ $ sudo gainroot 
Root shell enabled 


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) 
Enter 'help' for a list of built-in commands. 

/home/user # 
/home/user # 
/home/user # echo "unit: sectors 
> > /dev/mmcblk1p1 : start= 64, size= 44400640, Id=c 
> > /dev/mmcblk1p2 : start= 693761, size= 16777216, Id=83 
> > /dev/mmcblk1p3 : start= 955905, size= 1572864, Id=82 
> > /dev/mmcblk1p4 : start= 0, size= 0, Id= 0" > table 
/home/user # 
/home/user # 
/home/user # sfdisk --no-reread /dev/mmcblk1 < table 

Disk /dev/mmcblk1: 121008 cylinders, 4 heads, 16 sectors/track 
Old situation: 
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 

Device Boot Start End #cyls #blocks Id System 
/dev/mmcblk1p1 * 0+ 121007 121008- 3872248 c W95 FAT32 (LBA) 
/dev/mmcblk1p2 0 - 0 0 0 Empty 
/dev/mmcblk1p3 0 - 0 0 0 Empty 
/dev/mmcblk1p4 0 - 0 0 0 Empty 
Warning: given size (44400640) exceeds max allowable size (7744448) 

sfdisk: bad input 
/home/user # 
/home/user # 
/home/user #


Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) 
Enter 'help' for a list of built-in commands. 

~ $ 
~ $ sudo gainroot 
Root shell enabled 


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) 
Enter 'help' for a list of built-in commands. 

/home/user # fsck -af /dev/mmcblk0p2 
fsck 1.41.3.maemo0 (12-Oct-2008) 
/dev/mmcblk0p2: recovering journal 
fsck.ext3: unable to set superblock flags on /dev/mmcblk0p2 

/home/user # 
/home/user #

not unable to set superblock flags
Attached Images
  

Last edited by azad1top; 2012-09-09 at 19:57.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#55
The commands were wrongly pointing to the external card, sorry, should have waited a little longer before posting
I edited above post http://talk.maemo.org/showpost.php?p...3&postcount=53 and the commands text file to point to the internal card.

Again, my apologies for causing trouble.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#56
Originally Posted by michaaa62 View Post
The commands were wrongly pointing to the external card, sorry, should have waited a little longer before posting
I edited above post http://talk.maemo.org/showpost.php?p...3&postcount=53 and the commands text file to point to the internal card.

Again, my apologies for causing trouble.


Please

How do I edit?

Did not notice
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#57
I edited the commands and the file already! Just use the procedure once again from this post http://talk.maemo.org/showpost.php?p...3&postcount=53
 

The Following User Says Thank You to michaaa62 For This Useful Post:
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#58
Originally Posted by michaaa62 View Post
I edited the commands and the file already! Just use the procedure once again from this post http://talk.maemo.org/showpost.php?p...3&postcount=53

the error repeat again what should i do


Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $
~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user #
/home/user #
/home/user # echo "unit: sectors
>  > /dev/mmcblk0p1 : start=      64, size= 44400640, Id=c
>  > /dev/mmcblk0p2 : start=  693761, size= 16777216, Id=83
>  > /dev/mmcblk0p3 : start=  955905, size=  1572864, Id=82
>  > /dev/mmcblk0p4 : start=       0, size=        0, Id= 0" > table
/home/user #
/home/user #
/home/user # sfdisk --no-reread /dev/mmcblk0 < table

Disk /dev/mmcblk0: 982528 cylinders, 4 heads, 16 sectors/track
Old situation:
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/mmcblk0p1          1  693760  693760   22200320    c  W95 FAT32 (LBA)
/dev/mmcblk0p2     693761  955904  262144    8388608   83  Linux
/dev/mmcblk0p3     955905  980480   24576     786432   82  Linux swap / Solaris
/dev/mmcblk0p4          0       -       0          0    0  Empty
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/mmcblk0p1            64  44400703   44400640   c  W95 FAT32 (LBA)
/dev/mmcblk0p2        693761  17470976   16777216  83  Linux
/dev/mmcblk0p3        955905   2528768    1572864  82  Linux swap / Solaris
/dev/mmcblk0p4             0         -          0   0  Empty
Warning: partitions 1 and 2 overlap

sfdisk: I don't like these partitions - nothing changed.
(If you really want this, use the --force option.)
/home/user #

/home/user # fsck -af /dev/mmcblk0p2
fsck 1.41.3.maemo0 (12-Oct-2008)
/dev/mmcblk0p2: recovering journal
fsck.ext3: unable to set superblock flags on /dev/mmcblk0p2

/home/user #

now!!!
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#59
I could cry about the nonsense i am writing nowadays, man!
Sorry!

I changed the above post http://talk.maemo.org/showpost.php?p...3&postcount=53 for the third time, hoping that my brain now works in the same direction the N900 partitioning scheme expects...
 

The Following User Says Thank You to michaaa62 For This Useful Post:
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#60
Originally Posted by michaaa62 View Post
I could cry about the nonsense i am writing nowadays, man!
Sorry!

I changed the above post http://talk.maemo.org/showpost.php?p...3&postcount=53 for the third time, hoping that my brain now works in the same direction the N900 partitioning scheme expects...





Now

I not did partition

Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) 
Enter 'help' for a list of built-in commands. 

~ $ sudo gainroot 
Root shell enabled 


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) 
Enter 'help' for a list of built-in commands. 

/home/user # 
/home/user # 
/home/user # echo "unit: sectors 
> > /dev/mmcblk0p1 : start= 64, size= 44400640, Id=c 
> > /dev/mmcblk0p2 : start= 44400704, size= 16777216, Id=83 
> > /dev/mmcblk0p3 : start= 61177920, size= 1572864, Id=82 
> > /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > table 
/home/user # 
/home/user # 
/home/user # sfdisk --no-reread /dev/mmcblk0 < table 

Disk /dev/mmcblk0: 982528 cylinders, 4 heads, 16 sectors/track 
Old situation: 
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 

Device Boot Start End #cyls #blocks Id System 
/dev/mmcblk0p1 1 693760 693760 22200320 c W95 FAT32 (LBA) 
/dev/mmcblk0p2 693761 955904 262144 8388608 83 Linux 
/dev/mmcblk0p3 955905 980480 24576 786432 82 Linux swap / Solaris 
/dev/mmcblk0p4 0 - 0 0 0 Empty 
New situation: 
Units = sectors of 512 bytes, counting from 0 

Device Boot Start End #sectors Id System 
/dev/mmcblk0p1 64 44400703 44400640 c W95 FAT32 (LBA) 
/dev/mmcblk0p2 44400704 61177919 16777216 83 Linux 
/dev/mmcblk0p3 61177920 62750783 1572864 82 Linux swap / Solaris 
/dev/mmcblk0p4 0 - 0 0 Empty 
Warning: no primary partition is marked bootable (active) 
This does not matter for LILO, but the DOS MBR will not boot this disk. 
Successfully wrote the new partition table 

Re-reading the partition table ... 
BLKRRPART: Device or resource busy 
The command to re-read the partition table failed 
Reboot your system now, before using mkfs 

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) 
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 
(See fdisk(8).) 
/home/user #

The first recipe I want to rebuild the lost partition

Following command to format the partition I wanna

Format is required!!!!

Last edited by azad1top; 2012-09-10 at 11:40.
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:43.