Reply
Thread Tools
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#71
The purpose is to overwrite all the data from the second partition, to erase those blocking bits, that are preventing the making of a new file system.Try this please:
Code:
sudo gainroot
dd if=/dev/zero of=/dev/mmcblk0p2 bs=512
Actual the first error suggests a typing error rather than a functional error, because the usage of a command is presented only if option to a program are wrong. Please check every letter of those commands, there might be an oddity in my localisation of fonts or letters colliding with the localization of your N900.
 

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
#72
Originally Posted by michaaa62 View Post
The purpose is to overwrite all the data from the second partition, to erase those blocking bits, that are preventing the making of a new file system.Try this please:
Code:
sudo gainroot
dd if=/dev/zero of=/dev/mmcblk0p2 bs=512
N900.


Thank you



Again, no



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 # dd if=/dev/zero of=/dev/mmcblk0p2 bs=512






**


Command is wrong?

Does not work!


 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#73
The command could take its time, may be half an hour, even an hour:
N900 is slow and to write 8GB takes long.
If you immediately get the prompt "$" back, something went wrong.
 

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
#74
Originally Posted by michaaa62 View Post
The command could take its time, may be half an hour, even an hour:
N900 is slow and to write 8GB takes long.
If you immediately get the prompt "$" back, something went wrong.


new code

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 # dd if=/dev/zero of=/dev/mmcblk0p2 bs=512
    
dd: writing '/dev/mmcblk0p2': No space left on device
16777217+0 records in
16777216+0 records out
/home/user # 
/home/user # 
/home/user #
Progress?
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#75
That is the expected output.
Now
Code:
sudo gainroot
mkfs.ext3 -L optfs -c /dev/mmcblk0p2
If you do not get any errors, then reboot and
Code:
sudo gainroot
fsck -af /dev/mmcblk0p2
If this does also run fine, the device would be ready to do the flashing, finally.
 

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
#76
Originally Posted by michaaa62 View Post
That is the expected output.
Now
Code:
sudo gainroot
mkfs.ext3 -L optfs -c /dev/mmcblk0p2
If you do not get any errors, then reboot and
Code:
sudo gainroot
fsck -af /dev/mmcblk0p2
If this does also run fine, the device would be ready to do the flashing, finally.


I still can not format


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 # mkfs.ext3 -L optfs -c /dev/mmcblk0p2 
mke2fs 1.41.3.maemo0 (12-Oct-2008) 
Filesystem label=optfs 
OS type: Linux 
Block size=4096 (log=2) 
Fragment size=4096 (log=2) 
524288 inodes, 2097152 blocks 
104857 blocks (5.00%) reserved for the super user 
First data block=0 
Maximum filesystem blocks=2147483648 
64 block groups 
32768 blocks per group, 32768 fragments per group 
8192 inodes per group 
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 

badblocks: Input/output error during ext2fs_sync_device 
Checking for bad blocks (read-only test): done 
Writing inode tables: done 
ext2fs_create_resize_inode: Resize inode is corrupt while reserving blocks for online resize 
/home/user #

The second command failed





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 #

Last edited by azad1top; 2012-09-11 at 18:56.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#77
Please do
Code:
sudo gainroot
badblocks -svnf /dev/mmcblk0p2 -o /home/user/MyDocs/badblocks.txt
This will create a file with the list of all the badblocks of the internal card on that partition. Please attach that file to the next post for further examination.

Seems like some of the first blocks of that partition are corrupted, preventing the creation of a new file system...
 

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
#78
Originally Posted by michaaa62 View Post
Please do
Code:
sudo gainroot
badblocks -svnf /dev/mmcblk0p2 -o /home/user/MyDocs/badblocks.txt
This will create a file with the list of all the badblocks of the internal card on that partition. Please attach that file to the next post for further examination.

Seems like some of the first blocks of that partition are corrupted, preventing the creation of a new file system...

Hi, the file size was too large!! 62MB




I've been a part of it

1 Until 8388607 blocks






Code:


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


Until



8388598
8388599
8388600
8388601
8388602
8388603
8388604
8388605
8388606
8388607

Is there?
Hope



Last edited by azad1top; 2012-09-12 at 18:37.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#79
Looks bad, but might as well be triggered by the dd command. Lets try to change the partition table to have an offset
Code:
sudo gainroot


echo "unit: sectors
 > /dev/mmcblk0p1 : start=           64, size= 44400640, Id=c
 > /dev/mmcblk0p2 : start= 44400800, size= 16777120, 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
Reboot and try
Code:
sudo gainroot
mkfs.ext3 -L optfs -cc /dev/mmcblk0p2
 

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
#80
Originally Posted by michaaa62 View Post
Looks bad, but might as well be triggered by the dd command. Lets try to change the partition table to have an offset
Code:
sudo gainroot


echo "unit: sectors
 > /dev/mmcblk0p1 : start=           64, size= 44400640, Id=c
 > /dev/mmcblk0p2 : start= 44400800, size= 16777120, 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
Reboot and try
Code:
sudo gainroot
mkfs.ext3 -L optfs -cc /dev/mmcblk0p2

Hi !!! michaaa62




Was completed

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= 44400800, size= 16777120, 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 44400800 61177919 16777120 83 Linux
/dev/mmcblk0p3 61177920 62750783 1572864 82 Linux swap / Solaris
/dev/mmcblk0p4 0 - 0 0 Empty
Warning: partition 2 does not start at a cylinder boundary

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


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 # mkfs.ext3 -L optfs -cc /dev/mmcblk0p2
mke2fs 1.41.3.maemo0 (12-Oct-2008)
Filesystem label=optfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
524288 inodes, 2097152 blocks
104857 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2147483648
64 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

badblocks: Input/output error during ext2fs_sync_device
Testing with pattern 0xaa: done
badblocks: Input/output error during ext2fs_sync_device
Reading and comparing: done
Testing with pattern 0x55: done
badblocks: Input/output error during ext2fs_sync_device
Reading and comparing: done
Testing with pattern 0xff: done
badblocks: Input/output error during ext2fs_sync_device
Reading and comparing: done
Testing with pattern 0x00: done
badblocks: Input/output error during ext2fs_sync_device
Reading and comparing: done
Block 0 in primary superblock/group descriptor area bad.
Blocks 0 through 2 must be good in order to build a filesystem.
Aborting....
/home/user #

Now I do Flash

Last edited by azad1top; 2012-09-22 at 06:35.
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:02.