Reply
Thread Tools
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#91
Originally Posted by michaaa62 View Post
You now should have read/write access to the data partition again, from the output, but...
Flashing is not the solution for your device!!!You have no optfs partition mounted on your device. This is critical to space on your device.

Be careful not to skip any step or to continue ignoring errors! To repair damage you do now will be more difficult to cure, but still doable.

Please try to show the partition table to verify the optfs-partition is there with the right parameters
Code:
sudo gainroot
sfdisk -l
If there is an entry in the partition table looking like this (numbers will vary!)then do
Code:
sudo gainroot
fsck -af /dev/mmcblk0p2
This will check and try to repair the partition automatically. DO NOT REBOOT NOW! If errors occur post them here.
If no errors are been put out, continue
Code:
sudo gainroot
mount /dev/mmcblk0p2 /mnt
Now look into /mnt to verify the existence of /opt and /user folders in there, there is also lost+found. They should be there.
Code:
ls -al /mnt
Now
If you find those two folders there, continue with crating a backup of the folders on your external card for safety's reasons, then copy the folders and remove the folders
Code:
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
This was the moving part.Now unmount the optfs partition and remount it to the right place
Code:
umount /mnt
mount -o rw,noatime,errors=continue,commit=1,data=writeback /dev/mmcblk0p2 /home
mount -o bind,rbind /home/opt /opt
Verify the changes
Code:
df -h
mount
Before you actually reboot, do some check, if everything works as expected.

HI .
Please help help help help help help help help help .........

The problem re-
Flash did not
A sudden launch


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. 

~ $ 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/mmcblk0p1 on /home/user/MyDocs type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir) 
/dev/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir) 
~ $ df -h 
Filesystem Size Used Available Use% Mounted on 
rootfs 227.9M 194.3M 29.4M 87% / 
ubi0:rootfs 227.9M 194.3M 29.4M 87% / 
tmpfs 1.0M 84.0k 940.0k 8% /tmp 
tmpfs 256.0k 72.0k 184.0k 28% /var/run 
none 10.0M 80.0k 9.9M 1% /dev 
tmpfs 64.0M 4.0k 64.0M 0% /dev/shm 
/dev/mmcblk0p1 21.0G 12.8G 8.2G 61% /home/user/MyDocs 
/dev/mmcblk1p1 3.7G 4.9M 3.7G 0% /media/mmc1 
~ $ free 
total used free shared buffers 
Mem: 245540 222004 23536 0 5540 
Swap: 786424 0 786424 
Total: 1031964 222004 809960 
~ $ 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: 977024 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 884864 884864 28315648 c W95 FAT32 (LBA) 
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux 
/dev/mmcblk0p3 950401 974976 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 # fsck -af /dev/mmcblk0p1 
fsck 1.41.3.maemo0 (12-Oct-2008) 
dosfsck 2.11, 12 Mar 2005, FAT32, LFN 
There are differences between boot sector and its backup. 
Differences: (offset:original/backup) 
65:01/00 
Copying backup to original 
FATs differ but appear to be intact. Using first FAT. 
/.sounds 
Contains a free cluster (31444). Assuming EOF. 
/.videos 
Contains a free cluster (31445). Assuming EOF. 
/.documents 
Contains a free cluster (31446). Assuming EOF. 
/.images 
Contains a free cluster (31447). Assuming EOF. 
/.camera 
Contains a free cluster (31448). Assuming EOF. 
/�/.sounds/:0P1:0On:0Oo:0Od:0Om 
Bad file name. 
Auto-renaming it. 
Renamed to FSCK0000.000 
/�/.sounds/:0P1:0On:0Oo:0Od:0Om 
File size is 0 bytes, cluster chain length is > 0 bytes. 
Truncating file to 0 bytes. 



 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#92
Please again try the file system check on the MyDocs partition to look if all the errors are repaired.
Code:
sudo gainroot
fsck -af /dev/mmcblk0p1
either until no more errors are shown or post the error here, if it seems not curable.
 

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


 
Forum Jump


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