Go Back   Android Forums > Android Phones > Samsung i7500 > i7500 - All Things Root
i7500 - All Things Root Rooting, ROMS, Overclocking, etc.

test: Reply
 
LinkBack Thread Tools
Old January 11th, 2010, 09:27 PM   #1 (permalink)
Member
Thread Author (OP)
 
Join Date: Nov 2009
Location: Croatia
Posts: 102
 
Device(s): i7500@IL5
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts
Unhappy Android internal sd card partitions (or dead galaxy)

Hi,

Can anyone please check and post the output of parted from their galaxy.

Code:
adb shell
parted /dev/block/mmcblk0
print
I've kinda messed things up. Probably formatted one of the sd partitions with wrong FS. Result is that recovery (mini recovery mode) won't mount internal sd. That means i cannot put rectools on it to do a nandroid restore of my system.

Here is what log says.
Code:
[    6.228793] FAT: bogus number of reserved sectors
[    6.228845] VFS: Can't find a valid FAT filesystem on dev mmcblk0p2.
[    6.229093] init: command 'mount' r=-1(Invalid argument)
[    8.833529] init: command 'mount' r=-1(No such file or directory)
[    8.840341] init: Unable to open persistent property directory /data/property errno: 2
And if anyone has some idea how to get parted (or any other partitioning utility) working on minimal recovery, please do tell.

su is not possible (permission denied).

I didn't try to flash stock rom or anything, cause it probably won't help (as the sdcard can't be mounted). I guess my only hope is to try to correct the problem with the filesystem somehow.

Any help or any suggestion would be much appreciated.

For now the only thing I can do is to switch my phone off.

Advertisements
screaminbug is offline  
Reply With Quote
sponsored links
Old January 11th, 2010, 10:02 PM   #2 (permalink)
Member
Thread Author (OP)
 
Join Date: Nov 2009
Location: Croatia
Posts: 102
 
Device(s): i7500@IL5
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts
Default

So I didn't switch it off.

The solution is quite simple.

Code:
mkdosfs /dev/block/mmcblk0p2
(doh)

reboot

adb push still won't push to sd card for some reason (permission denied !??)

but I managed to mount it on a PC with:
Code:
echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
And copied rectools. Now just have to copy nandroid backup on sd and restore it. (hopfully it'll work)

EDIT: yes!!!
screaminbug is offline  
Last edited by screaminbug; January 11th, 2010 at 10:31 PM. Reason: it works
Reply With Quote
Old January 12th, 2010, 02:35 AM   #3 (permalink)
Senior Member
 
Rastaman-FB's Avatar
 
Join Date: Sep 2009
Location: UK
Posts: 6,113
 
Device(s): HTC Desire (depreciated) Blue Galaxy s3 (international)
Carrier: Not Provided

Thanks: 114
Thanked 1,016 Times in 838 Posts
Default

did you format that using windows or sdk?
Rastaman-FB is offline  
Reply With Quote
Old January 12th, 2010, 05:51 AM   #4 (permalink)
Member
Thread Author (OP)
 
Join Date: Nov 2009
Location: Croatia
Posts: 102
 
Device(s): i7500@IL5
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts
Default

Everything except copying backup to a pc and restoring files back on sd was done on the device's shell.

I should have just used mkdosfs in the first place. Instead I've used parted, deleted a partition, recreated partition with fat32 fs (which is the right FS), but something obviously went terribly wrong (probably someone with low-level knowledge of FSes could tell why).

Then even though I could mount this newly created partition and copy backed up files back on sd, the system couldn't mount it after reboot (and consequently couldn't do much -- since rectools are loaded from sd).

But one thing still eludes me. Why adb push something /sdcard returns "permission denied" when in recovery mode? Good thing I found a way to usb-mount the sdcard on a pc from the device's shell. Then I could just copy the files from my hard drive using standard cp command on a pc (running linux).
screaminbug is offline  
Reply With Quote
Old January 12th, 2010, 07:14 AM   #5 (permalink)
Senior Member
 
Rastaman-FB's Avatar
 
Join Date: Sep 2009
Location: UK
Posts: 6,113
 
Device(s): HTC Desire (depreciated) Blue Galaxy s3 (international)
Carrier: Not Provided

Thanks: 114
Thanked 1,016 Times in 838 Posts
Default

this is just a stab in the dark but are you about the check the chmod on sdcard folder?
Rastaman-FB is offline  
Reply With Quote
Old January 12th, 2010, 03:34 PM   #6 (permalink)
Member
Thread Author (OP)
 
Join Date: Nov 2009
Location: Croatia
Posts: 102
 
Device(s): i7500@IL5
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts
Default

Probably wouldn't even bother to check permissions if you didn't mention it. But as you mentioned it, I've gone and checked. It looks ok (drwxrwxrwx).

The funny thing is that only in recovery adb push xxxx /sdcard doesn't work. It works happily when the system is booted.

Now this doesn't pose a problem to me, but if you or anyone else is interested, I probably could poke about a bit to see what's going on here.
screaminbug is offline  
Last edited by screaminbug; January 12th, 2010 at 03:34 PM.
Reply With Quote
Old December 7th, 2010, 10:13 AM   #7 (permalink)
Member
 
Join Date: Aug 2010
Posts: 103
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 7 Times in 7 Posts
Default

were you able to fix your galaxy? I'm having the same problem here, forgot to disable lagfix before flashing. I would appreciate it if you helped me fix it.
shaahinjjj is offline  
Reply With Quote
Old August 23rd, 2012, 02:17 AM   #8 (permalink)
New Member
 
Join Date: Aug 2012
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by screaminbug View Post
So I didn't switch it off.

The solution is quite simple.

Code:
mkdosfs /dev/block/mmcblk0p2
(doh)

reboot

adb push still won't push to sd card for some reason (permission denied !??)

but I managed to mount it on a PC with:
Code:
echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
And copied rectools. Now just have to copy nandroid backup on sd and restore it. (hopfully it'll work)

EDIT: yes!!!
I got the same problem, but i have more problem, my samsung looks like not responding after boot. and while in recoveru mode, i see the internal SD Card is not wiped after i wipe it to factory mode. Can you help me ?

I am using Samsung Galaxy mini 2
reiarea is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > Samsung i7500 > i7500 - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:57 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.