Format internal SD to ext3 ? - Galaxy S II Q&A, Help & Troubleshooting

In order to allow symlinking I want to format the internal 11GB /mnt/sdcard to ext3.
One way is backupping everything to a laptop over USB, then reformatting it from Linux by gparted (or Disk Utility from Mac OS with Macfusion ext3 plugin) . So far so good.
But then remounting it on the SGS2 will probably issue an error as Android does probably not automount it.
Is the only way rooting it and then edit /etc/fstab if that exists on the device ?
Who knows ?

Hi,
how did you manage to partition the internal memory?
I too am trying to reformat it, but gparted shows the partiton as "unallocated". The external SD card also appears as "unallocated" in gparted when the phone is connected through the USB cable.
I can access all the files from the internal/external "cards" though.
PS: I'm using a Galaxy W, sorry for posting here but I couldn't find a specific section for my phone.
PS2: I found /etc/vold.fstab (there is no /etc/fstab), and the partitons are mounted like this:
-------------------------------------
## 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
dev_mount sdcard /mnt/sdcard 28 /devices/platform/msm_sdcc.2/mmc_host/mmc1
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
------------------------------
So no references to the file systems used, maybe the mount should work after reformatting?

Related

Auto Mount non-standard (ext2) sdcard

I've got a 128GB sdxc sdcard (with a Toshiba Thrive, which supports SDXC) which I recently decided to stop using exfat with (you might think SDXC only supports exfat, but truly, this Microsoft's restriction, as they are pushing they're pay to use format). Problem is, since I stopped using exfat, and tried ext2, I haven't been able to get it to mount automatically. Initially I had two partitions, one unformatted, but planned to be a FAT partition, however because of the problems I reformatted the card with only 1 partition.
Through the terminal I can mount it as root:
Code:
su
mkdir /mnt/sdcard2
mount -o rw -t ext2 /dev/block/mmcblk1p1 /mnt/sdcard2
However, even using the vold.fstab, and selecting spcific partitions, I can't get it to mount automatically.
My vold.fstab:
Code:
## Vold 2.0 fstab for tostab03
#######################
## 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
######################
# Mounts the first usable partition of the specified device
dev_mount storage /mnt/sdcard 8 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard2 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
#dev_mount sdcard /mnt/sdcard3 1 /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount usb0 /mnt/usb0 all /devices/platform/tegra-ehci.*/usb.*/sda
dev_mount usb1 /mnt/usb1 all /devices/platform/tegra-ehci.*/usb.*/sdb
dev_mount usb2 /mnt/usb2 all /devices/platform/tegra-ehci.*/usb.*/sdc
dev_mount usb3 /mnt/usb3 all /devices/platform/tegra-ehci.*/usb.*/sdd
dev_mount usb4 /mnt/usb4 all /devices/platform/tegra-ehci.*/usb.*/sde
dev_mount usb5 /mnt/usb5 all /devices/platform/tegra-ehci.*/usb.*/sdf
dev_mount usb6 /mnt/usb6 all /devices/platform/tegra-ehci.*/usb.*/sdg
dev_mount usb7 /mnt/usb7 all /devices/platform/tegra-ehci.*/usb.*/sdh
The /mnt/sdcard3 mountpoint and it's command doesn't work either.
What gives?
How can I do this?
I'm guessing this isn't too device specific, but if it is let me know.
A script is an obvious option, I already tried using the odd init.rc setup (I forget the exact path, but it links to another init.rc, anyhow this failed, presumably for permission reasons? perhaps the paths hadn't been created? Honestly, I'm not entirely sure why.)

Problem mounting Internal SD

I recently purchased Karbonn A18 and am facing problem relating to mounting of internal SD card... My phone has 2 GB internal storage and I have inserted 32 GB micro-SD in it... My phone's internal SD does not show up normally... In x-plore I need to browse to root/mnt/sdcard to access 2GB internal storage... Which means if I store any media on it, it would not show up in media players as it is a part of root directory... when I connect my phone in USB storage mode, both the drives pop up on my computer... furher, x-plore shows 2 same partitions of my 32 GB external micro-SD (see the attached screenshot)...
The following is my vold.fstab file:
Code:
## 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
Can anyone help me in mounting my internal SD as a separate drive on phone??
Hey,
I am facing a related (possibly) problem. I also have the sdcard (internal) showing up only under /mnt/sdcard, and not as a separate card. Also, I have problem installing big games (such as frontline commando or dead trigger) - market keeps crashing. Are you facing any such problems?
Any solutions or tips you have tried so far?
Cheers,
magesha
EDIT/Update: This could be a potentially serious problem, I found that I am not able to move any apps to the interal sd card storage. It says there is not enough space, although I have only used up like 100MB of the 2GB+ space. Also, it is showing up weird under root explorer. although I am able to see the main folder (/mnt/sdcard/), I am not able to see any of the contents (such as my camera pictures and other files I put from my pc). I am able to see these files from X-plore. It is very weird.
EDIT2: I put a 16GB card and it shows up under X-plore but it doesn't show up in system settings, and it doesn't open in root explorer (it says the partition is not mounted or something). I am still not able to move any apps out of the internal ROM so my phone has become very slow now

[Q] Sd card and usb storage/internal sd dissapeared after sd swap attempt

Hey!! I just recently rooted my phone(iball Andi 5c) which runs on android ics 4.0.3
Mainly to use the sd swapper so I can get more space for apps but I have seem to have made a mistake when I used some sd swapper app.As soon as I used it rebooted my phone.I thought it did what it was meant to do but instead both my ext sd card and usb storage disappeared... gone poof just like that. Now I have no storage only phone memory.I think it has something to do with the vlod.fslab or somethingy like that.
Would really appreciate it if any one can provide help!!
Oh.. and I'm kinda a noob on this android stuff so please try to explain in the simplest way possible
Thanks in advance
Here is my vlod.stab script
In case it may help which I manually rewrote by viewing my vlod.stab on another phone using my sd card in which I backed up the file just in case but I can't send due to no sd
## Vold 2.0 Generic fstab ## - San Mehat ([email protected]) ##
####################### ## Regular device mount ## ## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> ## label
## mount_point - Where the volume will be mounted ## part
first usable partition. ## <sysfs_path> - List of sysfs paths to source devices ######################
## Example of a standard sdcard mount for the emulator / Dream # Mounts the first usable partition of the specified device dev_mount sd / mnt / sdcard2 auto /devices/platform/ goldfish_mmc.1/devices/platform/mt k-sd.1/mmc_host ## Example of a dual card setup # dev_mount right_sdcard /mnt/ sdcard2 auto /devices/platform/goldfish_mmc.1/devices/platfrom/mt k-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts # dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
to make things matter's worse
seem's my system\bib\sh is not found.So now i got no root and no memory.
ANYONE PLEASE HELP

[Q] Swap Internal memory and MicroSD

Hello,
I have seen a post on G+ (https://plus.google.com/+MariuszKraus/posts/1BRdDeF9d1W) and also remember people discussing during KS that one could "swap" the Internal SD Card (in other words the space that makes up the 8GB) with the EXTERNAL SD (MicroSD) card memory.
I have already installed a 32Gb MicroSD which I have been using since I got my TS.
As I intend to put a 64Gb MicroSD in my TS and since I have already almost reached the "out of memory" state, I want to do this swap.
Has anybody tried it? Could you share the method in a step-by-step way here?
Will I end up with 8GB's of program memory (that is going to be used automatically for app installations and other android internal tasks)?
Do I need to copy the current contents of the Internal and/or External space in order to subsequently copy it back once the swap is done?
Do I also need to copy the contents of the main memory in order to copy it back afterwards or is that not affected at all?
If I do a Titanium backup, can that be used to restore everything back to normal? Will it restore to the "swapped" places?
Many thanks for any and all help
Christos
I have swapped internal sd with external sd
I have done this on my omate truesmart US extreme with 5/27 firmware with OTA update.
I will answer some of your questions in this post and if still interested I will post a how-to with my vold.fstab file.
This mod REQUIRES ROOT.
This will not change the amount of app space internal to the phone. To do that you would have to reparation the internal 8gb emmc.
This will only swap the pointer (mount point) of the internal (called sdcard) partition with the external microsd (called sdcard2).
This is best done on fresh device with out any apps moved to SD. You need to copy the contents of the internal sdcard to the external before editing the vold.fstab file.
You do not need to do anything with the main memory. The only change to it will be the edited vold.fstab.
I don't know the answer the titanium backup question. But it is not needed to perform this mod. HAVE A FULL BACK OF YOUR DEVICE by all means but this little mod is pretty simple and undo-able.
If you do the mod remember to change the SAVE location of data in your apps. For example on the truesmart the is a option to save files to internal or sdcard in settings. This will need to be set to internal if you had set it to sdcard before the swap.
Here is my edited vold.fstab file:
---------------------------------------
## 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
### - SDCARD SWAP MOD
### 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
dev_mount sdcard2 /storage/sdcard1 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard /storage/sdcard0 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
------------------------------------------------------
All that is being done is swapping the labels and mount points of the 2 "sd cards".
I suggest finding, reading, understanding another guide on the internet for a detailed how-to.

[Q]How can i swap my int & ext sd via vold? help please!

Hi Guys/Gals My Device is GameStick Running 4.1.2 android semi-Custom Firmware (which is stock minus bloat)
but because the device has only 8GB internal i wanted to swap my External Sdcard (32GB) to my internal Memory/Sdcard
however the vold.fstab is a little odd with the mount points as you'll see...
Code:
## Vold 2.0 fstab
#######################
## 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
## flags - (optional) Comma separated list of flags, must not contain '/' character
######################
# Mounts the first usable partition of the specified device
#use this line to support VIRTUAL CDROM.And you can define the directory where you want to mount
loop_mount loop /mnt/VIRTUAL_CDROM
dev_mount sdcard /storage/sdcard0/external_sdcard auto /devices/platform/AMLOGIC_CARD/card_host/memorycard0 /devices/platform/aml_sd_mmc.0 <---This is odd to me
dev_mount flash /storage/sdcard0 auto /devices/platform/mtd/mtd6/avnftlg /devices/virtual/mtd/mtd6/avnftlg <--And This
asec flash
#dev_mount sata /mnt/sata auto /devices/lm2
#media_mount usb /mnt/usb 4 /devices/lm0/usb1/
It seems the dang thing is hell bent on mounting external sd like this:
Code:
/storage/sdcard0/external_sdcard which ends up like this from root (symlinked i guess) /sdcard/external_sdcard or /mnt/sdcard/external_sdcard
im not sure why its mounted in this way but i cant get link2sd to even work in the current state as it cant find my external sd correctly i hope someone might have so ideas on how to fix this mess and how i can swap the sd card storage
so what do i change/edit to do the swap
anyone? any ideas? though this would be an easy question for xda ppl. :laugh:

Categories

Resources