Does anybody know where the mountpoints for /system, /data and so on are stored? I would like to add the boot partition to the standard mounts.
Should be in /etc/vold.conf but I'm not sure about the folder
Sent from my GT-I9000 using Tapatalk
EDIT: Sorry, thats not right. /etc/vold.conf only holds the mountpoints for the SD-Cards
/system and /data are mounted from the init.rc script in the uRamdisk.
You could add the mount instruction to /system/bin/clrbootcount.sh, it gets called after every boot.
Related
Can I have external card mounted as ext2? I have files names not supported by fat and sync'ed with dropbox
Yes, you can but afaik there is no easy way to do this.
I formatted my sdcard to ext2 (because I wanted to put large file (image for wikipedia offline) on my sdcard).
I formatted the beginning (~30MB) of my sdcard to fat32 so that the Nook detect the sdcard and does not trigger an error and the remaining part to ext2.
Then I used a script that mount manually the ext2 partition to /sdcard on boot.
This generally works but I have sometimes a few bug in some applications, especially when I connect and disconnect my Nook to my computer...
The best solution would be to find a way so that Android can automount a ext2 partition by itself but I don't know how to do it.
Instead of using the whole card I partitioned the first 4gb as fat16 (msdos) and then set the rest to ext3. When the fat16 space runs out I'll look into making some sort of script to try to mount the second partition. At the moment with the card acts like a normal 4gb card.
is it possible to repartition the nook to be able to use the space that b&n reserves for its contents? I heard that the space for our files is just 250 mb.
user4242 said:
is it possible to repartition the nook to be able to use the space that b&n reserves for its contents? I heard that the space for our files is just 250 mb.
Click to expand...
Click to collapse
yes of course. If you're used to linux repartitioning and the dd command then it's a breeze. If you're a Windows user who've never done partitioning or disk imaging then you can easily mess up.
I'll assume the former.
It's just a case of:
boot with a noogie.img that you've written to a sdcard (root of card, not partition 1)
then plug it in
now you can see all the nook partitions like it's an external USB drive and fdisk, cfdisk, partitionmagic or whatever you want
Obviously you're gonna want to backup first because if you mess up the only way to restore would be asking one of us off this forum to break the distribution laws and send you a 2gb (or whatever it is) image.
All the details on this forum
Has someone tried editing /system/etc/vold.conf to get a ext-formated SD-Card mounted?
mali100 said:
Has someone tried editing /system/etc/vold.conf to get a ext-formated SD-Card mounted?
Click to expand...
Click to collapse
I checked, I had modified it adding a line "partition 2" in the section "volume_sdcard2" so that Android does not show the message "SD card blank or has unsupported filesystem".
But I couldn't make it mount a ext2 sdcard itself. (if you know how to do it without using another script, I'm interested)
Time to resurrect this thread.
FAT is ugly. File timestamps are in local time (whatever that means, summer? winter?).
The Nook vfat implementation has problems with caching in and out directory info on vfat
and intermittently changes all the modify timestamps by 1, 4 or 5 hours.
This can play havoc if you are trying to keep things synchronized by filetime.
I've decided to have my SD card be ext3
Our volume demon, /system/bin/vold (which is ancient) uses /system/etc/vold.conf to configure automounting.
It presumes that all volumes are vfat.
It seems from a brief look inside that it does handle ext2 and ext3 somehow.
There is also the question of getting it to automount USB drives.
The easiest solution to ext3 on the SD card is to make it non-removable.
First, delete the second section out of vold.conf that relates to the SD card.
Then edit init.rc:
Code:
mkdir /sdcard 0777 system system
...
mount ext3 /dev/block/mmcblk1p1 /sdcard nosuid nodev noatime nodiratime uid=1000,gid=1015,fmask=117,dmask=007
chown system sdcard_rw /sdcard
chmod 0770 /sdcard
If you feel like having 12 partitions on your SD card you can.
That leaves vold only handling the mounting of /media
This exists so that you can serve /media as USB Mass Storage.
You could have /media be a fixed mount by doing what you just did to the SD card.
The only hiccup there would be the Adobe Digital Editions wants to see /media as UMS.
Note: To edit init.rc, download bootutil from the signature, extract, edit and replace init.rc in uRamdisk.
Make sure that you have a backup and a recovery!
Note: All of the above changes to init.rc are wrong.
I can get it to mount in a shell, but not in init.rc
Whoops.
Oops, this thread has been forgotten.
Yes, auto-mounting ext3 SDcards has been solved.
See: http://forum.xda-developers.com/showthread.php?t=2184495
A few of us over on the atrix 2 boards are trying to adapt safestrap to work with our phones. The problem is that we do not have a /emmc partition. So what I have been able to do is use the safe strap from the droid bionic and partition the sd card into 2 separate fat partitions. The second fat partition I want to mount as /emmc so that safe strap can do it's thing. I can manually mount /sd-ext to /emmc by running this in recovery mount -t vfs /dev/block/mmcblk0p2 /emmc from adb shell but we need a way for it to be automatic and for the system to mount it at a full boot also. We have tried contacting hashcode w/o much luck so can some one please lend a hand???
I'm not sure how exactly android handles it, but from a linux perspective, can you just place a script in /etc/init.d that runs the command?
#!/system/bin/sh
mount -t vfs /dev/block/mmcblk0p2 /emmc
I'd suggest looking at init.d for ideas on adding your own script that runs at startup. It's all Unix/linux under the covers.
Sent from my CM7 Neutrino Atrix using Tapatalk
I believe android runs the stuff from init.rc should be a to edit it if you have root access.
/system/etc/vold.fstab
sent from my Atrix via XDA premium
I am a big fan of books. This is why I have a nook simple tablet. But after being introduced to Overdrive, which I am sure at least one of you has heard of (Googie), I want to be able to download ebooks from overdrive. The only problem is, I would need an external storage device to save these from opera mobile. This is a bit unsettling, seeing as I don't have a micro sd card. (don't ask.)
So, my question is, is there a way to fool the nook into thinking an sd card is inserted?
Thanks in advance!
Since sdcard is mounted under /sdcard directory, I believe mounting (binding) a directory under writeable partition (e.g. /data/sdcard) to /sdcard might be enough.
May need to also link to /data/sdcard as well as the /sdcard. This can be done with symlinks or mounting. Ie mount said partition to /data/sdcard then symlink from /data/sdcard to /sdcard. Though the /sdcard symlink may already be there
Sent from my ADR6300 using Tapatalk
How would one do this? I just recently adopted android and I do not know much.
it might require modifications to the ram disk within the boot.img. or possibly using ln -s /data/sdcard /sdcard after boot is completed in a terminal. You may need to delete the /sdcard dir first and set proper permissions
Looking in a terminal you will need to symlink the emmc(internal memory) to /data/sdcard. ln -s <emmc dir> /data/sdcard. You may need to delete the /data/sdcard dir first.
Sent from my ADR6300 using Tapatalk
Hmm...
I'm just going to get an sd card. Thanks anyway, it's interesting to know you can do that.
Right, so I recently just heard of this thing that mounts(?) an ext partition of your sdcard to the /data partition, meaning, instead of a lousy 400 MB, I could have 8 or16 GB for apps and data, wouldn't that be amazing?
Sent from my R800i using Tapatalk
KeiranFTW said:
Right, so I recently just heard of this thing that mounts(?) an ext partition of your sdcard to the /data partition, meaning, instead of a lousy 400 MB, I could have 8 or16 GB for apps and data, wouldn't that be amazing?
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
random lol. but wouldn't it be slower?
Fma965 - Forgottencoders.co.uk
Want to make me a banner? PM me
fma965 said:
random lol. but wouldn't it be slower?
Fma965 - Forgottencoders.co.uk
Want to make me a banner? PM me
Click to expand...
Click to collapse
Link2sd from the market is what i use. Only tried 1gb as second partion on my play, made it 16gb on my sony tablet. I think you gaim more ram and speed things up this way and i have not noticed any slow down becase of the card. It is really great
Sent from my Sony Tablet S using Tapatalk
I think what the OP is mentioning is Mounting the sd-ext AS the data partition. That way there's no 3rd party app to mess up (I've had Link2SD silently crash and accidentally get the low space warning twice). With sd-ext mounted as the data partition then you're not relying on an app running in the background monitoring app installs and then linking them to the sd card.
I believe it could be done, but I don't know the equivalent of fstab editing in android.
jonshipman said:
I think what the OP is mentioning is Mounting the sd-ext AS the data partition. That way there's no 3rd party app to mess up (I've had Link2SD silently crash and accidentally get the low space warning twice). With sd-ext mounted as the data partition then you're not relying on an app running in the background monitoring app installs and then linking them to the sd card.
I believe it could be done, but I don't know the equivalent of fstab editing in android.
Click to expand...
Click to collapse
bet its simple lol. HTC Desire has it.
Fma965 - Forgottencoders.co.uk
Want to make me a banner? PM me
Yes, it's amazing and even better possible! I've achieved it on your DarkForest RC2 with DoomKernel.
- Partition your sdcard so that ext4 is the second primary partition
- Flash the zip in CWM.
- In a terminal emulator type: data2ext --enable
- With Root explorer go to system/etc/init.d and open 40data2ext
- Edit PATH=/system/xbin:/system/bin to PATH=/system/xbin:/system/bin:/sbin
- Reboot, you will have no signal
- Reboot in CWM and fix permissions.
- Now with signal enjoy your large internal memory.
The script was made for HTC Legend. Here the original thread. http://forum.xda-developers.com/showthread.php?t=902395
Possible on a stock rom running DoomKernel?
Sent from my R800i using XDA App
On the root of the device there's a fstab and a recovery.fstab.
fstab
/data yaffs2 userdata
/cache yaffs2 cache
recovery.fstab
# mount point fstype device [device2] fstype2
/cache yaffs2 cache
/data yaffs2 userdata
/system yaffs2 system
/sdcard vfat /dev/block/mmcblk0p1
/sd-ext auto /dev/block/mmcblk0p2
Seems like if you can format the mmcblk0p2 to yaffs2 you can set data to it. I'd be hesitant to move the data partition unless I can format sd-ext to match. I'll try it sometime but my folks are in this weekend.
Sent from my R800i using XDA App
I'm using the Link2SD as well. I just shrunk my FAT32 partition on my SD card, created an ext2 partition about 1gig. Link2SD mounted it up, and I'm able to "Link" the apps Data, Lib and Dex files to the new 1gig partition, or leave them local. I even moved Map and the 9mb from QuickOffice Pro that I couldn't move with the normal App2SD. I'm using the signed Sony Ericsson rom that is posted on these forums somewhere. I can't find the forum post to it lately. My boot loader is also locked but I am rooted. No updated kernel unless the Sony rom did it.
Hello all !
I try to mount second partition (ext4) on external sd and in fact the script i created after install "universal init.d" app, that is not working !
Code:
#!/system/bin/sh
mount -t ext2 -o rw /dev/block/mmcblk0p2 /data/sdext2
mount -t ext2 -o rw /dev/block/vold179,2 /data/sdext2
In fact, it create the script in /etc/init.d/ but it seems that the script is not execute at boot time, but just after, because i have always Link2sd alerting that partition mmcblk0p2 is not mounted at boot time but after and the system doesn't leave to see the apps installed on this partition !
Like the system mount the general partitions known but not this one and it execute the script after !
I have to do again a soft boot to make link2sd worked !
Can somebody explain me how to make the system mount this partition (mmcblk0p2 and 179,2) at right time, like the others partitions ?
If you have general explaination for marshamallow and/or specific LG G5 on marshamallow !
I'm pretty sure that init.d has to be enable in your kernel to work properly. Like I have mine set to disable ota's at boot. I added init.d support with SuperR's Kitchen. You'll need to grab system and boot.img of course add root/anything else you need and build/flash rom. There might be easier ways to add it but idk of any.
Sent from my LG-H830 using XDA Labs