I am trying to use an external usb drive. I have added it to the vold.fstab by adding line:
Dev_mount usbdisk /mnt/usbdisk auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
I also edited init.rc.
After line #setup the global environment
Added: export EXTERNAL_STORAGE /mnt/usbdisk
Than after line: # create mountpoints
Added: mkdir /mnt/usbdisk 0000 system system
Then after line:
# symlinks ( i think)
Added: symlink /mnt/usbdisk /usbdisk
However, when i reboot my droid 2 all of the changes made to the init.rc file are gone.
What have i missed?
Sent from my DROID2 using XDA App
Related
I found the instructions on how to mount USB for Xoom. Anyone tested this on Xoom MZ604 with 3.1 Stock? Thanks.
http://blog.endeng.net/ep_blog/?p=334
The latest dev kernel is making the usb mount point to be /mnt/usbOTG, you will need to update the vold.fstab on the xoom to fix the issue.
adb pull /etc/vold.fstab
edit vold.fstab and change the following line:
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci
to
dev_mount usbdisk /mnt/usbOTG auto /devices/platform/tegra-ehci
save the file, and go back to the command line
adb remount
adb push vold.fstab /etc/vold.fstab
abd reboot
yiyehhu said:
I found the instructions on how to mount USB for Xoom. Anyone tested this on Xoom MZ604 with 3.1 Stock? Thanks.
adb pull /etc/vold.fstab
edit vold.fstab and change the following line:
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci
to
dev_mount usbdisk /mnt/usbOTG auto /devices/platform/tegra-ehci
Click to expand...
Click to collapse
Wifi only. HC 3.1, running Tiamat 1.4.2 kernel.
Mine was: "dev_mount usbdisk /mnt/usbOTG auto /devices/platform/tegra-ehci"
I edited it as suggested above, using Root Explorer. No joy. I still can't connect a USB device with a host cable. When I try to mount device in terminal, get the reply: "mount: can't read '/etc/fstab': No such file or directory" Any other suggestions?
I had the same problem, until bigrushdog shot me a boot.img with some extra package loaded.
i dunno if i can publish the download by now, but i guess BRD will upload soon for Xoom love...cuz it now works!
RinTinTigger said:
I had the same problem, until bigrushdog shot me a boot.img with some extra package loaded.
i dunno if i can publish the download by now, but i guess BRD will upload soon for Xoom love...cuz it now works!
Click to expand...
Click to collapse
Thanks for the info.
cam30era said:
Thanks for the info.
Click to expand...
Click to collapse
ya welcome....the problem...from what i understood (brd is talking a different language when it comes to android :/ )
is that not only vold.fstab is different, but also a lot files as well. so he uploaded one of his boot.img (you will need those for OTG) together with those files, flashable through recovery and it worked. but at his timezone it was 3am....he went to sleep now, but i guess hell upload that soon....
the filename was: 3G_Light_ON_Speed_autoscale.zip
Check my signature. I don't know if that helps at all but I found it on these forums and I noticed a lot of people were asking the same questions. Check it out. It looks to be an app for mounting.
gqstatus0685 said:
Check my signature. I don't know if that helps at all but I found it on these forums and I noticed a lot of people were asking the same questions. Check it out. It looks to be an app for mounting.
Click to expand...
Click to collapse
This is EXACTLY what I have been looking for. Thank you so much
how do you edit the Vold.fstab
I tried to open with Notepad but it does not show the command line that i need to edit
Editing Vold.FSTAB to mount Sdcard partition ext2
i have an sdcard with fat32 partition and ext2 partition, i can't mount the ext2 partition
editing my vold.fstab:
## 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 auto /devices/platform/goldfish_mmc.0 /devices/platform/mt6573-sd.0/mmc_host/mmc0
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mt6516-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mt6516-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 you help me find the right syntax
cam30era said:
Wifi only. HC 3.1, running Tiamat 1.4.2 kernel.
Mine was: "dev_mount usbdisk /mnt/usbOTG auto /devices/platform/tegra-ehci"
I edited it as suggested above, using Root Explorer. No joy. I still can't connect a USB device with a host cable. When I try to mount device in terminal, get the reply: "mount: can't read '/etc/fstab': No such file or directory" Any other suggestions?
Click to expand...
Click to collapse
Hi Folks
I used this
Code:
## Vold 2.0 fstab for Stingray
#######################
## 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 sdcard /mnt/external1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount usbdisk /mnt/sdcard/sdcard1 auto /devices/platform/tegra-ehci.0
on ICS to mount an external Flash Card ( The Big SDCards ) read through a USB adapter obviously /mnt/sdcard/sdcard1 must exist, I couldn't be bothered to unpack my boot.img to create a folder in /mnt
I've been looking for this for ages, who knew it was that simple...... xda has too many posts to search through!!!
:laugh:
Hi, i just install a CM7.2 in my Skyrocket and everything goes fine but the storage. it mounts the internal storage to /mnt/emmc. but i want it to mount to the /mnt/sdcard so that the camera and other software will works even without insert an external SD card.
i have follow a guide to switch the mounting line in the /system/etc/vold.fastab file.
here is the original lines:
Code:
# internal sdcard
dev_mount emmc /mnt/emmc 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0
# external sdcard
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2/mmc2
# otg sdcard
# usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0#end line
And the following is my modified lines, just simply switch the two lines:
Code:
# internal sdcard
dev_mount emmc /mnt/emmc auto /devices/platform/msm_sdcc.3/mmc_host/mmc2/mmc2
# external sdcard
dev_mount sdcard /mnt/sdcard 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0
# otg sdcard
# usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0#end line
After i did that, the internal storage mount to /mnt/sdcard correctly, and the usb storage driver works as well. after i insert a external sd card, it mount to /mnt/emmc correctly; but when i unmount it, there is a notification in task bar saying "SD card removed, please insert a new one" which can not be clear;
Anyone familiar with the code command and help me? Thanks a million
Hi there!
I managed to swap the internal sd-card (with 11 GB free space) with my external sd-card (in my case a class 10 32GB card, formatted with FAT32) at my Onda V973 V1-Tablet (with Firmware 3.0, Android 4.2.2). These are the steps to do this (you have to have a functional adb):
# kill old adb-processes
Code:
adb kill-server
# look if tablet is viewable per adb
Code:
adb devices
# copy vold.fstab to local harddisk
Code:
adb pull /system/etc/vold.fstab
# now you have to edit the vold.fstab with a text-editor as follow:
Code:
#Original:
dev_mount sdcard /mnt/sdcard auto /devices/virtual/block/nandj
dev_mount extsd /mnt/extsd auto /devices/platform/sunxi-mmc.1/mmc_host /devices/platform/sunxi-mmc.0/mmc_host
Code:
#cards swapped:
dev_mount sdcard /mnt/sdcard auto /devices/platform/sunxi-mmc.1/mmc_host /devices/platform/sunxi-mmc.0/mmc_host
dev_mount extsd /mnt/extsd auto /devices/virtual/block/nandj
# mount system-partition read/write
Code:
adb shell mount -o remount,rw /system
# write changed vold.fstab to system-partition
Code:
adb push vold.fstab /system/etc/
# reboot tablet to apply changes
Code:
adb reboot
After these steps the internal sd is fully swapped with the external and in my case I can use full 32GByte as "internal sd".
Looking for some help with the modification of the kernel from the Sero 7 Pro
Below is the kernel stock values to show location of sdcard and external sd card
Code:
on init
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /storage/sdcard1 0555 root root
export SECONDARY_STORAGE /storage/sdcard1
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /storage/sdcard1 /sdcard2
symlink /storage/sdcard1 /mnt/sdcard2
I would like to swap storage locations. Anyone want to assist? Post your edits I will compile, flash and post results.
xboxexpert said:
Looking for some help with the modification of the kernel from the Sero 7 Pro
Below is the kernel stock values to show location of sdcard and external sd card
Code:
on init
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /storage/sdcard1 0555 root root
export SECONDARY_STORAGE /storage/sdcard1
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /storage/sdcard1 /sdcard2
symlink /storage/sdcard1 /mnt/sdcard2
I would like to swap storage locations. Anyone want to assist? Post your edits I will compile, flash and post results.
Click to expand...
Click to collapse
Could you please try this?
symlink /storage/emulated/legacy /sdcard2
symlink /storage/emulated/legacy /mnt/sdcard2
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /storage/sdcard1 /sdcard
symlink /storage/sdcard1 /mnt/sdcard
angellsl said:
Could you please try this?
symlink /storage/emulated/legacy /sdcard2
symlink /storage/emulated/legacy /mnt/sdcard2
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /storage/sdcard1 /sdcard
symlink /storage/sdcard1 /mnt/sdcard
Click to expand...
Click to collapse
I did that and then flashed yet it had no effect on the storage of the device. Still the same.
xboxexpert said:
I did that and then flashed yet it had no effect on the storage of the device. Still the same.
Click to expand...
Click to collapse
Thanks!
It seems that Sero 7 Pro uses emulation in init.m470.rc to mount the internal storage at /mnt/shell/emulated (line 341)
And it uses /etc/vold.fstab to mount the external storage (SD card) at /storage/sdcard1
Here is a link for Android storage management http://source.android.com/tech/storage/
I think it's feasible to remove the emulation at init.m470.rc and put both internal/external mounting in /etc/vold.fstab (to make the internal storage mounted at /sdcard2 while SD card mounted at internal (/sdcard) ), but we have to make sure the symlinks are updated accordingly.
Or, we can also keep the emulation at line 341, but mount it at /storage/sdcard1.
I don't know how to build the rootfs yet. So I didn't try...
Hope it helps
angellsl said:
Thanks!
It seems that Sero 7 Pro uses emulation in init.m470.rc to mount the internal storage at /mnt/shell/emulated (line 341)
And it uses /etc/vold.fstab to mount the external storage (SD card) at /storage/sdcard1
Here is a link for Android storage management http://source.android.com/tech/storage/
I think it's feasible to remove the emulation at init.m470.rc and put both internal/external mounting in /etc/vold.fstab (to make the internal storage mounted at /sdcard2 while SD card mounted at internal (/sdcard) ), but we have to make sure the symlinks are updated accordingly.
Or, we can also keep the emulation at line 341, but mount it at /storage/sdcard1.
I don't know how to build the rootfs yet. So I didn't try...
Hope it helps
Click to expand...
Click to collapse
You could edit the file accordingly and if you want to send it over I'll recompile and flash.
xboxexpert said:
You could edit the file accordingly and if you want to send it over I'll recompile and flash.
Click to expand...
Click to collapse
I was able to enable init.d first, and then I can swap the cards using the same trick I did for my note 2. But the storage in settings cannot see the change. The emulated internal storage on sero 7 has a slight different file hierarchy, probably because of the android version difference (4.1.2 vs 4.2.1)? I felt I'm almost there, just not sure what labels/mounts the storage in settings reads (/sdcard? others?)
Keep up the great work guys I'm following eagerly to see what you all come up with. We may have a Dev soon Unjustified Developer is talking about purchasing this tab!
Not that you're not doing a great job Xbox making the headlines everyday! Great work appreciate everything you're doing! Can't wait till father's day when my wife allows me to play with it Lol
Sent from my SCH-R530U using Tapatalk 4 Beta
angellsl said:
I was able to enable init.d first, and then I can swap the cards using the same trick I did for my note 2. But the storage in settings cannot see the change. The emulated internal storage on sero 7 has a slight different file hierarchy, probably because of the android version difference (4.1.2 vs 4.2.1)? I felt I'm almost there, just not sure what labels/mounts the storage in settings reads (/sdcard? others?)
Click to expand...
Click to collapse
Storage and settings is controlled by the vold.fstab in /system/etc I think.
trvbone said:
Can't wait till father's day when my wife allows me to play with it Lol
Click to expand...
Click to collapse
I laughed...I have the same issues only my toys are Corvettes
I give up for now. Fall back to folder mount,it works great, installed over 10GB of games.
Sent from my M470BSA using Tapatalk 2
No further progress on this issue?
Hey,
didnt find answer in similar threads (spent already 1 day at this)
how to mount partition of my choice as an external sdcard? Currently my phone sees external SD card as unavailable because it had corrupted internal memory and i swapped it and whole system starts from true external sdcard.
i tried adding last line in fstab but no luck
fstab:
Code:
/dev/block/stl11 /cache auto rw
/dev/block/mmcblk0p2 /data rfs rw
/dev/block/stl10 /datadata auto rw
/dev/block/mmcblk0p3 /emmc fat32 rw
/dev/block/stl9 /system auto rw
/dev/block/mmcblk0p1 /sdcard auto rw
/dev/block/mmcblk0p4 /sdcard1 auto rw
vold.fstab
Code:
# sdcard mount for the P1
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = disable
mbr_policy = overwrite
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
# externel sdcard
#{
# ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
# asec = enable
# mbr_policy = overwrite
#}
#dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc0
i commented here because it made no difference what i mount as external sd card, couldnt make it work.
Yes i have root and know adb enough to edit these files.
Please help.