Cannot create symlinks in Android 7.1.2 - ONE Q&A, Help & Troubleshooting

I am on LineageOS 14.1-20170703-NIGHTLY-bacon and whenever I try to create a symbolic link (symlink) with terminal, i got the following error:
I am trying to redirect the contents of my syncthing folders to their default paths in android (music, sygic data...)
Code:
su
ln -sf /source-path /destination-path
"Cannot create symbolic link. Operation not permitted"
Click to expand...
Click to collapse
I have tried with all the virtual paths to my internal storage that I have found:
/storage/emulated/0/
/storage/self/primary/
/mnt/sdcard/
/sdcard/
I have read that there is no way to create symbolic links in a FAT/FAT32/NTFS partitons. I have not created any partitions in my internal storage. How can I check if my internal storage is EXT2/3/4 or not?
My OPO is rooted and Terminal app got SU permissions enabled.
Thanks in advance.

jfromeo said:
I am on LineageOS 14.1-20170703-NIGHTLY-bacon and whenever I try to create a symbolic link (symlink) with terminal, i got the following error:
I am trying to redirect the contents of my syncthing folders to their default paths in android (music, sygic data...)
Code:
su
ln -sf /source-path /destination-path
I have tried with all the virtual paths to my internal storage that I have found:
/storage/emulated/0/
/storage/self/primary/
/mnt/sdcard/
/sdcard/
I have read that there is no way to create symbolic links in a FAT/FAT32/NTFS partitons. I have not created any partitions in my internal storage. How can I check if my internal storage is EXT2/3/4 or not?
My OPO is rooted and Terminal app got SU permissions enabled.
Thanks in advance.
Click to expand...
Click to collapse
Use "Disk Info" app to know about your partitions.

Mr.Ak said:
Use "Disk Info" app to know about your partitions.
Click to expand...
Click to collapse
Thanks.
The app says it is formatted under ext4 filesystem, so I do not know why I cannot creat symlinks in it...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

jfromeo said:
Thanks.
The app says it is formatted under ext4 filesystem, so I do not know why I cannot creat symlinks in it...
Click to expand...
Click to collapse
Sorry, I don't know much about terminal.

Related

I can't pull an app from the sdcard

I just rooted the phone (I know this because I installed a screen shot app and it works) and I'm trying to copy a private app that is free off of my phone onto my computer. But, I cannot figure it out. Could someone please give me step-by-step instructions. I would really appreciate this.
It sounds like you have completed this process:
http://forum.xda-developers.com/showthread.php?t=581577
But read it and make sure you complete the last step to flash the recovery rom.
www.androidspin.com/downloads...roc-v1.2.3.img
He kind of botched the last command instead of:
adb shell flash_image recovery recovery-RA-heroc-v1.2.3.img
it should be:
adb shell
cd /sdcard/
su
flash_image recovery recovery-RA-heroc-v1.2.3.img
Once you make sure this is done, turn of your phone and then hold Home button and press end button. This should load the recovery, choose Nandroid Backup once you are done backing up you will want to flash Modaco's 1.1 rom. More information can be found here:
http://forum.xda-developers.com/showthread.php?t=581846
Once this is done connect your phone to your pc, and open command prompt.
type in:
cd "the directory where the sdk is" \tools
then type:
If you are using appstosd with ext2 and fat32 partitioned sdcard:
adb pull /system/sd/app app
If you are using just fat32, no appstosd:
adb pull /data/app app
this will put all your apps into a directory named app in your \tools folder on your pc.
for private apps just replace app with app-private
alternatively, you can move apps one at a time with the command:
leave out " ".
adb pull /system/sd/app/"appname" "appname"
This will place the file directly into your tools directory. Hope this helps.
Yep, thats what I did. But I didn't flash the recovery rom. If I do that will it erase all my applicastion that I have installed? I didn't want to do that because the app I want to backup was free when I downloaded it but now it's not.
Ok, so I followed all the instructions above and go the in MoDaCo rom flashed. Then, when I tried to pull the apps off the sdcard I get a permissions denied error.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks.
Now I have a new problem. It says "adb: not found". Now what?
Thanks for being so helpful everyone.
adb is a command that is run outside of the shell
for example your prompt would still be at
c:\android-sdk-windows\tools>adb pull /data/app-private (location)
you can't use adb inside of adb shell
Ah, I didn't know adb had to be run outside of the shell.
Now it says there aren't any files in app-private but I know there are two in there.

[Q] Cannot delete folder in data/data

I downloaded Quadrant on my HTC One to Benchmark it and then I uninstalled it however when I rebooted my phone I got a UID inconsistency error and I discovered it was this app so I had to manually delete the .apk to resolve it because for some reason it was still lingering anyway the folder for it is still in my Data/Data directory and no matter what I try I'm unable to delete it. I've used Root Explorer and Ftp'd in but no luck yet. Any suggestions are appreciated!!
Hello Sir
Chronos300 said:
I downloaded Quadrant on my HTC One to Benchmark it and then I uninstalled it however when I rebooted my phone I got a UID inconsistency error and I discovered it was this app so I had to manually delete the .apk to resolve it because for some reason it was still lingering anyway the folder for it is still in my Data/Data directory and no matter what I try I'm unable to delete it. I've used Root Explorer and Ftp'd in but no luck yet. Any suggestions are appreciated!!
Click to expand...
Click to collapse
Just make sure you have tap on "Mount as R/W" in Root Explorer
it is mounted a R/W
I just had exactly the same **** happen to me with quadrant. I resolved the uid issues by format cache partition and deleted the apk but that folder in data is not deleteable.
Can't install quadrant either as it says error 24. Well I have no idea what's wrong and also the free space for the folder in data matches the stats for the asec data folder. Weird !
I would put my trust in the original linux/unix command line utilities. I can recommend "Terminal IDE" as a package of a terminal emulator and a base system. Just start it, install the "system", then go to the command line. With
Code:
su
you should get root rights. And with
Code:
rm -r /path/to/whatever
you should either be able to delete it or get a more or less meaningful error message.
@ccxxx i followed your method but remained unable to delete the facebook folder...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have also tried using root explorer...
Any suggestions??
Sent from my GT-N7100 using Tapatalk
Well, I/o error is bad. It usually means that the memory is physically broken but I think it can also be caused when the filesystem is corrupted.
I renamed the folder instead of deleting it and everything worked perfectly... does this still mean the memory is corrupted?
Sent from my GT-N7100 using Tapatalk

unable to copy a certain file

Not sure which channel to put this in, please move if this is not the correct one.
I am unable to copy a certain file. At first I tried using a cloud share app, then USB file transfer, then ADB, then local file browsing apps, finally a terminal emulator. All fail. I can see the file and the app that created it can interact with it, but I cannot copy the file, permission denied. Phone is rooted. This is a large file created by TitaniumBackup. It's large because the backed up app has a lot of data, about 4 GB worth. I can copy all the small files that Titanium creates during its backup process, including the apk and properties files. And I can rename the big file, even delete it, just not copy.
I don't think it matters but this is a rooted Pixel 5 with stock ROM.
Apparently the same issue is within Titanium itself. It can delete backups but not upload to the cloud using the built-in function to Sync to Google Drive. I am thoroughly confused.
Can you run 'chmod 777' for that special file in advance as your system has been rooted?
James_Watson said:
Can you run 'chmod 777' for that special file in advance as your system has been rooted?
Click to expand...
Click to collapse
No issue chmoding but then can't copy still. Tried copying to the same dir and to my Download and Documents folders, same result.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
PRL77 said:
No issue chmoding but then can't copy still. Tried copying to the same dir and to my Download and Documents folders, same result.
View attachment 5147605
Click to expand...
Click to collapse
According to the screenshot, it means that you have no permission to create cp.gz in this directory. So, try to run chmod for the directory at first.
James_Watson said:
According to the screenshot, it means that you have no permission to create cp.gz in this directory. So, try to run chmod for the directory at first.
Click to expand...
Click to collapse
I was told that chmod doesn't function in /sdcard due to how it's mounted. So I went into /data/media/0/TitaniumBackup that can chmod there but still can't adb pull the file.
Before chmod: -rw------- 1 u0_a256
After chmod: -rwxrwxrwx 1 u0_a256
But pull still fails:
adb pull /data/media/0/TitaniumBackup/ws.clockthevault-20201130-045341.tar.gz vaultcopy.tar.gz
adb: error: failed to stat remote object '/data/media/0/TitaniumBackup/ws.clockthevault-20201130-045341.tar.gz': Permission denied
It's gotta be size related. This file is just over 4.3 GB.
This is resolved. Someone helped me on another forum: https://android.stackexchange.com/questions/231624/unable-to-copy-a-certain-file

unmount 4.4.2

Hello!
How to unmount an old android 4.4.2 data partition?
Update: phone model if that makes any difference is Sony Xperia E1 dual
Not sure where to put this question, so I guess a general??
I have no knowledge of linux, android. But I got a programming background on windows systems and web.
I want to unmount an old android 4.4.2 data partition to run file system check because after deleting some files in data directory I am unable to write anything.
Could anyone please help me to get an idea how to do this? I searched the threads but they are more about flashing, TWRP and so on. Would not a simple file system check be enough in this case? As I noticed possibly it might be some sort of inode error? So checkdisk or something should fix it, shouldn't it?
I tried clearing the cache, it helped, but after few hours could not write anything again.
Now even the cache cleaning does not help.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It's always a good idea to set filepointer to begin of filesystem if you mount / unmount a partition: doing so you'll never run into error "Device or resource busy"
xXx yYy said:
It's always a good idea to set filepointer to begin of filesystem if you mount / unmount a partition: doing so you'll never run into error "Device or resource busy"
Click to expand...
Click to collapse
thanks for the tip!
However, I am a noob in linux/android, and the mount was done by android or KINGO rooter. So should I something like restart in recovery mode? Update:
Code:
adb reboot recovery
-> just rebooted to the regular interface
Update: phone is Sony Xperia E1 dual
I thought fixing a disk would be something like very basic task, like one liner or one parameter I did not add...
The mounting is just a way how I think I might solve the problem. That might be absolutely wrong way, not sure, now trying to move in the darkness by intuition only ...
Main problem: can not write anything with free space avaliable. Appeared since I deleted some files from /data using adb and rm command.
I also tried all the devices, but none of them was checked with two types of error:

(TOOL) (Root) ADB Partition Backup Restore Tool for Windows

ADB Partition Backup Restore Tool is a Partition Management app for all rooted Phones. with the help of this tool you can backup any partition from your device to your PC, also there is a flash option which you can use to write any partition..
Feature:
Read Partition directly to PC
Write Partition from PC
support almost all rooted phones
Requirement:
rooted phone, windows pc/laptop
Why:
read & flash critical partition like modem or EFS without custom recovery​
Download;
file attached below
Disclaimer:
flashing wrong file to wrong block cause immediate bootloop
How to use:​
Install adb driver
enable debugging
connect device
Run tool, click Start Partition Manager, once partition table readed, Select Read button to Read a partition and flash button to write a partition..
Here is My another similar tool for Xiaomi which use Sideload & work without root (only for xiaomi)
Your browser is not able to display this video.
Can you add window size scaling. Currently it is set to a fixed 1709x822.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ze7zez said:
Can you add window size scaling. Currently it is set to a fixed 1709x822.
View attachment 5747165
Click to expand...
Click to collapse
added in new attachment
After connecting to a PC and making a copy of any partition, an error is displayed:
"Reading" boot_b ".img: Pulling" boot_b ".img: ADB: Error: Failed to Stat Remote Object '/Sdcard/boot_B.img': No Such File or Directory"
There is no "boot_b.img" file on the card on the smartphone card (OnePlus8pro), no pop-up has erected in Magiska to give any root permissions.
What am I doing wrong?
regards
qriozum said:
After connecting to a PC and making a copy of any partition, an error is displayed:
"Reading" boot_b ".img: Pulling" boot_b ".img: ADB: Error: Failed to Stat Remote Object '/Sdcard/boot_B.img': No Such File or Directory"
There is no "boot_b.img" file on the card on the smartphone card (OnePlus8pro), no pop-up has erected in Magiska to give any root permissions.
What am I doing wrong?
regards
View attachment 5833457
Click to expand...
Click to collapse
inside magisk superuser allow SharedUID

Categories

Resources