How to know the mount points using terminal emulator - Android Q&A, Help & Troubleshooting

How to know the mount points using terminal emulator ???
I guess i dont have mtd partition. How to check that too ?
I really wanna know my mount points
I have karbonn a21 running ics 4.0.4
Sent from my A21 using xda app-developers app

Nishchay1 said:
How to know the mount points using terminal emulator ???
I guess i dont have mtd partition. How to check that too ?
I really wanna know my mount points
I have karbonn a21 running ics 4.0.4
Sent from my A21 using xda app-developers app
Click to expand...
Click to collapse
There are a couple commands you can run:
cat /proc/mtd
That will give you the mount points if you have a mtd device. If it says not found then you know your device isn't using mtd.
Another command to find the mount points is:
mount
You can also do:
dev/block/platform
Then:
ls
Then cd into the folder for the processor kind. For example on the US version of the Galaxy S3 it's msm_sdcc.1. Then cd into the "by-name" directory and then type ls -l to list the partitions and there mount points. Let me know if you still have questions .
Sent from my SCH-I535 using xda premium

shimp208 said:
There are a couple commands you can run:
cat /proc/mtd
That will give you the mount points if you have a mtd device. If it says not found then you know your device isn't using mtd.
Another command to find the mount points is:
mount
You can also do:
dev/block/platform
Then:
ls
Then cd into the folder for the processor kind. For example on the US version of the Galaxy S3 it's msm_sdcc.1. Then cd into the "by-name" directory and then type ls -l to list the partitions and there mount points. Let me know if you still have questions .
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
Thank you!
I've been trying to find the mountings for my Padfone 2 for many hours untill I finally found this, and at last! something finally worked!

brother @shimp208 can u say me the mount points of boot and others from the below screenshot ............. and thanks in advance...

princemouli said:
brother shimp208 can u say me the mount points of boot and others from the below screenshot ............. and thanks in advance...
Click to expand...
Click to collapse
Please cd into the by-name directory rather then by-num then run ls -la from that directory.
Sent from my SCH-I535 using XDA Premium 4 mobile app

Looks like he only has a by-num
Try
cat /proc/mounts
Or maybe
busybox df -hm
Sent from my Nexus 4 using XDA Premium 4 mobile app

In addition to what demkantor said you can also boot your device into recovery mode, wipe your devices cache, then reboot the phone which should create a last_log file that should contain the partition names, this file can be read by running the following command:
Code:
cat /cache/recovery/last_log

brother @shimp208 i did every thing as u said but i didnt found the mount points of boot and recovery i even saw in recovery.fstab but i didnt found mnts of boot and recovery....... is there any other ideas to find them......

princemouli said:
brother @shimp208 i did every thing as u said but i didnt found the mount points of boot and recovery i even saw in recovery.fstab but i didnt found mnts of boot and recovery....... is there any other ideas to find them......
Click to expand...
Click to collapse
Can you post the full output of the cat /cache/recovery/last_log command (You can also use adb shell and copy and paste it's output)? Also did you try the commands demkantor suggested?

brother @shimp208 here is my recovery log and others............ i need mount point of boot and recovery......

princemouli said:
brother @shimp208 here is my recovery log and others............ i need mount point of boot and recovery......
Click to expand...
Click to collapse
The path to your boot partition is:
Code:
/dev/bootimg
The path to your recovery partition is:
Code:
/dev/recovery
If you wanted to dump these partitions you could run the commands from terminal emulator or adb shell as root:
Code:
cat /dev/bootimg > /mnt/sdcard/boot.img
cat /dev/recovery > /mnt/sdcard/recovery.img
Let me know if this is the information your looking for or not.

Related

Recovery

Important away from a computer for a few days and was wondering if there's a way to flash CWM recovery without a pc or any previous versions of CWM installed. I had the CWM at some point and now when i boot into recovery i have the stock Samsung recovery and can't flash anything......
Sent from my SAMSUNG-SGH-I717 using XDA
I believe you can flash the img from terminal
Yes.
Assuming you're rooted, you should be able to move it to the right partition with a terminal emulator on your phone.
studacris said:
Yes.
Assuming you're rooted, you should be able to move it to the right partition with a terminal emulator on your phone.
Click to expand...
Click to collapse
Sorry but im not familiar with using terminal.....could you post the steps i need to take? Thx in advance
Sent from my SAMSUNG-SGH-I717 using XDA
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
jyazzie110 said:
Sorry but im not familiar with using terminal.....could you post the steps i need to take? Thx in advance
Sent from my SAMSUNG-SGH-I717 using XDA
Click to expand...
Click to collapse
animatechnica said:
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
Click to expand...
Click to collapse
Thank you!!! I will try that and post results
Sent from my SAMSUNG-SGH-I727 using XDA
animatechnica said:
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
Click to expand...
Click to collapse
Still a no go...
Sent from my SAMSUNG-SGH-I727 using XDA
animatechnica said:
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
Click to expand...
Click to collapse
I keep getting "error scanning partitions: No such file or ditectory" i have the recovery.img file on the root of my sd card as well
Sent from my SAMSUNG-SGH-I727 using XDA
If you are rooted you can use the goo manager app in the play store to flash TWRP to your phone

[Q]How to get system.img from nanodroid

I've tried using twrp and cwm to backup my system image but i havent been able to, with twrp i had system.ext4.win when i backed up only the system. Is their a tool or do i need to do it with adb ?
Thanks!
could you specify your phone/tablet model?
fantamedo said:
could you specify your phone/tablet model?
Click to expand...
Click to collapse
Galaxy s3
First make a full nandroid backup in CWMR, then on your phone navigate to mint/sdcard/clockworkmod then copy the folder of the backup you made (It should be the date of the backup by default) and transfer it to your computer. Once you transfer it to your computer open the backup folder and inside should be the system.img file.
You can also type these commands in terminal emulator to get your system.img:
Code:
su
dd if=/dev/block/mmcblk0p14 of=/mnt/sdcard/system.img bs=4096
Then just transfer the system.img from your sdcard to your computer. Let me know if you still have questions.
Sent from my SCH-I535 using xda premium
It didn't work with cwmr but I haven't tried out the terminal command
Sent from my SCH-I535 using xda premium
CovXX said:
It didn't work with cwmr but I haven't tried out the terminal command
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
Like I said try out the terminal command I suggested and let me know how it goes .
Sent from my SCH-I535 using xda premium
shimp208 said:
First make a full nandroid backup in CWMR, then on your phone navigate to mint/sdcard/clockworkmod then copy the folder of the backup you made (It should be the date of the backup by default) and transfer it to your computer. Once you transfer it to your computer open the backup folder and inside should be the system.img file.
You can also type these commands in terminal emulator to get your system.img:
Code:
su
dd if=/dev/block/mmcblk0p14 of=/mnt/sdcard/system.img bs=4096
Then just transfer the system.img from your sdcard to your computer. Let me know if you still have questions.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
thanks man, just the command i was looking for, and it works like a charm.. :good:
So how about for a Razr M XT907 ? I ran the term command, but the img size was wayyy too small.
Find out what your system partition is and change command accordingly
Sent from my Nexus 4 using xda premium
livinginkaos said:
So how about for a Razr M XT907 ? I ran the term command, but the img size was wayyy too small.
Click to expand...
Click to collapse
You can find out your which partition your /system partition is by running the following commands either from terminal or adb shell as the root user:
Code:
ls -l /dev/block/platform/{your_platform_name_here}/by-name
For example on my Nexus 10 the platform name is "dw_mmc.0" so the command would look like:
Code:
ls -l /dev/block/platform/dw_mmc.0/by-name
To figure out your platform name first cd into the platform directory then list the contents of the platform directory to figure out what your platform name is:
Code:
cd /dev/block/platform/
ls
After you have then figured out what your platform name is you can run the command:
Code:
ls -l /dev/block/platform/{your_platform_name_here}/by-name
Once you have figured out your system partition you can dump it to your phones storage by running a command similar to:
Code:
cat /dev/block/block_of_system_partition > /mnt/sdcard/system.img
Let me know if you still have questions .
Awesome guys ! Thanks a bunch.
OK, so I have gotten the img. I've done it both ways with the dd and the cat. The image size comes up close to 1.5Gb. I know this is too large. The fastboot img file is normally in the 800-900 Mb range. Am I missing something here?
livinginkaos said:
OK, so I have gotten the img. I've done it both ways with the dd and the cat. The image size comes up close to 1.5Gb. I know this is too large. The fastboot img file is normally in the 800-900 Mb range. Am I missing something here?
Click to expand...
Click to collapse
Have you installed any additional system apps or placed any other files in the system folder? Because if you have modified the /system folder contents the file size will be greater then the normal 800-900 MB file range you listed since that file size if for an unmodified completely stock /system image.
Actually not really. I had done an erase data, roll back fxz, root, update and cache/dalvik wipe. Was trying to get a somewhat clean system.img
shimp208 said:
You can find out your which partition your /system partition is by running the following commands either from terminal or adb shell as the root user:
Code:
ls -l /dev/block/platform/{your_platform_name_here}/by-name
For example on my Nexus 10 the platform name is "dw_mmc.0" so the command would look like:
Code:
ls -l /dev/block/platform/dw_mmc.0/by-name
To figure out your platform name first cd into the platform directory then list the contents of the platform directory to figure out what your platform name is:
Code:
cd /dev/block/platform/
ls
After you have then figured out what your platform name is you can run the command:
Code:
ls -l /dev/block/platform/{your_platform_name_here}/by-name
Once you have figured out your system partition you can dump it to your phones storage by running a command similar to:
Code:
cat /dev/block/block_of_system_partition > /mnt/sdcard/system.img
Let me know if you still have questions .
Click to expand...
Click to collapse
When we come to Android 5.0 ages, we have new problems:
Method1 Using the dd we really can get the system.img, but in my 8994 device with busybox 1.23.1, it will 2.5GB fixed size, same as the system partition size.
so what I can found it works is , use sparsecoverter in this forum http://forum.xda-developers.com/showthread.php?t=2749797, we can remove the sparse bytes and make it a 1.4GB around and fastboot back to devices, that works fine, NOTE, that is not from dd nandroid backup. not from who only have TWRP and CWM backups;.
Method2 Using TWRP/CWM system.ext4.win/data.ext4.win, we can use
tar -xvf /storage/sdcard1/twrp/backup/abcd/2015-03-29-09-00-00/system.ext4.win
tar -xvf /storage/sdcard1/twrp/backup/abcd/2015-03-29-09-00-00/data.ext4.win
to gotten a folder, I run this on my target device under adb root and adb shell, but it will have many errors, tar remote link .... function not implement, so I think we need a cygwin according this post, but next step since Android 4.0 should be make_ext4fs, which will need a special build to avoid Permission Denied. which I still not success to finish it.
so, if Android successful tar -xvf and make_ext4fs story, please share here, thank you very much!
any news to help me forward?

How to install large games with small internal storage

Hello I recently rooted because of my small internal storage that will not allow me to install apps. Like modern combat 4 and Nfs most wanted because I cannot move them to extsdcard I tried link2sd but had the same result dose anyone know if I can get apps to install to the extsdcard instead of the internal without flashing? Any help would be appreciated
Sent from my LG-P769 using xda app-developers app
realbro657 said:
Hello I recently rooted because of my small internal storage that will not allow me to install apps. Like modern combat 4 and Nfs most wanted because I cannot move them to extsdcard I tried link2sd but had the same result dose anyone know if I can get apps to install to the extsdcard instead of the internal without flashing? Any help would be appreciated
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
If you have root & busybox installed you can run this script.
Code:
#!/system/bin/sh
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:61 /mnt/sdcard
busybox sleep 3
if busybox mount | grep vold/179:61; then
mount -o bind /data/media /storage/external_SD
rm /storage/external_SD/external_sd
chmod -R 777 /sdcard
chmod -R 777 /data/media
fi
Sent from my LGMS769 using XDA Premium 4 mobile app
kuma82 said:
If you have root & busybox installed you can run this script.
Code:
#!/system/bin/sh
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:61 /mnt/sdcard
busybox sleep 3
if busybox mount | grep vold/179:61; then
mount -o bind /data/media /storage/external_SD
rm /storage/external_SD/external_sd
chmod -R 777 /sdcard
chmod -R 777 /data/media
fi
Sent from my LGMS769 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
where do you run this command from? i tried to run it from adb and it didn't work it said "#! wasn't found"
pitbullmommy45245 said:
where do you run this command from? i tried to run it from adb and it didn't work it said "#! wasn't found"
Click to expand...
Click to collapse
Try running with terminal app... It's there in play store...and you don't input #... You open terminal... Type su... Then try running script...
Sent from my Xperia Neo V using xda app-developers app
pitbullmommy45245 said:
where do you run this command from? i tried to run it from adb and it didn't work it said "#! wasn't found"
Click to expand...
Click to collapse
place this file "swapint2ext.txt" on your sdcard and type the following
with a terminal emulator
Code:
su
./sdcard/swapint2ext.txt [B](if on your internal sdcard)[/B]
./sdcard/external_sd/swapint2ext.txt [B](if placed in your external sd)[/B]
with adb
Code:
adb shell
su
./sdcard/swapint2ext.txt [B](if on your internal sdcard)[/B]
./sdcard/external_sd/swapint2ext.txt [B](if placed in your external sd)[/B]
There is a lot more info on the subject in the general section. Look for the titles starting with swap internal or something similar. There are like 3 different threads on the subject. I'll send you a link later with some more info, but that will be later later
kuma82 said:
place this file "swapint2ext.txt" on your sdcard and type the following
with a terminal emulator
Code:
su
./sdcard/external_sd/swapint2ext.txt [B](if placed in your external sd)[/QUOTE]
Hi,
i have "don´t permission", when i type this one in terminal emulator.
Any idea? My phone is rooted. I rename the "swapint2ext.txt in .sh", is this correct? And the path is "sdcard0", is this also correct?
And also i try to execute the "swapint2ext.sh" with the Root Explorer. Works fine, but i can´t install Fifa 14 for example. Not enough place...
Thanks Thomas
Click to expand...
Click to collapse
+1 from the above post. i tried to run it in smanager and it said permission denied. i tried to do adb and terminal on the phone and it said it couldn't find the file.
pitbullmommy45245 said:
+1 from the above post. i tried to run it in smanager and it said permission denied. i tried to do adb and terminal on the phone and it said it couldn't find the file.
Click to expand...
Click to collapse
You are getting permission denied because it needs root access. Read this
http://forum.xda-developers.com/showpost.php?p=45268460&postcount=1
More info coming Hold up.
Sent from my LGMS769 using XDA Premium 4 mobile app
kuma82 said:
You are getting permission denied because it needs root access. Hold up.
Sent from my LGMS769 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
We have root access!
thomasoeli said:
Hi,
i have "don´t permission", when i type this one in terminal emulator.
Any idea? My phone is rooted. I rename the "swapint2ext.txt in .sh", is this correct? And the path is "sdcard0", is this also correct?
And also i try to execute the "swapint2ext.sh" with the Root Explorer. Works fine, but i can´t install Fifa 14 for example. Not enough place...
Thanks Thomas
Click to expand...
Click to collapse
Read this post
http://forum.xda-developers.com/showpost.php?p=45268460&postcount=1
Sent from my LGMS769 using XDA Premium 4 mobile app
---------- Post added at 03:12 PM ---------- Previous post was at 03:05 PM ----------
More info
http://forum.xda-developers.com/showthread.php?p=36627662
http://forum.xda-developers.com/showthread.php?p=36948542
Sent from my LGMS769 using XDA Premium 4 mobile app
realbro657 said:
Hello I recently rooted because of my small internal storage that will not allow me to install apps. Like modern combat 4 and Nfs most wanted because I cannot move them to extsdcard I tried link2sd but had the same result dose anyone know if I can get apps to install to the extsdcard instead of the internal without flashing? Any help would be appreciated
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
You can also try this guide if you are still searching for solution

[Q]Fastboot

Whats fastboot? Cause i wanna install a rom for goophone i5 and im using Android Ultimate Toolbox pro and i dont have any recovery on the phone cause i cant flash it, and whenever i try to flash a recovery image with Toolbox it says i need to be fastbooted... Give me a hand please
HeavenKinder said:
Whats fastboot? Cause i wanna install a rom for goophone i5 and im using Android Ultimate Toolbox pro and i dont have any recovery on the phone cause i cant flash it, and whenever i try to flash a recovery image with Toolbox it says i need to be fastbooted... Give me a hand please
Click to expand...
Click to collapse
Fastboot is a command line utility used to modify and interact with the Android filesystem through USB on your computer. You can easily download and setup ADB (Android Debugging Bridge) and Fastboot using this utility found here http://forum.xda-developers.com/showthread.php?p=42407269. You will also need to make sure you've installed the USB drivers for your device in order for fastboot to function properly. To access fastboot run the following command from command line (Make sure USB debugging is enabled in developer settings first):
Code:
adb reboot bootloader
You can then flash your recovery image with the command:
Code:
fastboot flash recovery recovery.img
Let me know if you still have questions.
Sent from my SCH-I535 using XDA Premium 4 mobile app
shimp208 said:
Fastboot is a command line utility used to modify and interact with the Android filesystem through USB on your computer. You can easily download and setup ADB (Android Debugging Bridge) and Fastboot using this utility found here http://forum.xda-developers.com/showthread.php?p=42407269. You will also need to make sure you've installed the USB drivers for your device in order for fastboot to function properly. To access fastboot run the following command from command line (Make sure USB debugging is enabled in developer settings first):
Code:
adb reboot bootloader
You can then flash your recovery image with the command:
Code:
fastboot flash recovery recovery.img
Let me know if you still have questions.
Sent from my SCH-I535 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Ok so i did the recovery command and it says waiting for device, what do i need to do?
Now if i try to fastboot using that comand it says:
ADB server is didn't ACK
*failed to start daemon*
error:
And if i write the comand to fast bood and then use Android Ultimate toolbox to flash the recovery image it just sits at waiting for device and if i cancel it and do it again it just says i need to fastboot...
if you want to flash recovery so use mobile uncle tools android app !
work on chinees device good
anabhi said:
if you want to flash recovery so use mobile uncle tools android app !
work on chinees device good
Click to expand...
Click to collapse
When i try to use MobileUncletools and i flash the recovery image, it asks if i want to boot into the new recovery, it turns off the phone, and when it turns it back on it just freezes in the apple logo
Ok so if i try to boot into fastboot with ADB and then go to Android ultimate tools pro to flash recovery, it says the device isnt in fastboot...
bump
HeavenKinder said:
Ok so if i try to boot into fastboot with ADB and then go to Android ultimate tools pro to flash recovery, it says the device isnt in fastboot...
Click to expand...
Click to collapse
You can also flash recovery from ADB shell as root by running the command (Make sure that the recovery image your using is meant for your device, and is placed on your internal storage):
Code:
cat /mnt/sdcard/recovery.img > /dev/block/{path-to-recovery-partition-block}
shimp208 said:
You can also flash recovery from ADB shell as root by running the command (Make sure that the recovery image your using is meant for your device, and is placed on your internal storage):
Code:
cat /mnt/sdcard/recovery.img > /dev/block/{path-to-recovery-partition-block}
Click to expand...
Click to collapse
Can you give me an example please? cause i tried it and it said:
"the filename, directory name, or volume label syntax is incorrect.
bump
Bump
HeavenKinder said:
Can you give me an example please? cause i tried it and it said:
"the filename, directory name, or volume label syntax is incorrect.
Click to expand...
Click to collapse
For example if I wanted to flash a recovery on my Nexus 10 without using fastboot just using adb shell I would run a command similar to this one:
Code:
cat /mnt/sdcard/clockworkmodrecovery.img > /dev/block/mmcblk0p4
If you can provide me with output of your recovery log file by going to /cache/recovery/log I can tell you which partition is your recovery partition that you need to flash.
shimp208 said:
For example if I wanted to flash a recovery on my Nexus 10 without using fastboot just using adb shell I would run a command similar to this one:
Code:
cat /mnt/sdcard/clockworkmodrecovery.img > /dev/block/mmcblk0p4
If you can provide me with output of your recovery log file by going to /cache/recovery/log I can tell you which partition is your recovery partition that you need to flash.
Click to expand...
Click to collapse
Wheres the cache file?
HeavenKinder said:
Wheres the cache file?
Click to expand...
Click to collapse
The /cache directory is located in the root (/) directory you can access the /cache directory and subsequent directories using any root file browser such as this one. You should then be able to get to recovery/log file and view it's contents.
shimp208 said:
The /cache directory is located in the root (/) directory you can access the /cache directory and subsequent directories using any root file browser such as this one. You should then be able to get to recovery/log file and view it's contents.
Click to expand...
Click to collapse
But if i don't have Google Play on the phone, how can i install the application? Do i have to search a way to flash it into the device?
HeavenKinder said:
But if i don't have Google Play on the phone, how can i install the application? Do i have to search a way to flash it into the device?
Click to expand...
Click to collapse
You can also use ADB shell to access the file contents by navigating to the /cache/recovery/log directory and looking at the output. Running the following command should show the output of the recovery log:
Code:
cat /cache/recovery/log
shimp208 said:
You can also use ADB shell to access the file contents by navigating to the /cache/recovery/log directory and looking at the output. Running the following command should show the output of the recovery log:
Code:
cat /cache/recovery/log
Click to expand...
Click to collapse
'cat' is not recognized as an internal or external command, operable program or batch file
HeavenKinder said:
'cat' is not recognized as an internal or external command, operable program or batch file
Click to expand...
Click to collapse
Make sure you run the command from ADB shell. For example first navigate to the directory where you have a ADB and Fastboot setup on your computer then open a command prompt window from that directory and run the following commands:
Code:
adb shell
cat /cache/recovery/log
shimp208 said:
Make sure you run the command from ADB shell. For example first navigate to the directory where you have a ADB and Fastboot setup on your computer then open a command prompt window from that directory and run the following commands:
Code:
adb shell
cat /cache/recovery/log
Click to expand...
Click to collapse
No such file or directory...

How to push build.prop whilst phone is in recovery mode

Hi guys
I need some serious help with my phone... i accidently edited build.prop and now my phone doesn't boot anymore.
I need to push a new build.prop file to my phone.. I can get into recovery mode on the phone and I've managed to pull build.prop from the phone but I cannot push it back due to "Permission Denied"
Does anyone know a adb command or application or something that can help me sort this out?
My phone is the Huawei Ascend P2
Thanks guys.
jdcrispe95 said:
Hi guys
I need some serious help with my phone... i accidently edited build.prop and now my phone doesn't boot anymore.
I need to push a new build.prop file to my phone.. I can get into recovery mode on the phone and I've managed to pull build.prop from the phone but I cannot push it back due to "Permission Denied"
Does anyone know a adb command or application or something that can help me sort this out?
My phone is the Huawei Ascend P2
Thanks guys.
Click to expand...
Click to collapse
If you try and mount the USB Storage ?
UltraWelfare said:
If you try and mount the USB Storage ?
Click to expand...
Click to collapse
How do I do that?
adb mount /sdcard?
jdcrispe95 said:
How do I do that?
adb mount /sdcard?
Click to expand...
Click to collapse
No from recovery
UltraWelfare said:
No from recovery
Click to expand...
Click to collapse
oh, the phone doesn't have CWM recovery.. I wish it did though
http://www.techpository.com/?page_id=224
Android: ADB – Mount a filesystem read-write
Mount a filesystem read-write
Very often when you want to write files to a particular partition on ADP1, you will get a “Permission Denied” if the partition is mounted read-only.
To get around this, you need to mount the partition read-write. Typically this is done with /system partition
$adb shell
$ su
$mount -o rw,remount -t yaffs2 /dev/block /mtdblock3 /system
(Replace /dev/block/mtdblock3 & /system with appropriate device path and mount point, as obtained from cat /proc/mounts)
This was the first result on Bing with the search terms "adb mount read write"
Sent from my Nexus 4 using XDA Premium 4 mobile app
HI Dragon
Thanks for your post
I am getting the error "sh: -o: not found" with the last command
I'm not entirely sure on how to use the remount command.. I'm trying to mount the system partition i guess?
could you please provide some noobish info on how to get this done?
I don't know what "/dev/block" means, nor "mtdblock3" .. I know /system is the part with build.prop in though
Edit: device not found
adb devices
You see yours? Good
adb shell
mount
This may tell you or try
adb shell
cat /proc/partitions
Or maybe
ls -l -a /dev/block/platform
Then from here find chip and search this and so on and so and if you find a by-name directory your good
Sent from my Nexus 4 using XDA Premium 4 mobile app
I was trying to copy a update file to the sdcard, but I kept getting permission denied, so I went into adb shell and tried remounting the phone with rw permissions and it kept saying "Device not found" ..
I think im just gonna have to take it back to 3 and wait 50 weeks to get it back

Categories

Resources