Mounting a secondary partition from an SD card in /storage - Android Q&A, Help & Troubleshooting

I really thought this would be stupid simple to do, I needed an ext2 partition for link2sd as well as for a very large file (12GB) as fat32 would not support it. This is fine the file is present and the card partition and formatted in Linux. The primary fat32 partition works great, the problem is I'm looking for a simple way to mount the secondary ext2 partition as read/write somewhere that I can access it when I need, link2sd can mount it but it is not access able to browse it (when I can find it which is not often). I really thought no problem just mount it using mount (worst case), but I ca not even locate the block device to mount, it exists I know that from using a card reader, but I can not get Android (even as root) to list the partition tables (fdisk -l shows nothing). mount shows what is mounted, but not the partition that I want.
All I want to do is auto mount a second partition as /storage/XYZ, I figured 5 minutes or that there would be an app to do this, I have not found any and after wasting to much time trying to get it to work, I'm asking here as I'm lost and tired of fighting for something so simple.
Thanks,
ERIC

This should help point you down the right path
http://forum.xda-developers.com/showthread.php?t=2424900
Best of luck!
Sent from my Nexus 7 using XDA Premium 4 mobile app

Related

[Q] Clockworkmod and sd-ext

Just installed link2sd earlier (formatted partition as ext3). Wanted to flash a different rom. Trying to backup my phone, and clockworkmod tells me it can't mount sd-ext. Anyone know a reason and/or work around?
I think CWM works only with ext4 partition AFAIK. So, you can re-partition your sd card to a ext4 partition using CWM, or you can format the ext partition only to ext4 using a computer.
YouArePoop said:
Just installed link2sd earlier (formatted partition as ext3). Wanted to flash a different rom. Trying to backup my phone, and clockworkmod tells me it can't mount sd-ext. Anyone know a reason and/or work around?
Click to expand...
Click to collapse
which version of CWM have you got?
3.0.2.4, which I've used for a while now, always tries to back up my 6GB ext2 debian partition unless I remember to change cards first. no way I leave room in the vfat partition to back up that much data.
I'll put it up on 4shared if you want it.
mihir287 said:
I think CWM works only with ext4 partition AFAIK. So, you can re-partition your sd card to a ext4 partition using CWM, or you can format the ext partition only to ext4 using a computer.
Click to expand...
Click to collapse
Guess when I get home I'll copy the contents to computer, reformat, and copy back. Hopefully link2sd will notice the formatting has changed and reset itself
Sent from my LG-VM670 using XDA App
Doesn't work with extra either. Version 3.2.0.1 I believe it was.
Guess it doesn't really matter, can just use titanium since its all app stuff on there anyways...
Sent from my LG-VM670 using XDA App
i use CWM to back up my 512MB ext2 partition for my data2ext all the time (with the rest of the backup) and it seems to have no problem, and just to check i just mounted the partition in mounts and storage and it mounts fine. I know some recoveries ive used in the past on other phones would have problems with partitions that were not in 64-128-256-512-1024 MB, etc. format because of block size issue errors that i would get (when mounting or trying to set block size to 4096). I also found that when partitoning/formatting to ext2/3/4 some programs do not properly write the drive formatting and certain systems/recoveries/apps could not properly read them on the android. the best most consistent (android friendly) formats that i have gotten to date were in ubuntu (or any other) linux using "gparted". It seemed to always be the best and usually better than the format done by the phone recovery. Hope this helps. Sorry to drone on and on.
Partitioned originally with gparted. Have since resized to be 2048, and set its label to 'sd-ext'. Now instead of getting an error saying sd-ext might not be supported on my device, it just gives me a generic 'error mounting sd-ext'
I've had ext partition mounting problems before, I'm not sure if the cause is something to do with vold or what, but
after unmounting a sd card to exchange it with another one, it changes the device partitions in /dev/block like
/dev/block/mmcblk1p2
for the sd-ext partition instead of the normal
/dev/block/mmcblk0p2
you can see if this has happened by
Code:
ls /dev/block
in adb shell.
to mount it manually, if the numbering is off,
Code:
mount /dev/block/mmcblk1p2 /sd-ext
I've only had this happen with android running, but it might work in recovery too
Switched over to using data2ext. Mounts the 2nd partition as the /data partition instead of /sd-ext. Can manually mount 2nd as /sd-ext from within rom, but it doesn't carry over to recovery.
A possible solution... Create a symbolic link pointing /sd-ext to the 2nd partition? But then again, since /data now points to 2nd partition, is recovery picking up on that unknowingly and backing up the 2nd's contents when it thinks its backing up the normal /data?
I suppose I should investigate.
Edit: Yep it does backup the 2nd partition, thankfully. Just tried to install a theme made in UOT Kitchen, it borked some stuff, and the restore worked.

[Q] Link2sd problem

Hey all I'm running CMD 7.1 (RC) on a Nexus One and I've followed the instructions to partition my sd card from here as ext3, installed link2sd, and get this error:
Mount script error
Mount script cannot be created.
mount: mounting/dev/block/
vold/179:2 on /data/sdext2
failed: Device or resource busy
Anyone have a solution for this? I have searched XDA and Google for a solution, a few posts showed up with the same problem, but the person that starts the thread with the same problem ends up not following their own thread, or finds a solution without explaining how.
I am having the exact same problem, Nexus One with CM7 nightly 214. Tried S2E but it kept screwing up and trashing my EXT partition so I wanted to try Link2SD.
Finally got it to work but I can only get EXT3 partition, tried updating using Amon-Ra and MiniTool Partition but neither updated to EXT4.
In Terminal you can check the type of EXT partition by typing: mount | grep sd-ext
Everything I tried kept giving me only an EXT2 partition, I tried converting to EXT4 using MiniTool Partition Manager which reported a successful conversion but when I checked in terminal it reported EXT2. I then used Amon-Ra recovery to convert from EXT2 to EXT3 and now Link2SD works. Lexar 32GB Class 10 SD. Hope this helps.
Possible solution
I might have just found a solution.
Do you guys use any kind of bk2sdext? (automated backup of app/data to sdext partition, which comes with some ROMs built in)
To find out, go to your build.prop file in /system and check, it's one of the last lines, if it says something like bkup2sdext.enable=1, then disable it (switch 1 to 0), save and restart.
After that either go to ClockworkMod Recovery or just unmount your SD card, in order to FORMAT the sd-ext partition again so that it doesn't contain any data (and doesn't get automatically filled back, because bkup2sdext is off now).
This way I was able to mount it finally.
I think it has something to do with the build.prop AND the sd-ext partition having some other data on it before first mounting with link2sd.
Cheers.
download titanium backup press menu select batch operation scroll down till u see move all user apps to sd(if supported) and also make sure that you have checked allow application moving(settings->applications)
I have segmentation fault all the time,donnu why

[Q] Link2SD CM7 v1.9 hf3 i5500

Sorry if i sound like a noob but can i take advantage of the ext3 partition on my SD using this version of CM?
I partitioned my SD using clockworkmod, which is why it's ext3.
only app i've tried is Link2SD but when i tell it there is an ext3 partition on the card it creates a script and asks me to reboot.
Once that's done and i access the app again it goes through the same motions and informs me that - "if im seeing this message then the partition is unable to be mounted during boot"
Appreciate any help
Here's a quick way to install Link2sd.
I preassume that your device is rooted and your sdcard data is backed up.I think,the mount script didn't work because of inappropriate attributes..Ok heres,how i installed Link2sd...
1.First of all download and install MiniTool Partition Wizard in your windows PC.
Connect your handset to the PC via USB.
2.Launch MiniTool Partition,you should see your SDcard mentioned in the list Under Disk 2 probably.
3.Right click your SDcard mentioned in the list, press "Move/Resize Partition"
4.In the Partition size,allocate bigger chunk of partition for primary partition.This is the partition your phone will access for general purpose.Say you allocate 7GB from your 8GB memory card.
Click OK.
5.Now Under disk 2. you will see and unpartitioned space of about 1GB.This partition will be used by link2sd.You may allocate your sdcard as you may wish.
6.Right click the upartitioned space to create a new partition under "Create As".If a warning popup asks for permission click YES.
7.Under New window Create As,choose "Primary".For File System type choose 'FAT32'.though you may choose among ext3 or ext4,either is supported by link2sd.NTFS is not supported by Link2sd or android OS.For partition size take whole unallocated space.Click on OK
8.Click Apply button<upper left corner in the screen>.
9.Restart your phone.
Again use your Link2sd app to create mount script.Now your app should work fine.
Don't forget to hit THANKS if i helped you.
I would not suggest you to create the Link2sd partition as a FAT32 one: this way when you will connect your phone to a PC through the USB cable Windows will mount all the 2 partitions automatically (with all negative consequences you can imagine); this issue will not happen on Linux, however; while with the Link2sd partition formatted as extX you will be able to use your linked apps while the phone is connected to your PC and the first partition is mounted, it doesn't matter if you are on Linux or Windows (tested )
Regarding your problem: try to tell the Link2sd script activator that your partition is an ext4 and see if it works.. I hope so, anyway let us know..
@brainvision
yeah thanks,extX would be better..bt i think windows doesn't mount two sdcard Fat32 partition at a time.i may be wrong in this term, bt sometime back,when i used to use rooted android 2.1,windows would mount only my 1st primary partition of sdcard..however under ubuntu..both partition would load bt without affecting the phone apps.
thinkfreedom said:
@brainvision
yeah thanks,extX would be better..bt i think windows doesn't mount two sdcard Fat32 partition at a time.i may be wrong in this term, bt sometime back,when i used to use rooted android 2.1,windows would mount only my 1st primary partition of sdcard..however under ubuntu..both partition would load bt without affecting the phone apps.
Click to expand...
Click to collapse
oh sorry I'm not a winZoZZ user since a lot of time!! I'm a slacker now!!
Regarding Linx OS: I set up my Slackware so that it doesn't auto mount external disk, so i can plug in the phone and activate the USB Mass storage without still mounting it: this way I can mount only the first partition; but in a auto-mount situation I fear that the the phone apps would be affected by USB Mass storage activation!

Problem mounting sd-ext in Jelly Blast V-3.5

Hey guys, wondering if you could help me. I'm running Jelly Blast V-3.5, with Rafaels Kernel 2.6.35-7 on my S5380i. I've been trying to increase the internal storage on my device by partitioning my 32gb card in CWM with a 1gb ext. I've tried every solution I've found on this forum but I simply cannot get it to mount. Link2sd yields 'invalid argument' no matter where I point it, and when trying to format/mount the ext. in CWM it just says 'apps 2 sd partition not found'.
Here's a list of the things I've tried which have failed to solve this:
Partitioning in minitool, with various sizes and exts, and setting the partition as active.
Flashing conrod script, doesnt seem to be effective.
Script to mount sd-ext at boot, followed iamareebjamal's guide found here http://forum.xda-developers.com/showthread.php?t=1971689
S2E
Mount2SD
I'm completely at a loss, and with the internal storage of the S5380i being what it is, it would be great if anyone could offer me any advice.
Thanks!
do one thing , I'm recovery check if sd-ext is mounted
it used to happen to me that when I flashed new roms I had to mount sd-ext from mounts and storage
so mount it then reboot your phone
go to link2sd and create mount script as ext4
if problem persists , go in storage info of link2sd so see if the partition is mounted
if not you will have to enable auto mount at boot ( if option present in rom ) or mount using terminal emulator
Sent from my GT-S5670 using xda premium
soham jambhekar said:
do one thing , I'm recovery check if sd-ext is mounted
it used to happen to me that when I flashed new roms I had to mount sd-ext from mounts and storage
so mount it then reboot your phone
go to link2sd and create mount script as ext4
if problem persists , go in storage info of link2sd so see if the partition is mounted
if not you will have to enable auto mount at boot ( if option present in rom ) or mount using terminal emulator
Sent from my GT-S5670 using xda premium
Click to expand...
Click to collapse
Thanks for responding.
Attempted to mount in CWM but just receive an error. It's as if the partition isn't there at all. Re-partioned the card but still, no luck.
My rom doesn't have the auto mount at boot option, so it looks I'll have to mount with terminal emulator. Could you run me through the process, or point me towards a guide? Cheers
what error did you get in cwm while mounting ?
yry this line in terminal
mount -o rw /dev/block/
mmcblk0p2 /sd-ext
also is mount2sd file present in your /etc /init.d folder ?
Sent from my GT-S5670 using xda premium
The error in CWM when attempting to mount is: 'Error mounting /sd-ext!'
'mount -o rw /dev/block/mmcblk0p2 /sd-ext' in Terminal Emulator yields the following line: 'Usage: mount [-r] [-w] [-o options] [-t type] device directory'
The mount2sd file is not currently present in my init.d folder as I restored my phone from a backup, though when it has been there, the error in CWM is still the same.
The only difference I have noticed is that when partitioning with MiniTool, Link2SD will say that the partition is not mounted, but when partitioning with CWM it will say that the partition is not found.
galaimo said:
The error in CWM when attempting to mount is: 'Error mounting /sd-ext!'
'mount -o rw /dev/block/mmcblk0p2 /sd-ext' in Terminal Emulator yields the following line: 'Usage: mount [-r] [-w] [-o options] [-t type] device directory'
The mount2sd file is not currently present in my init.d folder as I restored my phone from a backup, though when it has been there, the error in CWM is still the same.
The only difference I have noticed is that when partitioning with MiniTool, Link2SD will say that the partition is not mounted, but when partitioning with CWM it will say that the partition is not found.
Click to expand...
Click to collapse
Did you format ext2 in the secind partition? Normally when you format with cwm, first partition is fat32 and the second partition is ext2. Try to format all available space to 1 partition and using cwm format the card to two part. May be partitioning before makes cwm recognize the wrong part and gives error.
:: Today is the first day of what's left of your life. ::
ChelebiTech said:
Did you format ext2 in the secind partition? Normally when you format with cwm, first partition is fat32 and the second partition is ext2. Try to format all available space to 1 partition and using cwm format the card to two part. May be partitioning before makes cwm recognize the wrong part and gives error.
Click to expand...
Click to collapse
Ensured all the space on card was unallocated and partitioned in CWM recovery.
Attempted to mount /sd-ext again and still receive the following error: 'Error mounting sd-ext!'
Attempted to format /sd-ext and receive the following error: 'No apps2sd partition found. Skipping format of /sd-ext'
Tried so many different ways/combinations of partitions now. Do you think it could be a kernel or rom issue?
galaimo said:
Ensured all the space on card was unallocated and partitioned in CWM recovery.
Attempted to mount /sd-ext again and still receive the following error: 'Error mounting sd-ext!'
Attempted to format /sd-ext and receive the following error: 'No apps2sd partition found. Skipping format of /sd-ext'
Tried so many different ways/combinations of partitions now. Do you think it could be a kernel or rom issue?
Click to expand...
Click to collapse
Make sure you have backed up all your files in your sdcard they will all be deleted and recreated with two partition.
In CWM enter Advanced --> use Partition SD Card
Set your second (ext2/3/4) partition size then set swap to zero (0).
ChelebiTech said:
Make sure you have backed up all your files in your sdcard they will all be deleted and recreated with two partition.
In CWM enter Advanced --> use Partition SD Card
Set your second (ext2/3/4) partition size then set swap to zero (0).
Click to expand...
Click to collapse
This is exactly what I've done, countless times. It simply will not mount. Really struggling to understand this problem.
galaimo said:
This is exactly what I've done, countless times. It simply will not mount. Really struggling to understand this problem.
Click to expand...
Click to collapse
Using a card reader enter your sd card to a computer and test if card has a problem or partitions are correctly created. If your answer is yes you may have a misconfig on your phone. Make sure u have the latest busybox available, have rooted your phone correctly, vs...
Or create your partitions in computer and try...
Ps: I created my partition in Stock Rom. So it must NOT depends on kernel or rom...
ChelebiTech said:
Using a card reader enter your sd card to a computer and test if card has a problem or partitions are correctly created. If your answer is yes you may have a misconfig on your phone. Make sure u have the latest busybox available, have rooted your phone correctly, vs...
Or create your partitions in computer and try...
Ps: I created my partition in Stock Rom. So it must NOT depends on kernel or rom...
Click to expand...
Click to collapse
Partitioned with CWM again. Plugged in to laptop and in MiniTool and this is the result:
galaimo said:
Partitioned with CWM again. Plugged in to laptop and in MiniTool and this is the result:
Click to expand...
Click to collapse
That unallocated space is your problem. Try to create an ext2/3 partion with mini tool. And if minitool gives error than you probably have a defected sd.
And one more suggestion try the cwm in rafaels kernel thread.
Edit: Sorry for cwm use http://forum.xda-developers.com/showthread.php?p=23715776
:: Today is the first day of what's left of your life. ::
ChelebiTech said:
That unallocated space is your problem. Try to create an ext2/3 partion with mini tool. And if minitool gives error than you probably have a defected sd.
And one more suggestion try the cwm in rafaels kernel thread.
Edit: Sorry for cwm use http://forum.xda-developers.com/showthread.php?p=23715776
Click to expand...
Click to collapse
Thanks for taking the time to talk me through this.
Turns out my SD card is defective, swapped for another card and I've now increased my internal storage!
I'll be sending the other one back.
Thank you again for your time :good:
ChelebiTech said:
That unallocated space is your problem. Try to create an ext2/3 partion with mini tool. And if minitool gives error than you probably have a defected sd.
And one more suggestion try the cwm in rafaels kernel thread.
Edit: Sorry for cwm use http://forum.xda-developers.com/showthread.php?p=23715776
:: Today is the first day of what's left of your life. ::
Click to expand...
Click to collapse
Thanks for the link! seems like my CWM wasn't detecting sd-ext.. this fixed!! feared my sd card was ruined.. really thanks a lot!

[Q] KK: How to mount second stick partition system-wide readable

I can mount the second partition on my SD card in the terminal, however it's only visible to root.
How can I mount it so any app can see the data? Surely this must go been hooked on KK already and I just can't find it.
Anyone?
Many thanks.

Categories

Resources