How to mount more than 1 partition that are on sdcard(For example:
I have 2 partitions on my sdcard and I want to mount them)???
Actually, I need to know how android is naming partitions(For example:
I have 2 partitions on my sdcard(name is something like mmcblk0p1, right???)and name of one is N(one letter) or Android(more letters). Will partiton name be:
mmcblk0pN(I saw something like this) or mmcblk0pAndroid(silly)????)
I have some ideas about bringing ___________(guess)
Thank's in advice!!!!!!!!!!!
Anyone???
Sent from my IDEOS S7 Slim using XDA App
Come on guys, mblaser, anyone???
Is it possible that none of you know??? Any answer will be helpful.
Sent from my IDEOS S7 Slim using XDA App
Jon2555 said:
How to mount more than 1 partition that are on sdcard(For example:
I have 2 partitions on my sdcard and I want to mount them)???
Actually, I need to know how android is naming partitions(For example:
I have 2 partitions on my sdcard(name is something like mmcblk0p1, right???)and name of one is N(one letter) or Android(more letters). Will partiton name be:
mmcblk0pN(I saw something like this) or mmcblk0pAndroid(silly)????)
I have some ideas about bringing ___________(guess)
Thank's in advice!!!!!!!!!!![/QUOT]
But this differs from kernel/device.
/dev/mmcblk is starting point in most devices i'v seen of internal memory used as storage 0p0 - first partition of first block device - system, data, cache - allways the same partition number -but not external sdcard, external cards are handled by vold - /dev/block/vold:x:y - x is allways 179 - external sd, y has nithing to do with partitions
Click to expand...
Click to collapse
Finally, thanks, today I saw something like that. I need for 2.6.32 kernel. Y is varing from 0 to 11, right? But how to locate partitions on sdcard???
Thank's for reply!!!
Sent from my GT-I5700 using Tapatalk
Jon2555 said:
Finally, thanks, today I saw something like that. I need for 2.6.32 kernel. Y is varing from 0 to 11, right? But how to locate partitions on sdcard???
Thank's for reply!!!
Sent from my GT-I5700 using Tapatalk
Click to expand...
Click to collapse
While rebooting remove sdcard, after successful boot run logcat and insert sdcard vold:179:X will show recognised volumes - thats happend on android, on linux use tail -f /var/log/kernel - on linux any usb device is shown as aliased scsi device - sdd,sde,... - on folio 100 allways vold:179:8 is first partition.
Beware - vold is propritary even when it comes with stock build of android - this is true at last for samsung galaxy 7500, htc wildfire and my last android folio 100, their are allways copied from stock rom.
Hope this helps,
M32
I got it. Thank's a lot.
Sent from my IDEOS S7 Slim using XDA App
I tried with logcat and saw that staring point is /dev/block/vold/179:17(/dev/block/vold/179:17 is /dev/block/mmcblk1p1) but it won't mount it. Partitions are in ext format(ext3 and ext2). It should mount them without problems. With RootExplorer I searched folders a bit and find that mmcblk1p2, mmcblk1p3 and mmcblk1p4 also exist. Here is logcat(part that relate to vold):
D/Vold ( 980): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/Vold ( 980): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
I/StorageNotification( 1161): Media {/mnt/sdcard/sdcard-disk0} state changed from {removed} -> {unmounted}
D/VoldCmdListener( 980): volume mount /mnt/sdcard/sdcard-disk0
I/Vold ( 980): /dev/block/vold/179:17 being considered for volume sdcard
W/logwrapper( 3190): Unable to background process (No such file or directory)
I//system/bin/fsck_msdos( 980): ** /dev/block/vold/179:17
I//system/bin/fsck_msdos( 980): Invalid signature in boot block: 0000
I/logwrapper( 980): /system/bin/fsck_msdos terminated by exit(2)
W/logwrapper( 3191): Unable to background process (No such file or directory)
D/Vold ( 980): Volume sdcard state changing 1 (Idle-Unmounted) -> 3 (Checking)
I//system/bin/e2fsck( 980): system: Superblock last mount time (Sat Sep 17 17:57:25 2011,
I//system/bin/e2fsck( 980): now = Thu Jan 1 01:14:42 2009) is in the future.
I//system/bin/e2fsck( 980): system: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
I//system/bin/e2fsck( 980): (i.e., without -a or -p options)
I/logwrapper( 980): /system/bin/e2fsck terminated by exit(4)
E/Vold ( 980): Filesystem check failed (unknown exit code 4)
E/Vold ( 980): /dev/block/vold/179:17 failed FS checks (I/O error)
D/Vold ( 980): Volume sdcard state changing 3 (Checking) -> 1 (Idle-Unmounted)
D/VoldCmdListener( 980): volume shared /mnt/sdcard ums
D/VoldCmdListener( 980): volume shared /mnt/sdcard/sdcard-disk0 ums
D/VoldCmdListener( 980): volume shared /mnt/sdcard/usb-disk0 ums
Click to expand...
Click to collapse
From this I can see that android tried to mount sdcard but with no luck. It stopped on filesystem check because (I think) it checked for sdcard(like one partition) filesystem and not for all partitions on sdcard.
Invalid signature in boot block - in many cases mounted device is broken, try format it and mount just under Linux - few weeks ago I've bought 8gb Lexar SD which was usable only in my laptop, any other device says broken SD. Now I'm on 32gb SD from scandisc and everything is working without problems. So try this card outside android - just for tests
---------- Post added at 05:07 PM ---------- Previous post was at 04:52 PM ----------
m32 said:
Invalid signature in boot block - in many cases mounted device is broken, try format it and mount just under Linux - few weeks ago I've bought 8gb Lexar SD which was usable only in my laptop, any other device says broken SD. Now I'm on 32gb SD from scandisc and everything is working without problems. So try this card outside android - just for tests
Click to expand...
Click to collapse
Vold assumes msdos on usb0/sd0 cards - then this is not this case, check .rc files in root directory and.files in /system/etc , /system/init.d for automatic mount - special case is /system/etc/vold.fstab.
How is this card partitioned? Is this SD or USB card? I can partition my cards alike.
All partitions are in ext (2,3)format and they're mounted well on Ubuntu 11.4 and I think that I got his. I'll post if something went wrong.
I came to booting process and nothing
I tried with only one partition now, it have to be /dev/block/mmcblk1p1 but it stopped on 'Android'. That means that system isn't found. I read that something like sleep(5) have to be added before something(I forgot)???
Jon2555 said:
I came to booting process and nothing
I tried with only one partition now, it have to be /dev/block/mmcblk1p1 but it stopped on 'Android'. That means that system isn't found. I read that something like sleep(5) have to be added before something(I forgot)???
Click to expand...
Click to collapse
I have formatted my sd exactly as Yours sd is formatted - /dev/block/mmcblk1=SD, /dev/block/mmcblk1p[1,2] - is a partition ext2,ext3 - both can mount under shell but not by gui where it says unknown/unformatted partition.
Command line(s) to mount:
mkdir /mnt/sdcard/p1
mount /dev/block/mmcblk1p1 /mnt/sdcard/p1
mkdir /mnt/sdcard/p2
mount /dev/block/mmcblk1p2 /mnt/sdcard/p2
Without any error.
Cyanogen has special scripts stored in /etc/init.d to do it autmagically just after system boot.
I tried on CM with no luck from terminal
Jon2555 said:
I tried on CM with no luck from terminal
Click to expand...
Click to collapse
Without shell logs (responses) nobody can help You.
Vold uses only "usable" partitions (fat32 perhaps), raw mount makes what You want or will say anything about mountpoint or device beaing mounted or commandline arguments - at lastwill say why mounting was unsucsesfull.
In my case "fdisk /dev/block/mmcblk1" "p - print partion table" (sd with only ext2 and ext3 partition) shows some warnings about unaligned partitions, but that can be ignored and nothing else, mouting works.
Another sd card - lexar 4gb sdhc class 10 - this card is unreadable by any device i have with sd slot: hp ipaq, canon scXXX (photo) or betelgeuse, but works without problems on my laptop.
Hope this helps,
m32
It's class MicroSDHC 16gb class 4 and I tried with 2.6.32 kernel-Stock rom
I'll play a little bit with it when I have time
Hey XDA Community,
I'm running into some troubles with a used Pandigital Novel tablet. I'll give a little history, I loaded a CM7 build, it (eventually) worked great. I started loading up apps, when I got a notification that I was low on disk space. I thought that odd since I replaced the internal micro SD with a 16GB class 10. I checked memory status and it says I have a maximum of 188MB (that's MEGA-bytes) and only 6MB free!
Properties-Storage shows the following:
SD Card
Total Space: 7.4GB
Available space: 7.12GB :good:
Internal storage
Total space: 188MB
Available space: 47.95MB
It looks like your script is searching for a partition file /dev/block/mmcblk1 and there isn't one there. I loaded a partition viewer app (after deleting two other apps to get some space) and it reads as follows:
Mount - None
Partition - /dev/block/mmcblk0
15193.5 MB
Mount - /sdcard
Partition - /dev/block/mmcblk0p1
305.0/7595.0 MB
Mount - None
Partition - /dev/block/mmcblk0p2
7596.7 MB
Mount - None
Partition - /dev/block/mtdblock0
2.0 MB
Mount - None
Partition - /dev/block/mtdblock1
8.0 MB
Mount - None
Partition - /dev/block/mtdblock2
1.0 MB
Mount - None
Partition - /dev/block/mtdblock3
10.0 MB
Mount - /system
Partition - /dev/block/mtdblock5
154.0/200.0 MB
Mount - /cache
Partition - /dev/block/mtdblock6
1.0/100.0 MB
Mount - /data
Partition - /dev/block/mtdblock7
140.0/168.0 MB
I tried moving apps to the SD card, but they fail... not sure why there either. I have a feeling something is really messed up in the partition tables, but I don't have the eye to see what it is or how to fix it. Guessing I need an expert to help me with a script and restore my install from backup or something. I'll keep looking around the forum, just don't want to start trying stuff and brick this thing.
Here's hoping there is a kind soul out there that can give me a hand.
~~JClouseau
Native Mount Data on Ext
Trying to get up the courage (and time) to follow the steps on XDA: Native Mount DataOnEXT. Could take some time, but would be really cool to have a couple gig for data.
I bought this 64GB SanDisk sd card (http://www.amazon.com/SanDisk-microSDXC-Memory-Adapter-SDSDQUA-064G-U46A/dp/B007WTAJTO) which was working fine in my stock ROM for a few weeks. I then flashed a custom ROM (latest stable Resurrection Remix) that didn't recognize it. When I immediately flashed back to the stock ROM it also didn't recognize the card anymore. Surely that's not an issue of physical damage, as the timing would be quite coincidental! Something happened while installing that custom ROM to change maybe partition tables or whatever on that sd card.
What tells me for sure that the card is NOT physically damaged is that I can successfully store nandroid backups to it and restore from nandroid backups on it, but only from ClockworkMod Recovery 5.5.*. I've tried many other recoveries (even the newer, touch-based ClockwordMod Recoveries), as well as a couple more ROMs and nothing else recognizes the drive at all. But clearly the drive itself isn't damaged. Unfortunately ClockworkMod Recovery 5.5.* doesn't have any sort of ability to let me connect to my computer in USB mass storage mode or otherwise get the data off of the card
I was able to restore data from the a disk dump of the card using 'photorec' recovery but it restored every one of the 90,000 files on that card (even though only about 1,000 are the ones I actually need and not 'system' or 'backup' files) into a restore directory where every file name is named like f3728467371291.gz and with all the same timestamps, so it would take me forever to figure out which files are mine, so mounting the drive would really help.
I also realize using this card with my Android may have been risky in the first place, see http://www.transformerforums.com/forum/general-discussion/28678-sandisk-64gb-microsd-woes.html, but it was working successfully and the card itself isn't damaged so there must be a way to get the data off in a sane way. (I won't use this card in future with my Android.)
I put the sd card into my Ubuntu 12.04 laptop and it didn't get recognized automatically like what happens with other sd cards. So I dig some digging and it says that the card (at /dev/mmcblk0, with partition /dev/mmcblk0p1) is 'HPFS/NTFS/exFAT' in the output below (but first I took a 'dd' disk images of both the whole card, mmcblk0, and the partition, mmcblk0p1).
Any help you could provide would be greatly appreciated. Thanks!
Code:
$ sudo dd if=/dev/mmcblk0 of=~/mmcblk0
$ sudo dd if=/dev/mmcblk0p1 of=~/mmcblk0p1
$ sudo fdisk -l ~/mmcblk0
Disk mmcblk0: 63.9 GB, 63864569856 bytes
255 heads, 63 sectors/track, 7764 cylinders, total 124735488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
mmcblk0p1 32768 124735487 62351360 7 HPFS/NTFS/exFAT
Trying to mount as NTFS but get error:
Code:
$ sudo mount -t ntfs ~/mmcblk0p1 /mnt/sdcard
NTFS signature is missing.
Failed to mount '/dev/mmcblk0p1': Invalid argument
The device '/dev/mmcblk0p1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Trying to mount as exFAT but get error:
Code:
$ sudo apt-add-repository ppa:relan/exfat
$ sudo apt-get update
$ sudo apt-get install fuse-exfat
$ sudo mount -t exfat ~/mmcblk0p1 /mnt/sdcard
FUSE exfat 0.9.8
ERROR: exFAT file system is not found.
Getting some info about the whole card:
Code:
$ sudo file -s ~/mmcblk0
/dev/mmcblk0: x86 boot sector; partition 1: ID=0x7, starthead 10, startsector 32768, 124702720 sectors, extended partition table (last)\011, code offset 0x0
Getting some info about the partition:
Code:
$ sudo file -s ~/mmcblk0p1
/dev/mmcblk0p1: x86 boot sector, code offset 0x52
Do you have any idea how I could mount this card successfully?
Hi,
could you find a solution for your problem? It seems I have a similar one. My 32GB SD is perfectly working when I use ext3/4 but not using exfat.
I have no idea how to fix it. Using ext3/4 is not the best solution due to different ownerships, permissions ecc.
Regards,
Enkidu
I wish to repartition my internal card manually.
I think to do so :
- start in recovery
- mount my external card on which I have all the tools, such as gparted or rsync
- save the 2 partitions 10 (/data) and 11 (/sdcard0) with rsync on my EXT4 external card
- umount the 2 partitions
- repartition my internal card without touching the 12 (/preload)
- restore the 2 partitions saved
But I'am not sure with the "pit"
I have a cheapo DragonTouch Y88X. I'm not looking for a custom ROM or anything - its for the kids and honestly it does everything they need, with one exception: Disney Movies Anywhere can't download videos to the external SD card.
As near as I can tell, this is an application problem - hardwired looking for /mnt/sdcard instead of using the Google API to find where the SD card is mounted, and DragonTouch was brain dead and mounted part of the internal storage to /mnt/sdcard (the actual SD card gets mounted to /mnt/extsd).
OK, so I'm not going to get Disney to change the app (and there's no setting to change where it downloads to other than "Save To/Play From SD Card"), so I started poking around how to change the mount points. I'm reasonably familiar with linux, sys admin duties and the like. But the format and options on the fstab file are a bit unfamiliar to me... All I really want to do is make the external SD card be mounted at /mnt/sdcard (and maybe mount the internal partition to something useful - maybe app cache space or something?)
I managed to get root and installed ES File Explorer, and the fstab file (/fstab.sun8i to be specific) has the following lines that I think are relevant...:
Code:
...
/devices/virtual/block/nandk auto vfat defaults wait,check,noemulatedsd,voldmanaged=sdcard:auto
/devices/platform/sunxi-mmc.2/mmc_host auto vfat defaults wait,check,noemulatedsd,voldmanagedsd=sdcard:auto
/devices/platform/sunxi-mmc.0/mmc_host /mnt/extsd vfat rw,realtime,fmask=0000,dmask=0000,wait,check,voldm anaged=extsd:auto
/devices/platform/sunxi-mmc.1/mmc_host /mnt/extsd vfat rw,realtime,fmask=0000,dmask=0000,wait,check,voldm anaged=extsd:auto
...
I don't know quite enough about either fstab or Android/DragonTouch's variant of it to know why both sdcard and extsd have two entries each... Or exactly how to swap them. I could try to change the voldmanaged=[name] entry on each - would that be safe?
Is what I'm trying to do crazy, or should this work?
Thanks