I am using honeycomb rom, and booting from an 8gb sd carb. When i use astro to browse the file structure, i do not see anything in /media/ and i don't see the memory in /dev/ (though there are many files.) I have the hidden files visible.
Is the internal memory (the actual physically unremovable memory, not the ) just inaccessible when you boot from the sdcard? or what is it called?
I am using CM7 instead of honeycomb. The internal memory under CM7 is mounted to /emmc/ instead of /media/.
Hm, there is no /emmc/ directory...
From memory media isn't mounted on boot on HC-sdcard.
You'll have to use the following commands in terminal emulator on each bootup:
su
mount /dev/block/mmcblk0p8 /media
Sent from my Desire HD using XDA App
samuelhalff said:
From memory media isn't mounted on boot on HC-sdcard.
You'll have to use the following commands in terminal emulator on each bootup:
su
mount /dev/block/mmcblk0p8 /media
Click to expand...
Click to collapse
I'm from the Linux world, so this may be misguided, but can you add entries to /etc/fstab or its equivalent to always mount the emmc partitions?
Dennis
Related
I had an idea this minute
if we are using images with a size of 1,7GB or what else... why aren't we using some tools like resize_reiserfs and so on to repartition the Internal SD and creating a new partition with native yaffs2 or ext4 on it?
I dont't really know where our ext2 images are laying but if this could be possible it should be much faster right?
That's the thing - it won't be faster. The internal SD card is pretty slow. That's why the original lagfix used a repartitioned external SD card..
r3loaded2010 said:
That's the thing - it won't be faster. The internal SD card is pretty slow. That's why the original lagfix used a repartitioned external SD card..
Click to expand...
Click to collapse
Actually, it IS faster... That's why the newer lag fix uses an image on the internal SD card
I'm also wondering why nobody's trying to mount the internal SD with ext or yaffs2 instead of rfs...
EDIT : some answers : http://forum.xda-developers.com/showthread.php?t=750663
That's right !!!
We are using a mounted image with a filesystem laying on a native filesystem.
The reason why we aren't using the whole internal SD card with yaffs2 or ext4... is we cannot partition the whole internal SD card and copy our files afterwards.
BUT... we are able to compile some tools like "fdisk", "resize_[filesystem]" for ARM to use them direcly on the system for resizing (smaller) -> creating a new one -> and format it with yaffs2 for example.
After that we have the ability to use this partition like the ones in all other lagfixes mounting, symlinking...
That's the Idea
DasLeo said:
That's right !!!
We are using a mounted image with a filesystem laying on a native filesystem.
The reason why we aren't using the whole internal SD card with yaffs2 or ext4... is we cannot partition the whole internal SD card and copy our files afterwards.
BUT... we are able to compile some tools like "fdisk", "resize_[filesystem]" for ARM to use them direcly on the system for resizing (smaller) -> creating a new one -> and format it with yaffs2 for example.
After that we have the ability to use this partition like the ones in all other lagfixes mounting, symlinking...
That's the Idea
Click to expand...
Click to collapse
Did you read what's already been written in this thread: http://forum.xda-developers.com/showthread.php?p=7739573 ??
It's been tried by mimocan already, but didn't give a better result. Please do not start new threads on topics that's already been discussed elsewhere.
okay then close this
I can't post on the development forum, but this was asked there. Basically for those running Froyo or HC off SD who want the stock (or rooted) eMMC system to recognize the same SD partition.
It was suggested that one should edit the vold.fstab file, however, this file doesn't exist in the stock (or my rooted) BN filesystem. However, vold.conf does exist in /system/etc
I just edited my vold.conf so that it reads as below (bold is added line):
Code:
## vold configuration file for zoom2
# modified for encore
volume_sdcard {
## This is the direct uevent device path to the SD slot on the device
media_path /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
partition 8
media_type mmc
##mount_point /sdcard
mount_point /media
ums_path /devices/platform/usb_mass_storage/lun0
}
volume_sdcard2 {
## Currently points to internal eMMC, assumes eMMC is formatted as FAT32
media_path /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
[B][SIZE="3"]partition 4[/SIZE][/B]
media_type mmc
##mount_point /media
mount_point /sdcard
ums_path /devices/platform/usb_mass_storage/lun1
}
I can now use the same SD card partition when booting from the SDcard or internal eMMC.
Disclaimer: If you copy this and it bricks your Nook. Don't blame it on me. I didn't make you do it.
Remove the .txt extension, make sure your SD card is out and boot off internal system, make /system writable, backup the original vold.conf either by adb pull or as below, then push the new vold.conf file.
Code:
adb shell
mount -o remount,rw /dev/block/mmcblk0p5 /system
cd /system/etc
mv vold.conf vold.conf.bak
exit
adb push vold.conf /system/etc
Shut down nook and reboot off internal eMMC, replace SD card, and voila, the same SD working partition.
But doesn't it automatically boot to the sd card
If it inside?
From 1.1 Nook Color with 1.1 ghz overclock
Canadoc said:
But doesn't it automatically boot to the sd card
If it inside?
From 1.1 Nook Color with 1.1 ghz overclock
Click to expand...
Click to collapse
Yes. If you want to boot off internal eMMC you would need to remove SD card before booting. Then install the SD after it's booted up. This allows you to use the entire SD card rather than the 100 mb that is on the boot partition of the froyo and HC SD images.
There is probably a more elegant solution, this was just mine.
Thanks for the solution!
Homer
great will have to give this a try some time
Homer_S_xda said:
Thanks for the solution!
Homer
Click to expand...
Click to collapse
You're welcome.
Stupid Question...
Do you need to partition the SD card before doing this, or will it be done already when you burn the HC image into the SD card? I'm looking to burn the HC (4 gigs) into an 8 gig card and have about 3-4 gigs free in the SD card to use.
Does anyone know if this will work with the new froyo update?
OK post http://forum.xda-developers.com/showpost.php?p=15798431&postcount=15
Has it right - I just needed to change both auto's to 4's
vold.fstab
Was:
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
Now:
dev_mount sdcard /mnt/sdcard 4 4 /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
Thanks !
hi there,
just got my nc in the past few days and have hc v4 flashed to the emmc, runs great and love it. however, there is one quirk that bugs the hell out of me -- i have a samsung vibrant, which has an internal sd and a slot for an external. the internal is mounted as /sdcard and the external as /external_sd. this is great bc you dont need the external inserted to use apps that require sdcards.
is anyone aware of a way to get our /media mounted or symlinked as /sdcard instead? (or even as a subdirectory under /sdcard). i tried everything last night, from running mount commands under terminal emulator (kept telling me my syntax was wrong when it wasn't), trying symlink (told me operation not allowed), editing /etc/vold.fstab (no dice)... i think part of the issue is that the internal eMMC is mounted as /media in the actual /init.rc script.
is there anyway for me to preempt the init.rc or and trick the OS into seeing /media under /sdcard? I have a 256MB sdcard inserted to shut up the apps that require sdcards, but i would rather use my internal storage with those (since it's there for that reason...)
any ideas?
solution is here:
http://forum.xda-developers.com/showthread.php?t=966339
This really isn't Android development related but seems too technical for the general area. Please move it if there is a more correct place for this post to be.
I had the bright idea that I could get 'extra' storage by sym linking an internal application directory to the external SDHC card.
So I copied files and tried to link:
ln -s /sdcard/sdcard2/some_app_dir /sdcard/some_app_dir
This fails. After reading some here I figured out that its because the SDHC card is formatted in FAT32 and the internal /sdcard directory is a linux type format (ext2, ext3 or ext4, not sure which).
I figure no big deal, just format the SD card as ext3 (or 2 or 4 whatever matches, I just picked 3 for my attempts).
Now I can su in terminal and type:
mount -t ext3 -o rw /dev/block/mmcblk2p1 /sdcard/sdcard2
and its mounted and everything. Life seems good.
So I exit terminal and see what I can do with 'normal' apps. No go. Figure I had a permission problem. That can be fixed.
The bigger issue is the need to open a terminal session and manually mount the SDHC card.
So my questions are 2...
Is what I'm trying to do really do-able? As in will the whole sym link and ext3 formatted SDHC card idea work?
Secondly, how do I get the SDHC card to automagically mount?
bsoplinger said:
This really isn't Android development related but seems too technical for the general area. Please move it if there is a more correct place for this post to be.
I had the bright idea that I could get 'extra' storage by sym linking an internal application directory to the external SDHC card.
So I copied files and tried to link:
ln -s /sdcard/sdcard2/some_app_dir /sdcard/some_app_dir
This fails. After reading some here I figured out that its because the SDHC card is formatted in FAT32 and the internal /sdcard directory is a linux type format (ext2, ext3 or ext4, not sure which).
I figure no big deal, just format the SD card as ext3 (or 2 or 4 whatever matches, I just picked 3 for my attempts).
Now I can su in terminal and type:
mount -t ext3 -o rw /dev/block/mmcblk2p1 /sdcard/sdcard2
and its mounted and everything. Life seems good.
So I exit terminal and see what I can do with 'normal' apps. No go. Figure I had a permission problem. That can be fixed.
The bigger issue is the need to open a terminal session and manually mount the SDHC card.
So my questions are 2...
Is what I'm trying to do really do-able? As in will the whole sym link and ext3 formatted SDHC card idea work?
Secondly, how do I get the SDHC card to automagically mount?
Click to expand...
Click to collapse
Try this yet ? I used it on a test build on the kyocera zio and it worked.
https://market.android.com/details?id=com.a0soft.gphone.app2sd
Let us know
I didn't mean that I needed to save app space since I already use app2sd but that I wanted to save space from the files some particular app saves onto internal memory by moving them to the SDHC card.
If the app(s) in question were written with the idea that there could be multiple places to store files I wouldn't need to do this but they aren't. They write to a single, fixed location that's on the internal memory of the Streak. Which means if I move those files to the SDHC I need to make them appear in their internal memory location, hence the link command in my OP.
In short,
what should vold.fstab look like to link /sdcard/external_sd to the 2nd partition on the EMMC external sdcard? (/dev/block/mmcblk0p2 is a bad idea)
Background and why you might want to do this:
3 data partitions, how best to arrange? (/mnt/emmc /mnt/sdcard & 2nd emmc partition)
My internal memory has shrunk down from 8gb to about 4gb, which is annoying but natural for flash storage.
This is no longer enough space for apps such as Sygic to store it's maps in.
Sygic looks in /mnt/sdcard & /mnt/sdcard/external_sd. These older apps are always going to be a problem so I'm looking to make /mnt/sdcard/external_sd available somehow. But which way is best?
I have 2 partitions on the EMMC sdcard and the internal SDcard is just fat32:
Internal SD = ~4gb, /mnt/sdcard
External SD partition 1 = fat32, ~10gb, /mnt/emmc
External SD partition 2 = ext3, ~5gb, currently used by link2sd in /mnt/sec I think
Click to expand...
Click to collapse
/mnt/sdcard/external_sd is unused.
I would prefer to do:
Code:
ln -s /mnt/sec/external_sd_emulated /mnt/sdcard/external_sd
...but presumably because the /mnt/sdcard is only fat32 I have permission denied. I was hoping this would work since the source for the link is ext3 even if the destination is fat32.
I could edit fstab to change that but I'd rather not if possible because that's a bit too non standard for me. If I did though... what would that be?
I guess it would be adding to vold.fstab:
Code:
dev_mount emmc /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.[B]3[/B]/mmc_host/mmc[B]2[/B]
^ but should it be a 3 or a 1 at this line? fstab -l with no output and nothing in /devices makes it hard to figure out
I would normally experiment but in this case I don't want to get it wrong. How do I find out what /mnt/asec is mounted to because df isn't showing it
Just to show I have searched, a related thread:
http://forum.xda-developers.com/showthread.php?t=941443
&
http://forum.xda-developers.com/showthread.php?t=1524831
Also a note to anyone reading this; obviously backup your vold.fstab file... but also put it somewhere that you can access easily via adb and CWM recovery if it doesn't work. I guess mounting /dev/block/mmc... might work but that would then fail if the sdcard isn't present... which would be I guess when USB mass storage mode is turned on.
Some documentation on /devices on Android would be good:
http://miuiandroid.com/community/threads/vold-fstab-modding-need-help.15576/
Same problem.
I used Galaxy S 8GB and found that it's too less space for install many game.
So I buy micro sdhc 32 GB.
I added it in vold.fstab too but it seem like does not work.
Now I used workaround by run command.
mount -o /mnt/sdcard/Android /mnt/emmc/Android/
But it's not convenient to use because if you want to plug computer via USB you must umount first unless it might have problem when mount.
So If you can find solution to add it automount external sd (micro sdcard ) at startup same as internal sd feature please guide me.
Thanks
frankind said:
I used Galaxy S 8GB and found that it's too less space for install many game.
So I buy micro sdhc 32 GB.
I added it in vold.fstab too but it seem like does not work.
Now I used workaround by run command.
mount -o /mnt/sdcard/Android /mnt/emmc/Android/
But it's not convenient to use because if you want to plug computer via USB you must umount first unless it might have problem when mount.
So If you can find solution to add it automount external sd (micro sdcard ) at startup same as internal sd feature please guide me.
Thanks
Click to expand...
Click to collapse
you're gonna need an entry to whatever the sdcard is but from /devices so it ejects properly. the thing is I I'm not 100% the syntax in my first post is correct.... the only way is to try it unless we can find a command that is equivalent to fdisk -l on linux?
An app called directorybind can do this bit running an app all the time isn't ideal and it crashes for me from time to time