Active Topics

 


Reply
Thread Tools
Posts: 80 | Thanked: 1 time | Joined on Aug 2011 @ Egypt
#1
Hi there,,,
I posted many threads in this forum for two months explaining that i've problem with my EMMC, However i could see the original size of it "27GB MyDocs and 5GB Applicable memory"
I think i know where's the problem now
After i applied this thread on wiki :http://wiki.maemo.org/Repartitioning..._compatible.29
I entered this command line and i got this error "mounting /dev/mmcblk0p2 on /mnt failed: Invalid argument"
I tried this "mount -t ext3 /dev/mmcblk0p2 /mnt"
Gave me "Invalid argument"
I tried this "fsck -af /dev/mmcblk0p2"
and it gave me "unable to set superlock flags on /dev/mmcblk0p2"
I saw this error while restoring backupmenu image too.
Any help?
 
cooldubai's Avatar
Posts: 62 | Thanked: 16 times | Joined on Jul 2010 @ Pune, India
#2
Did u gain root access, before going for the commands?
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#3
Try fsck with a backup superblock, that might give you a fair chance.
To list the backups of the superblock created during initial make of the file system do:
Code:
sudo gainroot
dumpe2fs /dev/mmcblk0p2 | grep -i superblock
You will receive a table containing your superblocks. They are different than my example:
[1|root@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
Then pick up one of the superblocks and hand it with the -b option to fsck. From my example it would be
Code:
fsck -b 294912 -af /dev/mmcblk0p2
Hope it get you further on that problematic partition.
 
Posts: 80 | Thanked: 1 time | Joined on Aug 2011 @ Egypt
#4
Originally Posted by michaaa62 View Post
Try fsck with a backup superblock, that might give you a fair chance.
To list the backups of the superblock created during initial make of the file system do:
Code:
sudo gainroot
dumpe2fs /dev/mmcblk0p2 | grep -i superblock
You will receive a table containing your superblocks. They are different than my example:
Then pick up one of the superblocks and hand it with the -b option to fsck. From my example it would be
Code:
fsck -b 294912 -af /dev/mmcblk0p2
Hope it get you further on that problematic partition.
Thanks for replying

It gave me "unable to set superblock flags on /dev/mmcblk0p2"
Is that hardware problem?
And another question.... mmcblk0p2 is a part of internal EMMC?
Is there any solution?
Thx again...
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#5
I want to encourage you to not write down the error messages or to describe them, but copy and paste them please, because these error messages are meaningful!
If you are somehow unable to paste things here please redirect the output of the commands to a file and attach it here. The redirection writes nothing to the screen, so every command seems to die silently, but it is writing the output to a file.
Example:
Code:
sudo gainroot
sfdisk -l > partitiontable.txt
The first command works as usual, the second one creates the file partitiontable.txt and redirects the output of the 'sfdisk -l' command to it.

Please attach the partitiontable.txt from the above example here!
 
Posts: 80 | Thanked: 1 time | Joined on Aug 2011 @ Egypt
#6
Originally Posted by michaaa62 View Post
I want to encourage you to not write down the error messages or to describe them, but copy and paste them please, because these error messages are meaningful!
If you are somehow unable to paste things here please redirect the output of the commands to a file and attach it here. The redirection writes nothing to the screen, so every command seems to die silently, but it is writing the output to a file.
Example:
Code:
sudo gainroot
sfdisk -l > partitiontable.txt
The first command works as usual, the second one creates the file partitiontable.txt and redirects the output of the 'sfdisk -l' command to it.

Please attach the partitiontable.txt from the above example here!
"sudo gainroot
dumpe2fs /dev/mmcblk0p2 | grep -i superblock"
Command line "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"
After 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"

What should i do?
Thx in advance...
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#7
Now try to run
Code:
sudo gainroot
fsck -b 294912 -af /dev/mmcblk0p2
to check the file system with one of the backup superblocks.
 
Posts: 80 | Thanked: 1 time | Joined on Aug 2011 @ Egypt
#8
Originally Posted by michaaa62 View Post
Now try to run
Code:
sudo gainroot
fsck -b 294912 -af /dev/mmcblk0p2
to check the file system with one of the backup superblocks.
Sorry for annoying.. but it gave me the same result
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#9
Sorry to ask again!
Could you please attach the partition table as in post #5 above?
Also try to format the partition again, IF no data is on that partition, that would be destroyed.
 
Posts: 80 | Thanked: 1 time | Joined on Aug 2011 @ Egypt
#10
Originally Posted by michaaa62 View Post
Sorry to ask again!
Could you please attach the partition table as in post #5 above?
Also try to format the partition again, IF no data is on that partition, that would be destroyed.
I attached partitiontable.txt in attachments.
But how can i format this partition?

Thanks in advance
Attached Files
File Type: txt partitiontable.txt (376 Bytes, 154 views)
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:07.