Related
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
I wanted to have the fast SD Card, just to make the overall performance of my phone just a little better, and since my phone model (LG Optimus F7 everything has to be linked to SD card because the "external sd card" is a partition of the built in internal giving 1.27 gig of space - On a current gen phone! Jellybean!)
So I have a SanDisk Ultra 32 gig chip - active chip - partioned into 2 partitions - 1 Fat 32 and 1 ext4
The new card is a Micro Center Circle(10) HC 32 gig chip - partitioned into 2 partitions - 1 fat 32, and 1 ext 4
I have a multi-card reader for my laptop, when I try my main chip the fat32 partition can only have the files copied off, and the ext4 partition won't mount. So I can't just copy the files because any files on second mount are inaccessable. (I just thought while typing this I could makesure partition 1 is bigger than 2, use built in file manager copy all of partition 2 onto 1 on sd card, copy onto computer).
Anyway, I'll try that, but I was wondering if I transfered as much material, then made a back up of my rom, factory reset, re-installed backed up rom but with other sd card in, wouldn't the rom put the files on the sd card where they were? It won't know I switched?
Running Ubuntu Linux -
Errors I get from Terminal, etc below
Code:
####ERROR######
Error mounting /dev/sdb2 at /media/xieon/71937e1e-588a-4e44-a435-9c6485d066c3: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb2" "/media/xieon/71937e1e-588a-4e44-a435-9c6485d066c3"' exited with non-zero exit status 32: mount: block device /dev/sdb2 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
#####ERROR#####
Hi all. So, to explain my problem the best I can I'll start from the thing that bugs me the most, the apk's won't detect obb's on the ext sd card. If you don't know this phone comes with phone storage (/sdcard), emulated storage (/storage/emulated/legacy OR /storage/emulated/0) and the 3rd is my ext sd card. Now i know this can be done because i made it work a few days ago but since then i changed some stuff around and now it won't work anymore. My main goal was to completely switch the internal phone memory with the ext sd card (because of the obb problem) but that posed even more problems.
Here's my specs:
Model: HTC Desire 310
Android ver: 4.2.2
Baseband ver: MOLY.WR8.W1315.MD.WG.MP.V19.F5.P1
Kernel ver: 3.4.5 [email protected] #1
Build num: 1.00.401.14
ROOTed with Root Genius, replaced the chinese Kinguser with SuperSU, supposedly there aren't any ROMs for this device yet and it can't be S-Off'ed (yet) according to google/forums.
Here's what I've done/tried doing so far:
- Link2SD: partitioned the 16gb card to 12gb FAT32 / 3gb ext2, configured Link2SD and linked the game (Galaxy on Fire 2 for example)
obb is on /storage/sdcard1/Android/obb but i guess Link2SD doesn't link obb files
- FolderMount: is supposed to link games with their obb, didn't seem to do a thing
- External2Internal: spent a whole day messing with it, didn't seem to change anything
- Universal Init.d + SMenager: basically i tried running .sh scripts that are supposed to mount the partitions/sd cards, and yes i edited the scripts to match my mount points ( http://forum.xda-developers.com/showthread.php?t=1886091 )
- Edited the "vold.fstab": tried ~20 different combinations of mount points and paths, and it actually changes them but not the way i want (I don't know unix that well).
>> [mount_point] (label)
- The original vold.fstab gives me (in that order): internal storage [/sdcard] (sdcard), emulated internal storage [/storage/emulated/legacy] (sdcard), ext sd card [/storage/sdcard1] (sdcard2):
Code:
dev_mount sdcard /storage/sdcard0 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
- #1 vold.fstab that gives me (in that order): internal storage [/sdcard] (sdcard), ext sd card [/storage/sdcard1] (sdcard), emulated internal storage [/storage/emulated/legacy] (sdcard2):
Code:
dev_mount sdcard /storage/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.1/mmc_host
dev_mount sdcard2 /storage/sdcard0 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.0/mmc_host
- #2 vold.fstab that gives me (in that order): internal storage [/sdcard] (sdcard), ext sd card [/storage/sdcard1] (sdcard):
Code:
dev_mount sdcard /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
BUT i can't make it completely replace the internal storage with the ext sd card.
Here's what I THINK worked: used #2 vold.fstab, linked Galaxy on Fire 2 in Link2SD, used External2Internal to swap sdcard0 and sdcard1 (tho it didn't seem to change a thing) and the game worked fine, but since then i changed vold.fstab several times and installed/uninstall mentioned apps and now i don't know why it won't work.
I tried to include as much info as I could but feel free to ask for more and if someone can modify my vold.fstab or have some other solution for me please share.
Desire 310
Hi, Zim
Any luck on swaping memories? I am looking on all the forums about this and could not figure out any working option for our phone. Did you?
Running BarePOP rom, a lollipop, Android 5
My external sdcard is using ext4 filesystem, in BarRin rom I had no issues.
I think is a fuse problem, I've tried to unmount and remount card
I can access /mnt/media_rw/external_SD
I see it's mounted properly
Code:
/dev/block/vold/179:65 /mnt/media_rw/external_SD ext4 rw,dirsync,seclabel,relatime,data=ordered 0 0
/dev/fuse /storage/external_SD fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
I've tried messing with sdcard command. changed uid & gid to 1015,1023,1035
SDCARD_RW 1015 /* external storage write access */
MEDIA_RW 1023 /* internal media storage write access */
SDCARD_ALL 1035 /* access all users external storage */
Code:
[1]+ sdcard /mnt/media_rw/external_SD /storage/external_SD 1023 1023 &
tmp-mksh-4.3# ls -la /storage/
drwx------ root root 1970-01-18 21:43 USBstorage1
drwx------ root root 1970-01-18 21:43 USBstorage2
drwx------ root root 1970-01-18 21:43 USBstorage3
drwx------ root root 1970-01-18 21:43 USBstorage4
drwx------ root root 1970-01-18 21:43 USBstorage5
drwx------ root root 1970-01-18 21:43 USBstorage6
dr-xr-xr-x root root 1970-01-18 21:43 emulated
lstat '/storage//external_SD' failed: Permission denied
lrwxrwxrwx root root 1970-01-18 21:43 sdcard0 -> /storage/emulated/legacy
I'm surprised your sd even worked! We've all had to format on a computer fat32. No matter the size.
If you're on V1, install the sd card fix in the first 3 posts. Any other version it's already installed.
Selinux mode changer, also mentioned in those posts, is another option.
If neither of those work, then you may have corrupted one or both sd's.
engine95 said:
I'm surprised your sd even worked! We've all had to format on a computer fat32. No matter the size.
If you're on V1, install the sd card fix in the first 3 posts. Any other version it's already installed.
Selinux mode changer, also mentioned in those posts, is another option.
If neither of those work, then you may have corrupted one or both sd's.
Click to expand...
Click to collapse
Version TEv1, and if I didn't know to look at /mnt/media_rw/external_SD I would say it didn't work. /storage/external_SD only can be seen in terminal. All other apps don't even see it. Even root doesn't have permission to read. SElinux set to permissive. I'm wondering if it's a kernel issue. The mount looks correct. I really don't know.
Just connected to computer, sdcard show but not accessable
jcfunk said:
Just connected to computer, sdcard show but not accessable
Click to expand...
Click to collapse
Well, this is your answer. If the card doesn't work in two different devices, it is defective.
stopeject said:
Well, this is your answer. If the card doesn't work in two different devices, it is defective.
Click to expand...
Click to collapse
Lol, I connected usb to phone, mtp
sdcard is fine, if to blame the card it would be that it's formatted to ext4.
jcfunk said:
Lol, I connected usb to phone, mtp
sdcard is fine, if to blame the card it would be that it's formatted to ext4.
Click to expand...
Click to collapse
Sorry, I didn't notice that your card was formatted to ext4. However, when connected to a Windows PC you had to get a message that the card needs formatting. It shouldn't be identified as "not accessible".
stopeject said:
Sorry, I didn't notice that your card was formatted to ext4. However, when connected to a Windows PC you had to get a message that the card needs formatting. It shouldn't be identified as "not accessible".
Click to expand...
Click to collapse
Yes, so true, windows sucks. I use linux.
I binded /mnt/media_rw/external_SD to /data/media/0/sd-ext
Same thing, fuse issue. I thinking it might be selinux lable issue,
ls -Z shows unlabled. Going to look into labling, googled but didn't see any info on android
Ok, compiled stock kernel with configured with selinux user disable. Also boot disable, but if disabled at boot get security warring.
Selinux, no labels was the issue. Once diabled, the /storage/external_SD became readable
I am not familiar with a fair amount of what I've read in this thread (particularly the Linux commands and the mount points). That said, I'm in bliss pop ROM, and tried to get my podcast app o save my shows to external SD. No go. I got a toast that said android doesn't have permission to write to ext SD. Is anything listed here a fix for that?
TIA
scottspa74 said:
I am not familiar with a fair amount of what I've read in this thread (particularly the Linux commands and the mount points). That said, I'm in bliss pop ROM, and tried to get my podcast app o save my shows to external SD. No go. I got a toast that said android doesn't have permission to write to ext SD. Is anything listed here a fix for that?
TIA
Click to expand...
Click to collapse
Much of this is specific to ext4 filesystem on external sd. But is useful to understand, for the mount should be same, or at less for ex-fat.
I'm willing to help, I need some info.
What filedystem does your card have?
If you can, in terminal emulator run this command.
mount | grep SD
Then put output here. Could need to sdcard fix, depends on version of Barepop
How the heck do I mount my ext2 partition?
I have an lg stylo (t-mobile) rooted
My system dirs are all under various mmcblk0p#s
My ext sd is either mounted under mmcblk1 mmcblk1p1 or mounted via mount device by name script
All I want to do is get my ext2 partition mounted and visible.
Any help would be highly appreciated.