Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a rooted android 4.2.2 tablet. Some generic make up
My /data block is only 0.98gib of space but my internal sdcard is 27gb
I formatted my sdcard (flash memory) to ext4 and mounted the block onto the data mount AND /mnt/sdcard
My storage shows 27gb available for both my internal and flash (sdcard)
And everything runs as was
EXCEPT
Anything new file or folder created or moved on the sdcard comes with only read access. No write and no execute
Apks won't install, media won't play, and etc
UNLESS I manually chmod 777 the file or the entire directory but I can't chmod the entire sdcard because the block now shares memory with the /data and I don't want to mess with those automatic permissions
Changing the umask doesn't work and even if it did it doesn't stick after reboot
I can't get the right syntax for if,then,else statements for new files and directories or to run them every 5 seconds effectively
Basically I'm trying to be able to use my ext4 sdcard under the /mnt/sdcard like a fat32 or vfat without all doing too much work all the time
PS: Also now I can't edit shell scripts in the /system even with root,root explorer and mounting rw
I have to pull it out and edit it elsewhere then push it back. I can push, pull, cp, rm and rename all in the root explorer but not edit with text editor while inside the /system
It could be.
I changed umask with terminal emulator
I don't have a /etc/profile file for it
Also I mounted like this
Mount -t ext4 /dev/block/mtdblock9 /data
Mount -t ext4 /dev/block/mtdblock9 /mnt/sdcard
My vold.fstab hasn't been changed but it also doesn't seem to do anything anyway because I have to run a script at boot up to mount these and the good.fstab mounts the loops by name
Ex: dev_mount flash /mnt/sdcard auto /dev/block/mtd/by-name/user /dev/block/platform/emmc/by-name/user
I can't even find /dev/block/platform in root explorer so I think that vold.fstab is just a guide
Umask changes don't stick after reboot
And there's no profile for it at all
I'm on an Android 4.2.2 so the internal sdcard (flash) and internal memory (/data) are separate
I'm trying to combine them to try to emulate emulated storage like newer Android's
Of course not. They're applied at each login when new files are created. If permissions get changed by rebooting, some process is changing them that has nothing to do with umask silently doing its job properly.
When the EXT4 card is not mounted, what are the permissions on the directory to which it normally gets mounted?
When the EXT4 card is mounted to some arbitrary location, are its ownerships or permissions different from when mounted to the usual location?
If this EXT4 card is always to be mounted and used the same, why don't you create an /etc/fstab entry (by volume label, for adminstrative ease) for it with appropriate permissions?
If this EXT4 card is always to be mounted and used the same, why mount it in a generic location (aka /mnt*) where temporarily mounted devices are by convention routinely hosted?
Because I really don't know what the f*** I'm doing
Which is why I'm here
The permissions are the same as the permissions for /data when mounted to /data
But he permissions and ownership when mounted to /mint/sdcard are
Drwxrwxrwx root:root and even if I change it, it changes back in like 5 seconds
I tried making my own vold.fstab in /etc but that doesn't seem to change anything
I'm thinking a device loop from /data/media/0 to /mnt/sdcard would work but then I'd have to make an .img fs in FAT32 and that would only be like partitioning the sdcard instead of actually combining like /storage/emulated/0 does
Moderator edit: Moved from a different thread, this additional question should be addressed here.
@Brusca.lyfe, while I realize also that there was not any actual profanity in your recent post, please do be aware that going much farther is a violation of our site rules.
I'm running android 4.2.2 on a generic tablet.
My internal storage (/data) is only 0.98gb of space
My sdcard is 32gb
I created a device loop from an ext4 .img (on sdcard) that I made and mounted it on /data
Everything runs fine. Smooth and the system even recognizes that I have more storage
But for some reason every new app I install now is gone after reboot
I can reinstall it and all the data is still there but the app is gone
In terminal it shows I have 2 mounts of /data. Both reading the same amount of storage but 2 separate blocks are mounted there now
(The device loop and the special block)
Do I need to make a boot up script for the device loop or just amount the 0.98gb special block permanently?
I'm not sure how to do either. Or is there away to fix these apps not staying installed without doing either?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.