|
2012-08-29
, 06:56
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#12
|
sudo gainroot sfdisk -l
/dev/mmcblk0p2 530496 817791 287296 9193472 83 Linux
start: (c,h,s) expected (1023,3,16) found (1023,63,32)
sudo gainroot fsck -af /dev/mmcblk0p2
sudo gainroot mount /dev/mmcblk0p2 /mnt
ls -al /mnt
tar -cvf /media/mmc1/opt.tar /opt cp -avx /opt/* /mnt/opt/ rm -rf /opt/* tar -cvf /media/mmc1/home.tar /home/user/ cp -avx /home/user/* /mnt/user rm -rf /home/user
umount /mnt mount -o rw,noatime,errors=continue,commit=1,data=writeback /dev/mmcblk0p2 /home mount -o bind,rbind /home/opt /opt
df -h mount
|
2012-08-29
, 12:56
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#13
|
sudo gainroot sfdisk -l
sudo gainroot fsck -af /dev/mmcblk0p2
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 # sfdisk -l 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 Disk /dev/mmcblk1: 121008 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/mmcblk1p1 0+ 121007 121008- 3872248 b W95 FAT32 /dev/mmcblk1p2 0 - 0 0 0 Empty /dev/mmcblk1p3 0 - 0 0 0 Empty /dev/mmcblk1p4 0 - 0 0 0 Empty /home/user #
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 #
|
2012-08-29
, 13:18
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#14
|
sudo gainroot dumpe2fs /dev/mmcblk0p2 | grep -i superblock
Nokia-N900:~# dumpe2fs /dev/mmcblk0p2 | grep -i superblock
dumpe2fs 1.41.3.maemo0 (12-Oct-2008)
Primary superblock at 0, Group descriptors at 1-1
Backup superblock at 32768, Group descriptors at 32769-32769
Backup superblock at 98304, Group descriptors at 98305-98305
Backup superblock at 163840, Group descriptors at 163841-163841
Backup superblock at 229376, Group descriptors at 229377-229377
Backup superblock at 294912, Group descriptors at 294913-294913
Backup superblock at 819200, Group descriptors at 819201-819201
Backup superblock at 884736, Group descriptors at 884737-884737
Backup superblock at 1605632, Group descriptors at 1605633-1605633
fsck -b 294912 -af /dev/mmcblk0p2
The Following User Says Thank You to michaaa62 For This Useful Post: | ||
|
2012-08-29
, 13:48
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#15
|
Look bad again!
Try to get a backup of the superblock for the file system check.
Here you get the list of superblocksYou get an output like this:Then check the file system with one of the backups again like thisCode:sudo gainroot dumpe2fs /dev/mmcblk0p2 | grep -i superblockHope it helps!Code:fsck -b 294912 -af /dev/mmcblk0p2
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 # dumpe2fs /dev/mmcblk0p2 | grep -i superblock dumpe2fs 1.41.3.maemo0 (12-Oct-2008) Primary superblock at 0, Group descriptors at 1-1 Backup superblock at 32768, Group descriptors at 32769-32769 Backup superblock at 98304, Group descriptors at 98305-98305 Backup superblock at 163840, Group descriptors at 163841-163841 Backup superblock at 229376, Group descriptors at 229377-229377 Backup superblock at 294912, Group descriptors at 294913-294913 Backup superblock at 819200, Group descriptors at 819201-819201 Backup superblock at 884736, Group descriptors at 884737-884737 Backup superblock at 1605632, Group descriptors at 1605633-1605633 /home/user # /home/user # /home/user # fsck -b 294912 -af /dev/mmcblk0p2 fsck 1.41.3.maemo0 (12-Oct-2008) /dev/mmcblk0p2: ext3 recovery flag is clear, but journal has data. /dev/mmcblk0p2: Recovery flag not set in backup superblock, so running journal anyway. /dev/mmcblk0p2: recovering journal /dev/mmcblk0p2: ext3 recovery flag is clear, but journal has data. /dev/mmcblk0p2: Recovery flag not set in backup superblock, so running journal anyway. fsck.ext3: unable to set superblock flags on /dev/mmcblk0p2 /home/user #
|
2012-08-29
, 15:06
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#16
|
fsck.ext3 -c -y /dev/mmcblk0p2 fsck.ext3 -r -f -y /dev/mmcblk0p2
The Following User Says Thank You to michaaa62 For This Useful Post: | ||
|
2012-08-29
, 15:32
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#17
|
Try to check the file system with a badblocks test first then repair with more forceCode:fsck.ext3 -c -y /dev/mmcblk0p2 fsck.ext3 -r -f -y /dev/mmcblk0p2
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.ext3 -c -y /dev/mmcblk0p2 e2fsck 1.41.3.maemo0 (12-Oct-2008) /dev/mmcblk0p2: recovering journal fsck.ext3: unable to set superblock flags on /dev/mmcblk0p2 /home/user # fsck.ext3 -r -f /dev/mmcblk0p e2fsck 1.41.3.maemo0 (12-Oct-2008) fsck.ext3: No such file or directory while trying to open /dev/mmcblk0p The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> /home/user #
|
2012-08-29
, 16:51
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#18
|
/home/user # fsck.ext3 -r -f /dev/mmcblk0p
sudo gainroot mount /dev/mmcblk0p2 /mnt
The Following User Says Thank You to michaaa62 For This Useful Post: | ||
|
2012-08-29
, 17:18
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#19
|
There is a typo in the last command, that is why the error message is different i am afraid. Useless to try again anyway There is no file system check possible, that looks bad, familiar and bad.
Nevertheless try to mount the partitionLets hope it worksCode:sudo gainroot mount /dev/mmcblk0p2 /mnt
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 # mount /dev/mmcblk0p2 /mnt mount: mounting /dev/mmcblk0p2 on /mnt failed: Invalid argument /home/user #
|
2012-08-30
, 06:23
|
|
Posts: 84 |
Thanked: 11 times |
Joined on Aug 2012
@ iran
|
#20
|
Before handling code
After beating now
Nothing is wrong with that first change
Instead of working with a difficult Kjash still do not understand?
Last edited by azad1top; 2012-08-29 at 06:19.