Internal Storage Not Mounted

bambooze

Member
Jun 25, 2011
7
0
0
Hey,

My Captivate will not boot and goes directly to CWM-based Recovery v6.0.1.5.

I was on one of the early november CM10 nightlies.

Once there I can see the following from adb:
boot.txt:
Reading all physical volumes. This may take a while...
No volume groups found
No volume groups found
No volume groups found
mount: mounting /dev/lvpool/system on /system failed: No such file or directory
cat: can't open '/sdcard/cyanogenmod.cfg': No such file or directory
umount: can't umount /system: Invalid argument
cpio: data not created: newer or same age file exists
cpio: dev not created: newer or same age file exists
cpio: proc not created: newer or same age file exists
cpio: sys not created: newer or same age file exists
cpio: system not created: newer or same age file exists
recovery.log
Starting recovery on Sat Jan 1 02:17:44 2005
framebuffer: fd 4 (480 x 800)
CWM-based Recovery v6.0.1.5
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null) 0
1 /recovery mtd recovery (null) 0
2 /boot mtd boot (null) 0
3 /radio mtd radio (null) 0
4 /data ext4 /dev/lvpool/userdata (null) -16384
5 /cache yaffs2 cache (null) 0
6 /datadata yaffs2 datadata (null) 0
7 /sdcard vfat /dev/block/mmcblk0p1 (null) 0
8 /system ext4 /dev/lvpool/system (null) 0
9 /external_sd vfat /dev/block/mmcblk1p1 (null) 0

W:Unable to get recovery.fstab info for /emmc during fstab generation!
W:Unable to get recovery.fstab info for /sd-ext during fstab generation!
I:Completed outputting fstab.
I:processing arguments.
I:Checking arguments.
I:device_recovery_start()
Command: "/sbin/recovery"

ro.boot.serialno=3535F8DAB3FA00EC
ro.serialno=3535F8DAB3FA00EC
ro.bootmode=unknown
ro.baseband=unknown
ro.bootloader=unknown
ro.hardware=aries
ro.revision=48
ro.emmc=0
ro.boot.emmc=0
ro.factorytest=0
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=1
persist.sys.usb.config=mass_storage,adb
persist.sys.vold.switchexternal=1
ro.build.id=JZO54K
ro.build.display.id=cm_captivatemtd-userdebug 4.1.2 JZO54K eng..20121108.220709
test-keys
ro.build.version.incremental=eng..20121108.220709
ro.build.version.sdk=16
ro.build.version.codename=REL
ro.build.version.release=4.1.2
ro.build.date=Thu Nov 8 22:07:33 PST 2012
ro.build.date.utc=0
ro.build.type=userdebug
ro.build.user=
ro.build.host=cyanogenmod
ro.build.tags=test-keys
ro.product.model=SGH-I897
ro.product.brand=samsung
ro.product.name=SGH-I897
ro.product.device=SGH-I897
ro.product.board=aries
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=samsung
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=s5pc110
ro.build.product=SGH-I897
ro.build.description=SGH-I897-user 2.3.5 GINGERBREAD UCKK4 release-keys
ro.build.fingerprint=samsung/SGH-I897/SGH-I897:2.3.5/GINGERBREAD/UCKK4:user/rele
ase-keys
ro.build.characteristics=default
ro.cm.device=captivatemtd
rild.libpath=/system/lib/libsec-ril.so
rild.libargs=-d /dev/ttyS0
ro.sf.lcd_density=240
ro.rommanager.developerid=cyanogenmodnightly
keyguard.no_require_sim=true
ro.url.legal=***REDACTED BECAUSE OF LINK FILTER**
ro.url.legal.android_privacy=***REDACTED BECAUSE OF LINK FILTER**
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.cm.version=10-20121109-NIGHTLY-captivatemtd
ro.modversion=10-20121109-NIGHTLY-captivatemtd
ro.config.ringtone=CyanTone.ogg
ro.config.notification_sound=CyanMessage.ogg
ro.config.alarm_alert=CyanAlarm.ogg
ro.opengles.version=131072
wifi.interface=wlan0
ro.telephony.ril_class=SamsungRIL
ro.telephony.ril.v3=icccardstatus,datacall,signalstrength,facilitylock
mobiledata.interfaces=pdp0,eth0,gprs,ppp0
ro.vold.switchablepair=/mnt/emmc,/mnt/sdcard
ro.com.google.locationfeatures=1
ro.com.google.networklocation=1
ro.kernel.android.checkjni=0
dalvik.vm.checkjni=false
ro.vold.umsdirtyratio=20
dalvik.vm.dexopt-data-only=1
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.heapsize=128m
ro.carrier=unknown
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.adb.qemud=1
dalvik.vm.lockprof.threshold=500
dalvik.vm.dexopt-flags=m=y
net.bt.name=Android
net.change=net.tcp.buffersize.gprs
dalvik.vm.stack-trace-file=/data/anr/traces.txt
init.svc.ueventd=running
net.tcp.buffersize.default=4096,87380,110208,4096,16384,110208
net.tcp.buffersize.wifi=4095,87380,110208,4096,16384,110208
net.tcp.buffersize.umts=4094,87380,110208,4096,16384,110208
net.tcp.buffersize.edge=4093,26280,35040,4096,16384,35040
net.tcp.buffersize.gprs=4092,8760,11680,4096,8760,11680
init.svc.recovery=running
sys.usb.config=mass_storage,adb
service.adb.root=1
init.svc.adbd=stopping
sys.usb.state=mass_storage,adb

I:Checking for extendedcommand...
I:Skipping execution of extendedcommand, file not found...
I:Can't partition unsafe device: /dev/block/mmcblk0p1
I:Can't partition unsafe device: /dev/block/mmcblk1p1
I:Can't format unknown volume: /emmc
(Note: I think recovery says CM10 20121109 as that is the version i attempted to flash from external sd card today. This issue occured Wednesday night.)

I'm not sure how this happened.
I had just finished a call maybe 10-15 mins before picking up my phone to see it in Recovery. Thought it was weird so rebooted. But again rebooted into Recovery.

I did not have an external sd card before this, but just purchased one to see if it would even recognize an SD card.

New external sd card registers as /dev/block/mmcblk0p1 aka /sdcard.
Internal Storage is no where to be found, which seems to mean /data and /system are missing.

There does not appear to be an /dev/block/mmcblk1p1 (what is mapped to /external_sd)

When I load a new CM10 nightly on the external card, I can choose the update from "sd card", but the update fails.

Is there anything I can do to recover the internal storage and/or restore my captivate(even it it means losing my files)? Is this maybe a physical issue with the internal storage?


Any help is appreciated. I can also provide more info if it is needed.
 

donclary

Member
Nov 16, 2008
25
0
0
Salinas
You did not mention that you had a nandroid backup. Given that there isn't one, my suggestion is to find one of the rooted KK4 Odin or Hiemdall packages (without bootloaders) and follow the instructions to get back to GB. You will lose all of your data going back to GB. After your phone has booted GB, reboot into recovery and reflash CM10.

Good luck!
 

bambooze

Member
Jun 25, 2011
7
0
0
I believe I have an older nandroid backup from August.

It's about 163MB in size. It's marked ICS, so I assume it's a CM9 backup.

Will look to see if I have a newer backup(I believe I have one circa early October, before a partition change in CM10).

If that fails, will try a rooted kk4 odin without bootloaders.


Can anything be salvaged (before i do the above) if I still have access to /datadata over adb?

I'll try to make copies of the "mtdblockX".

edit:
Anyone in the same boat as me following along in the future:
KK4 Odin/Heimdall with and without bootloaders

edi2:
Attempted to restore nandroid backup from August. Complained about "error while formatting /system" and "Failed to format /dev/lvpool/system: No such file or directory" and "Error mounting /system".

So will now try KK4, though idk if i will have any luck. This all seems to be writing on the external sd card rather than internal.
 
Last edited:

bambooze

Member
Jun 25, 2011
7
0
0
I think my captivate is a total brick now.

My attempted to restore from my August nandroid now has it running cwm-based recovery 6.0.1.1.

I attempted to get into download mode, and now it's stuck in a boot loop. It tries to boot recovery and fails(giving a very quick android on the floor with warning sign out of chest before rebooting, so quick hard to read text).
If I pull my external sd, then it says "waiting for sd".

Edit:

For some reason holding the three buttons allows recovery to successfully go to recovery.
Ok now the mounts all all messed up. /system is now pointing to the old /datadata.
Cannot seem to get into download mode. Will wait to see if anyone can help out.

edit2:
Am able to get into Download Mode.
Attempted to Flash the Heimdall KK4
Got error message:
Uploading KERNEL
KERNEL upload failed!
Ending session...
ERROR: Failed to send file part packet!ERROR: Failed to send end session packet!
Unsure of how to proceed. Java process is still going.

edit3:
Attempted odin KK4 one click without bootloader.
After a few attempts of not recognizing the captivate and then just seemingly hanging when it started, finally got a few successful flashes(meaning they went through).

However now, the first time it reboots into Random dot color screen, and stays there for practically ever.
I battery pull, and then it reboots like it's almost stock:
1) AT&T World Phone
2) brief Random colored dots screen
3) AT&T 3G animation screen with noise
4) Samsung Galaxy S
5) Repeat into 2), except 3 now has no noise.

May try flashing other pre-KK4 stocks and looking into this random colored screen.

Also of note is that a few times it would hang when on the cache file in Odin, and the screen would change color to purple or reddish.


edit4:
Flashed KK4 with bootloader this time. Took about 2-3 times to take, but flashed all the way and I am now booted into stock!

My guess is now there was either a partition issue or a bootloader issue or both.

Now to get back to CM10 nightlies.



edit5:

I think my internal storage is dead. It seems my flashing has now made it so that the external sd card holds all the info. This is probably the only reason this worked.
Maybe.

Anyways, I made kk4 into root(superoneclick did not seem to work, had to flash something to get root). Then I installed CWM Recovery (using heimdall method in cyanogenmod wiki for captivate). Then I flashed the latest CM10 nightly.

Problems so far:
Internal Storage is missing.
I only have an 8GB external, which is now partition into a ~2gb and ~5GB partition. Space is now very precious.
Some apps like gallery and camera no longer work, as they demand an external sd card.


Here's what my /dev/block looks like:
/dev/block # ls -la
ls -la
drwxr-xr-x 3 root root 800 Nov 12 03:03 .
drwxr-xr-x 13 root root 3020 Nov 12 03:03 ..
brw------- 1 root root 254, 0 Nov 12 03:03 dm-0
brw------- 1 root root 254, 1 Nov 12 03:03 dm-1
brw------- 1 root root 7, 0 Nov 12 03:03 loop0
brw------- 1 root root 7, 1 Nov 12 03:03 loop1
brw------- 1 root root 7, 2 Nov 12 03:03 loop2
brw------- 1 root root 7, 3 Nov 12 03:03 loop3
brw------- 1 root root 7, 4 Nov 12 03:03 loop4
brw------- 1 root root 7, 5 Nov 12 03:03 loop5
brw------- 1 root root 7, 6 Nov 12 03:03 loop6
brw------- 1 root root 7, 7 Nov 12 03:03 loop7
brw------- 1 root root 179, 0 Nov 12 03:03 mmcblk0
brw------- 1 root root 179, 1 Nov 12 03:03 mmcblk0p1
brw------- 1 root root 179, 2 Nov 12 03:03 mmcblk0p2
brw------- 1 root root 31, 0 Nov 12 03:03 mtdblock0
brw------- 1 root root 31, 1 Nov 12 03:03 mtdblock1
brw------- 1 root root 31, 2 Nov 12 03:03 mtdblock2
brw------- 1 root root 31, 3 Nov 12 03:03 mtdblock3
brw------- 1 root root 31, 4 Nov 12 03:03 mtdblock4
brw-rw---- 1 radio radio 31, 5 Nov 12 03:03 mtdblock5
brw------- 1 root root 31, 6 Nov 12 03:03 mtdblock6
drwxr-xr-x 4 root root 80 Nov 12 03:03 platform
brw------- 1 root root 1, 0 Nov 12 03:03 ram0
brw------- 1 root root 1, 1 Nov 12 03:03 ram1
brw------- 1 root root 1, 10 Nov 12 03:03 ram10
brw------- 1 root root 1, 11 Nov 12 03:03 ram11
brw------- 1 root root 1, 12 Nov 12 03:03 ram12
brw------- 1 root root 1, 13 Nov 12 03:03 ram13
brw------- 1 root root 1, 14 Nov 12 03:03 ram14
brw------- 1 root root 1, 15 Nov 12 03:03 ram15
brw------- 1 root root 1, 2 Nov 12 03:03 ram2
brw------- 1 root root 1, 3 Nov 12 03:03 ram3
brw------- 1 root root 1, 4 Nov 12 03:03 ram4
brw------- 1 root root 1, 5 Nov 12 03:03 ram5
brw------- 1 root root 1, 6 Nov 12 03:03 ram6
brw------- 1 root root 1, 7 Nov 12 03:03 ram7
brw------- 1 root root 1, 8 Nov 12 03:03 ram8
brw------- 1 root root 1, 9 Nov 12 03:03 ram9
brw------- 1 root root 253, 0 Nov 12 03:03 zram0
mmcblk0 is my 8GB external(now main storage)

I don't remember seeing dm-0,dm-1 before. Nor do i remember mmcblk0p2 existing before.
External SD is trying to map to non-existant mmcblk1p1
 
Last edited:

shal99

Member
Nov 11, 2010
9
0
0
I'm having a similar issue. I cannot flash to anything except when my external sdcard is inserted, which acts like the internal sdcard. This means that I can't take photos. I guess I can just use this temporarily and will upgrade to the Nexus 4 when it's released.
 

bambooze

Member
Jun 25, 2011
7
0
0
My internal storage does appear to be dead.

Clicking on "format" in the Storage menu on my external was not good, as it wiped android.
Some messing around later, I was able to re-purpose this video for i9000:
http://www.youtube.com/watch?v=zdMhYYdMB08

Getting back to CM10:
1) Re-partition external sd card using fdisk. (a 8GB external into a 6GB vfat and ~2GB reiserfs)
2) Using an odin3 one click KK4 with bootloaders
3) Flash Root
4) Flash CWM
5) Flash latest cm10 nightly
6) edit /system/etc/vold.fstab


My Captivate CM10 vold.fstab is different than the one presented in the video.
Here is the original:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##

#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################

#FIXME: Swap again?
# internal sdcard
dev_mount emmc /storage/sdcard1 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2

# external sdcard
dev_mount sdcard /storage/sdcard0 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0/sdcard

Here is my replaced:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##

#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################

#FIXME: Swap again?
# internal sdcard
dev_mount sdcard /storage/sdcard0 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2

# external sdcard
dev_mount emmc /storage/sdcard1 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0/sdcard
Basically swapping the two bits after dev_mount. (sdcard /storage/sdcard0) and (emmc /storage/sdcard1)


I did this while over ADB while in CWM, so /system was already read-write.

I rebooted, and now CM10 android thinks my external is my internal(so camera, gallery etc work).

edit:
For the poster above, since you already have android running off of external, you probably just need to edit the /system/etc/vold.fstab file. (copy to external sd, mount usb, edit with your favorite text editor, copy back to /system/etc/vold.fstab, and reboot)
 
Last edited:

bambooze

Member
Jun 25, 2011
7
0
0
I would advise against upgrading to cm10.1 nightlies if you're running off of external SD card.

Just tried "cm-10.1-20121221-NIGHTLY-captivatemtd.zip " and it did not take.

Will now be repeating the steps here to get back to cm10 from scratch. (Stuck the MicroSD card into my laptop, and its asking to format, so the data is probably gone).

The last cm10 version I had was around Nov 15-16 nightly.

Will attempt to see if I can go from stock to cm10.1, if not, then try again with last CM10(Last available on get.cm looks to be CM10 stable).

edit:
Did not try Cm10.1

However, CM10 Stable does not appear to have /system/etc/vold.fstab, which is the final piece of the puzzle.

running grep -r "mmc" * hoping to find a new file location for it.

edit2:
Nevermind, did not mount /system before looking for /system/etc/vold.fstab
 
Last edited: