I've been digging around but I haven't been able to find an answer: Is it possible to set up some shell scripts to be called before and after the external SD card is mounted and unmounted? I'm playing around with a chrooted Ubuntu install, and I'd like to be able to fire off the Ubuntu init process automatically on boot/whenever the card is remounted and the shutdown process when the card is about to be unmounted for USB Mass Storage use.
Related
Hi
I came from an HTC Hero a while ago and formatted my external sd card recently using the tool that is available in settings for my external 16GB card. But it only sees it as 16mb! Does anyone know how I can partition it? I have a linux machine, if only I could run fdisk on the external card ;-)
Buy a cheap usb reader
Sent from my GT-I9000 using Tapatalk
really?
Anyone else with an idea?
Figured it out. SD card had partitions that the samsung didn't like.
So I went in with adb shell
su -
busybox fdisk /dev/block/mmcblk1
delete all partitions
Then it will format it as it needs to.
If you have a Linux box or even a Linux install disk (you can run it from the disk) then you could just put it inn a USB converter plug it in and use the Linus disk management to do all that for you and even create a new fat32 partition ready formatted. As an aside you can use the same to repair fake USB etc memory. You will only get the true memory of the unit though not the fake advertised one.
Sorry if this is a n00b question... but I've been able to unmount and remount the SD card in my HD2, or connect it to my computer via USB (which unmounts it on the phone side), all while running Android from that same card.
I'm wondering if this is safe to do, or if the only "safe" method is shutting down Android and rebooting into Windows Mobile. After all, the 1GB data.img and the Android system are both kept on the card, so if it is unmounted, you'd think the system would crash or otherwise corrupt data...
Thanks.
nookkin said:
Sorry if this is a n00b question... but I've been able to unmount and remount the SD card in my HD2, or connect it to my computer via USB (which unmounts it on the phone side), all while running Android from that same card.
I'm wondering if this is safe to do, or if the only "safe" method is shutting down Android and rebooting into Windows Mobile. After all, the 1GB data.img and the Android system are both kept on the card, so if it is unmounted, you'd think the system would crash or otherwise corrupt data...
Thanks.
Click to expand...
Click to collapse
I do think the system would crash or be corrupted because if all the files are running from the SD card and then it is removed, then all files would not be accessible causing the system to crash or even worse - corrupt data. Whenever run it from the SD card and connect it to my computer I use the app called "Dual Mount SD" which allows me to still access my SD card (from my phone), which means the android files on the SD card can still be accessed by the phone for the system to still run. I believe this way is the safest.
I read somewhere that someone removed it and nothing happened, but take it from someone who tried it: Do NOT remove the card from the phone when it's running android. and unless the developer specifically says that it's safe to connect his build through diskdrive mode do not connect it that way as well!
I'm using the above mentioned program and it works fine. Music and other media files will be recognized by the music app only after you rescan the card using any free tool available (search the net/market for a tool to rescan the card on android) and that's all you need
I'm a Mac guy, and since I got this phone a little more than a week ago, I've been plagued by the fact that I can't mount the SD card on my Macbook. I always get a notification that the drive isn't recognized. However, the virtual cd with the Windows drivers mounts, but not the SD. Does anyone know of a mod that will only mount the SD card, and completely ignore the virtual CD? Better yet, is there a way to completely delete the virtual Cd function? Thanks!
I am running CM7 on SD card that has a storage partition of about 6 gig.
When I run stock Nook Color USB, it's easy to set up folders in My Files and fill them with magazines, ebooks, pdf files, videos, etc. on the EMMC.
Then under CM7, I have been using File Manager to move the files one by one to the SD card.... a tedious process.
Or I have been able to use DropBox to export the files one by one to the SD card .... even slower and more tedious
I've tried to get EASEUS Partition Master to activate the storage partition so I could just drop files in there, but all I can ever see is the boot partition on my PC.
There has to be an easier way, right ?
Just plug the Nook in via USB and then you need to open your status bar and mount as USB. You will then have two new drives on your PC, one for EMMC and one for your SD card.
Sent from space
THATS more like it. Working great now and thanks!
edit /system/etc/vold.fstab on stock and change first auto for SDCARD to 4 and you can use the same partition for stock and sd ROM for the SDCARD
in your CM7...
either use terminal app or adb shell:
mkdir /sdcard/tmp
mount /dev/block/mmcblk0p1 /sdcard/tmp
Then edit /sdcard/tmp/etc/vold.fstab to make the following change:
Code:
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
CHANGE TO
dev_mount sdcard /mnt/sdcard 4 auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
Hello,
The sd card in my Moto X Play had a corrupt file system. I formatted the card (by Android, as external storage), and discovered that the mount point changed.
Some applications now can no longer find their (restored) data.
I put the sd card in a card reader, connected to my pc (running Linux). Using exfatlabel I changed the card's label, so it was the same as the previous mount point (which was 0123-4567). When I mount the card on my pc, it is mounted as 0123-4567.
Putting it back into my phone, it is still mounted as /storage/FE51-5E4C, the label it had after formatting.
When I look in Settings - Storage and USB, the sd card is shown as 0123-4567.
What algorithm is used to determine the mount point?
How can I get the card to be mounted as /storage/0123-4567?
Regards,
George