Reply
Thread Tools
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#81
I doubt that a flash would succeed...
Please, please, please proof me wrong.

Seems like the second partition still has bad blocks at the beginning. the mkfs.ext3 command could mark blocks as unusable, but not right at the start. So we try to shrink the second partition even more and retry the making of the file system.
Code:
sudo gainroot

echo "unit: sectors
> > /dev/mmcblk0p1 : start= 64, size= 44400640, Id=c
> > /dev/mmcblk0p2 : start= 44400864, size= 16777056, 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
You need to reboot every time after changing the partition table. Then
Code:
sudo gainroot
mkfs.ext3 -L optfs -cc /dev/mmcblk0p2
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#82
michaaa62, hats off to you for persisting with helping out the OP!

Its been close to a month and you have stayed on! You are the type of person who makes this community so great!

Thanks
 

The Following User Says Thank You to thedead1440 For This Useful Post:
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#83
Originally Posted by michaaa62 View Post
I doubt that a flash would succeed...
Please, please, please proof me wrong.

Seems like the second partition still has bad blocks at the beginning. the mkfs.ext3 command could mark blocks as unusable, but not right at the start. So we try to shrink the second partition even more and retry the making of the file system.
Code:
sudo gainroot

echo "unit: sectors
> > /dev/mmcblk0p1 : start= 64, size= 44400640, Id=c
> > /dev/mmcblk0p2 : start= 44400864, size= 16777056, 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
You need to reboot every time after changing the partition table. Then
Code:
sudo gainroot
mkfs.ext3 -L optfs -cc /dev/mmcblk0p2

hi michaaa62


Command to create a new partition did
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 # echo "unit: sectors
> > > /dev/mmcblk0p1 : start= 64, size= 44400640, Id=c
> > > /dev/mmcblk0p2 : start= 44400864, size= 16777056, Id=83> > > /dev/mmcblk0p3 : start= 61177920, size= 1572864, Id=82
> > > /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > table
/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 44400864 61177919 16777056 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 #
/home/user #
Then I run the second command.

Part of the development
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.

/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

Continue to the second order

Offer?

And results in the second command?
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#84
Lets try again!
Code:
sudo gainroot

echo "unit: sectors
> > /dev/mmcblk0p1 : start= 64, size= 44400640, Id=c
> > /dev/mmcblk0p2 : start= 44433472, size= 16744448, 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
Again reboot.
Then
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
#85
Originally Posted by michaaa62 View Post
Lets try again!
Code:
sudo gainroot

echo "unit: sectors
> > /dev/mmcblk0p1 : start= 64, size= 44400640, Id=c
> > /dev/mmcblk0p2 : start= 44433472, size= 16744448, 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
Again reboot.
Then
Code:
sudo gainroot
mkfs.ext3 -L optfs -cc /dev/mmcblk0p2


sorry


I mean that in the partition function is good or bad

Check back next command will report


Good luck
 
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#86
Test code for 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 # echo "unit: sectors
> > > /dev/mmcblk0p1 : start= 64, size= 44400640, Id=c
> > > /dev/mmcblk0p2 : start= 44433472, size= 16744448, Id=83> > > /dev/mmcblk0p3 : start= 61177920, size= 1572864, Id=82
> > > /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > table
/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 44433472 61177919 16744448 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 #
/home/user #
/home/user #
Please check for the second order
Is approved for the following command to start



[/code]Again reboot.
Then
Code:
sudo gainroot
mkfs.ext3 -L optfs -cc /dev/mmcblk0p2


Last edited by azad1top; 2012-09-22 at 11:49.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#87
Looks good!
Reboot and then
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
#88
Originally Posted by michaaa62 View Post
Looks good!
Reboot and then
Code:
sudo gainroot
mkfs.ext3 -L optfs -cc /dev/mmcblk0p2
hi michaaa62



After over 24 hours.

Consequently, the


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 #



What do you think?

Flash gets ؟؟؟
 
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#89
please help me!

(
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#90
Pm sent.
Try backupmenu and gparted from GParted-Live-CD or ubuntu- / debian-based Live-CD, please.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 04:00.