Reply
Thread Tools
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#61
Looks good so far!
This is expected output, re-reading of the partition table is beyond crippled maemo linux. The solution is to reboot.
Please now reboot and report back
 

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
#62
Originally Posted by michaaa62 View Post
Looks good so far!
This is expected output, re-reading of the partition table is beyond crippled maemo linux. The solution is to reboot.
Please now reboot and report back

Hi

I restart but the differences did not


Code:
/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 #
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#63
Sad news!
Now try if the partition table sticks to the device
Code:
sudo gainroot
sfdisk -l /dev/mmcblk0
If this works finally we might start erasing the part of the card partitioned for optfs and then rebuild that partition.
 

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
#64
Originally Posted by michaaa62 View Post
Sad news!
Now try if the partition table sticks to the device
Code:
sudo gainroot
sfdisk -l /dev/mmcblk0
If this works finally we might start erasing the part of the card partitioned for optfs and then rebuild that partition.



Thank you

Now :



Code:
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 # sfdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 982528 cylinders, 4 heads, 16 sectors/track
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
/home/user #

Last edited by azad1top; 2012-09-10 at 17:22.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#65
Seems like we are getting somewhere.

Code:
sudo gainroot
mkfs.ext3 -S -b 4096 /dev/mmcblk0p2
Try to check the filesystem afterwards
Code:
fsck -af /dev/mmcblk0p2
If this is successfull, reboot and check the device
Code:
mount 
df 
free
--------------------------------------------------------------------------------


If this again fails, ONLY, if it fails!
Now wipe the second partition
Code:
sudo gainroot
dd if=/dev/zero of=/dev/mmcblk0 seek=44400704 count=16777216 bs=512 conv=noerror
This command takes a while, be patient please. Then
Code:
sudo gainroot
mkfs.ext3 -c -L optfs /dev/mmcblk0p2
Again try a file system check here
Code:
fsck -af /dev/mmcblk0p2
to be on the safe side.
This should have prepared the device for the reflash!
 

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
#66
[QUOTE=michaaa62;1264344]Seems like we are getting somewhere.



Not to format mmblk0p2 There are problems

The result of this 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.

~ $ Seems like we are getting somewhere. 
-sh: Seems: not found
~ $ 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 -S -b 4096 /dev/mmcblk0p2
mke2fs 1.41.3.maemo0 (12-Oct-2008)
Filesystem label=
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

Creating journal (32768 blocks): mkfs.ext3: File exists 
	while trying to create journal

++++++++++++++++++++++++++++++++++++++++++++

/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 # exit

+++++++++++++++++++++++++++++++++++++++++++++

~ $ mount 
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,noatime,size=1024k)
tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
none on /dev type tmpfs (rw,noatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k)
nodev on /sys/kernel/debug type debugfs (0)
/dev/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir)
/dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir)


+++++++++++++++++++++++++++++++++++++++++++++

~ $ df 

Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                  233344    227260      1800  99% /
ubi0:rootfs             233344    227260      1800  99% /
tmpfs                     1024        80       944   8% /tmp
tmpfs                      256        80       176  31% /var/run
none                     10240        80     10160   1% /dev
tmpfs                    65536         4     65532   0% /dev/shm
/dev/mmcblk1p1         3864680    674180   3190500  17% /media/mmc1
/dev/mmcblk0p1        22197568    320064  21877504   1% /home/user/MyDocs


+++++++++++++++++++++++++++++++++++++++++++++

~ $ free
              total         used         free       shared      buffers
  Mem:       245540       221564        23976            0         2008
 Swap:       786424       103260       683164
Total:      1031964       324824       707140
~ $ 

+++++++++++++++++++++++++++++++++++++++++++++

~ $ 
~ $ 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/mmcblk0 seek=44400704 count=16777216 bs=512 conv=noerror
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binary

Usage: dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N]
	[seek=N]

+++++++++++++++++++++++++++++++++++++++++++++

/home/user # exit

+++++++++++++++++++++++++++++++++++++++++++++


~ $ 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 -c -L optfs /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 # 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 03:38.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#67
The dd command had failed, but the command runs fine on my N900

Try the command please without the conv=noerror part.
 

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
#68
Originally Posted by michaaa62 View Post
The dd command had failed, but the command runs fine on my N900

Try the command please without the conv=noerror part.


****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 # dd if=/dev/zero of=/dev/mmcblk0 seek=44400704 count=16777216 bs=512
what is your porpuse from this commands please help me to create patition thats my important problem please help me about that from first action
 
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#69
Originally Posted by michaaa62 View Post
The dd command had failed, but the command runs fine on my N900

Try the command please without the conv=noerror part.


****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 # dd if=/dev/zero of=/dev/mmcblk0 seek=44400704 count=16777216 bs=512

Last edited by azad1top; 2012-09-11 at 04:36.
 
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#70
what is your purpose from this commands please help me to create partition that's my important problem please help me about that from first action!!!!!
 
Reply


 
Forum Jump


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