Android shell

Mount HTC one M8 system partition as read write

HTC one M8So why cant you write to system partition on HTC devices even after rooting? it’s because they are S-ON by default. which means that neither can you access certain areas of the system nor can you guarantee a permanent root. S-OFF means that the NAND part of the device is unlocked and can be written to. S-ON also has some other restrictions like image signatures etc. to make an end run around the S-ON problems, you can temporarily mount your system partition as read/write by running the following commands via ADB. or just the last two lines in terminal emulator on the device itself.


adb shell
mount -o rw,remount -t ext4 /dev/block/mmcblk0p45 /system


Linux shell

Mount as a local folder on ubuntu as webdav

Whats WebDav: Web Distributed Authoring and Versioning (WebDAV) is an extension of the Hypertext Transfer Protocol (HTTP) that facilitates collaboration between users in editing and managing documents and files stored on World Wide Web servers.
Whats [.net]: is cloud-storage service like Dropbox, SugarSync and google drive. After uploading your various documents, media files, and the like, you can easily access them online, share them with others, stream media to a mobile device, and so on. An awesome feature that comes with using on an android device is that you get 50GB of free space. Sadly per file size limit is a very low of 100MB 🙁 However you can enjoy as a local folder on your computer whether you use windows or linux. I just mounted it as a local folder on my Ubuntu 12.04 desktop and 11.10 Server and heres the simple steps to follow :

install davfs:

sudo apt-get install davfs2

make a directory where you will be mounting the box folder. I am using a folder called box under the home directory of a user called homer

mkdir /home/homer/box

mount the folder. after using this command just insert username/password when prompted.

sudo mount -t davfs /home/homer/box

add your credentials to /etc/davfs2/secrets

sudo nano /etc/davfs2/secrets

insert the following, just replace your username/pass in the proper spot.: username password”

now you also have access to dav:// as a location in your file explorer.