Mounting /System? - Droid RAZR M Q&A, Help & Troubleshooting

Whenever flashing Roms through TWRP or CWM do we have to manually mount /System and stuff or does it do it automatically? Because I've never done it manually and never had problems but I read a lot that we should.
Sent from my XT907 using xda app-developers app

Some ROMs you need to, some you don't. I always just do it, to be safe. I reboot recovery after wiping, and mount system then.

I mount system before I wipe as well
Sent from my XT907 using Tapatalk 2

What exactly does mounting system do? Does it change anything when doing things like factory reset or flashing new roms
Sent from my XT907 using xda app-developers app

evastonian said:
What exactly does mounting system do? Does it change anything when doing things like factory reset or flashing new roms
Sent from my XT907 using xda app-developers app
Click to expand...
Click to collapse
Mounting /system is essentially the same as plugging a physical hard drive in. The phone knows about the partition, knows its size and type, but can't access it for r or rw until it's mounted. It won't affect factory reset, as that wipes /data and /cache. Even if it did touch /system, your recovery should do that automatically (hard to wipe something that isn't there...)
As far as ROMs go, it's a bit more complex. As I understand it, as safestrap handled /system differently, it would automatically mount it. Some ROM installer scripts wouldn't try to mount /system because of this. Also, TWRP had a bug causing /system to be unmounted and report it was mounted, thus preventing a successful mount. It would have to be restarted to fix that bug.
As other posters said, it's not a bad idea to mount /system if you plan to flash a ROM. That will certainly solve any problems...
Sent from my Nexus 7 using Tapatalk HD

^^^That's an excellent description. Even dummies like me can understand that.

Related

Nandroid File Location

Got my Nexus Thursday so rooted and flashed recovery (twrp) Friday and did a nandroid in prep to flash aosp ROM but when I went looking for the file I noticed its in /data/media/tarp/backups as opposed to /sdcard/tarp/backups. Is there a way to change the directory? I created the backups folder under the trwrp on the sdcard but the backup didn't save there where I did a 2nd nandroid as a test. Do I need to fix permissions or anything?
Sent from my Nexus 7 using xda app-developers app
/sdcard is a link to /data/media. They are three same file.
Just make sure you use the latest version in TWRP as it properly handles the changes in directories introduced in 4.2.
Sent from my Nexus 7
Cool. I downloaded the image from the twrp site and installed via adb so it should be correct. I guess I can install Goo Manager and make sure its up to date. I was concerned that if I wipe /data before a restore that I'll delete the nandroid.
Sent from my PG41200 using xda app-developers app
Note that in TWRP a factory reset will format /data EXCLUDING /data/media. This means it won't wipe your /sdcard.
Sent from my Nexus 7
BillGoss said:
Note that in TWRP a factory reset will format /data EXCLUDING /data/media. This means it won't wipe your /sdcard.
Sent from my Nexus 7
Click to expand...
Click to collapse
Thanks. That is exactly what I was concerned with so great to know.
Sent from my EVO using xda app-developers app

Wipe /system does it affect sdcard?

If I wipe /system partition from CWM recovery it doesn't touch the virtual sdcard does it?
Pretty sure it doesn't but wanted to check I dont lost all my pics
Sent from my Nexus 4 using xda premium
No. Just don't use the "Wipe Data" option. Factory reset is OK. It preserves the SD.
estallings15 said:
No. Just don't use the "Wipe Data" option. Factory reset is OK. It preserves the SD.
Click to expand...
Click to collapse
Thats what I thought.
Factory reset
Wipe system
Flash ROM
None of the above touch the virtual sdcard and will give a completely fresh system install
Sent from my Nexus 4 using xda premium
Lothaen said:
Thats what I thought.
Factory reset
Wipe system
Flash ROM
None of the above touch the virtual sdcard and will give a completely fresh system install
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
The only fresher would be ...Awesome...'s wipe script. It wipes the boot partition as well.

[Q] Flashing CM from touchwiz?

When flashing CM 10.2 nighlty from stock TouchWiz, in Clockworkmod Recovery, is it necessary to format /system and format /data before doing so? Also would I lose all nandroid backups that I save internally by doing this?
I think you should read the OP of the ROM before you do anything. It will have the info you need.
You will not lose any data on any SD. It's always recommended to back that up though.
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
SimpIe said:
When flashing CM 10.2 nighlty from stock TouchWiz, in Clockworkmod Recovery, is it necessary to format /system and format /data before doing so? Also would I lose all nandroid backups that I save internally by doing this?
Click to expand...
Click to collapse
it's my opinion that every user should have a micro sd card. i dont understand why anyone wouldnt pay $10 to have their nandroids, rom, kernel, etc stored safely on a separate piece of media. again, my opinion.
you are wanting to change android versions here in addition to changing ROMs. when you change ROMs, you can just wipe data/factory reset and wipe both caches. when you transition from one version to another, in this case from 4.2.2 to 4.3, you need to format /system and i highly recommend to format /data. this will alleviate headaches down the road and give your device a great, clean point to start from. if you're going to commit to placing a new OS on your device, commit to doing it the best way possible. having a micro sd card will keep all your files safe during these full wipes.
cheers
SimpIe said:
When flashing CM 10.2 nighlty from stock TouchWiz, in Clockworkmod Recovery, is it necessary to format /system and format /data before doing so? Also would I lose all nandroid backups that I save internally by doing this?
Click to expand...
Click to collapse
You should always wipe data/factory reset and format /system when flashing a new ROM.
You will not lose nandroid backups or anything else stored on internal storage. Those things are not stored on /data or /system.
Sent from my SGH-I337 using XDA Premium 4 mobile app

[Q] soft brick after TWRP data format

Anyone else getting /data corruptions after formatting /data in TWRP? This has happened to me in 2.5.0.2 and in the 2.6.x.x versions. Only an ODIN back to stock ROM and recovery followed by format /data in recovery can restore the partition.
Also, TWRP appears to not wipe right either, wallpaper settings and icon themes keep hanging around after factory reset and advanced wipe option. Any thoughts?
Thanx in advance.
smizak said:
Anyone else getting /data corruptions after formatting /data in TWRP? This has happened to me in 2.5.0.2 and in the 2.6.x.x versions. Only an ODIN back to stock ROM and recovery followed by format /data in recovery can restore the partition.
Also, TWRP appears to not wipe right either, wallpaper settings and icon themes keep hanging around after factory reset and advanced wipe option. Any thoughts?
Thanx in advance.
Click to expand...
Click to collapse
I've had the wall papers stick around too a few times. Try a different recovery.
Sent from my SPH-L720 using Tapatalk 4
daniel4653 said:
I've had the wall papers stick around too a few times. Try a different recovery.
Sent from my SPH-L720 using Tapatalk 4
Click to expand...
Click to collapse
Funny, I just tried this with CWM and the wallpapers still persist....odd. Gotta be something stupid. Would love to know...
Wasn't formatting buggy/broken on TWRP?
Pretty sure I read that somewhere in the forum.
I think it was in the edify script guides.

[Q] Cache and Data mount issues

So I've been using various JB ROM's on my Defy for the past couple of years, but this time I made the mistake of using the factory reset within the stock recovery. I found a thread that mentioned using the "ultimate wipe" for defy and then reflashing my ROM of choice would fix issue, but when I use the wipe the custom recovery still tells me it is unable to mount /cache or /data on my phone.
My phones internal storage is also showing as 0, so I am unable to install any apps etc.
I'm completely stumped right now, so any help at all would be greatly appreciated. I'll provide any further information I can if its needed, thanks in advance
DSpartox said:
So I've been using various JB ROM's on my Defy for the past couple of years, but this time I made the mistake of using the factory reset within the stock recovery. I found a thread that mentioned using the "ultimate wipe" for defy and then reflashing my ROM of choice would fix issue, but when I use the wipe the custom recovery still tells me it is unable to mount /cache or /data on my phone.
My phones internal storage is also showing as 0, so I am unable to install any apps etc.
I'm completely stumped right now, so any help at all would be greatly appreciated. I'll provide any further information I can if its needed, thanks in advance
Click to expand...
Click to collapse
I think you need to start over from SBF.
Sent from my Nexus 7 using Tapatalk
DSpartox said:
So I've been using various JB ROM's on my Defy for the past couple of years, but this time I made the mistake of using the factory reset within the stock recovery. I found a thread that mentioned using the "ultimate wipe" for defy and then reflashing my ROM of choice would fix issue, but when I use the wipe the custom recovery still tells me it is unable to mount /cache or /data on my phone.
My phones internal storage is also showing as 0, so I am unable to install any apps etc.
I'm completely stumped right now, so any help at all would be greatly appreciated. I'll provide any further information I can if its needed, thanks in advance
Click to expand...
Click to collapse
Your partitions might have a problem and the wipe script doesn't format them, it just deletes their contents. In the bootmenu you can format your /data and /cache partitions (ext4); if that doesn't work, then yes, gotta start over from SBF.
Antiga Prime said:
Your partitions might have a problem and the wipe script doesn't format them, it just deletes their contents. In the bootmenu you can format your /data and /cache partitions (ext4); if that doesn't work, then yes, gotta start over from SBF.
Click to expand...
Click to collapse
Thank you heaps for the help. I just decided to go ahead and reflash SBF. That all went fine, RSDlite gave a pass. I then went into the stock recovery in order to do the factory reset again before I root, and Data now formats, but Cache throws up the error "E:Can't mount CACHE:recovery/log".
The actual phone seems to work fine if I boot it up, but that error just makes me wonder as I'm not sure how much of a problem it really is

Categories

Resources