The Following User Says Thank You to michaaa62 For This Useful Post: | ||
![]() |
2012-09-10
, 16:03
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#62
|
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
/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 #
![]() |
2012-09-10
, 16:11
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#63
|
sudo gainroot sfdisk -l /dev/mmcblk0
The Following User Says Thank You to michaaa62 For This Useful Post: | ||
![]() |
2012-09-10
, 16:42
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#64
|
Sad news!
Now try if the partition table sticks to the deviceIf this works finally we might start erasing the part of the card partitioned for optfs and then rebuild that partition.Code:sudo gainroot sfdisk -l /dev/mmcblk0
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 #
![]() |
2012-09-10
, 18:04
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#65
|
sudo gainroot mkfs.ext3 -S -b 4096 /dev/mmcblk0p2
fsck -af /dev/mmcblk0p2
mount df free
sudo gainroot dd if=/dev/zero of=/dev/mmcblk0 seek=44400704 count=16777216 bs=512 conv=noerror
sudo gainroot mkfs.ext3 -c -L optfs /dev/mmcblk0p2
fsck -af /dev/mmcblk0p2
The Following User Says Thank You to michaaa62 For This Useful Post: | ||
![]() |
2012-09-10
, 19:10
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#66
|
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 #
![]() |
2012-09-11
, 04:25
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#68
|
The dd command had failed, but the command runs fine on my N900
Try the command please without the conv=noerror part.
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
![]() |
2012-09-11
, 04:34
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#69
|
The dd command had failed, but the command runs fine on my N900
Try the command please without the conv=noerror part.
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
![]() |
2012-09-11
, 04:41
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#70
|
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