How do I change file system in recovery mode to read-write mode?

1

During the adventures of updating to kernel 3.10.16 and Cinnamon 2.0, it was often necessary to boot into the Linux Mint 15 recovery mode to perform video driver installations at the root prompt.

The problem? Recovery mode defaults to a read-only filesystem. Video driver installation requires creating temporary files, but temporary files require a writeable filesystem. The result is that the video drivers refuse to install.

Here is how to change the recovery mode filesystem to read-write at the root prompt.


1) First, open the GRUB boot menu by holding or tapping the right shift key on the keyboard when the system boots. It might take a few tries since it sometimes seems to skip the right shift key if it is not pressed at the correct moment.

2) In the GRUB boot menu, choose the Recovery Mode line of the kernel you wish to boot and press the Enter key on the keyboard.

GRUB Boot Menu. To get this menu, hold or tap the right shift key on the...

0 0
2

M-x toggle-read-only

On my Windows box, that amounts to Alt-x to bring up the meta prompt and typing "toggle-read-only" to call the correct elisp function.

If you are using the default keyboard bindings,

C-x C-q

(which you read aloud as "Control-X Control-Q") will have the same effect. Remember, however, given that emacs is essentially infinitely re-configurable, your mileage may vary.

Following up from the commentary: you should note that the writeable status of the buffer does not change the writeable permission of the file. If you try to write out to a read only file, you'll see a confirmation message. However, if you own the file, you can write out your changes without changing the permissions on the file.

This is very convenient if you'd like to make a quick change to a file without having to go through the multiple steps of add write permission, write out changes, remove write permission. I tend to forget that last step, leaving...

0 0
3

Quote:

Originally Posted by

ruscan.calin

activate USB debugging then in console

Code:

adb shell su mount -o rw,remount /dev/block/mmcblk0p1 /system adb push build.prop /system/build.prop

check where is your build.prop

OMG ruscan.calin i COULD KISS YOU! I had tried to change my OG EVO 4G's buildprop file to another phone so that I could purchase & download an incompatible Google Play app. However after I restarted the phone wouldn't start! It would boot into my rooted HTC EVO 4G Android 2.3.3 and HTC Sense 2.1 but it would get stuck on the wallpaper with just the notification bar at the top and all buttons would be frozen. However I noticed when I plugged in my phone to my computer via usb the computer recognized it. I always keep my phone with USB debugging enabled so I thought I should be good right? I have spent the last 4 hours trying to install and setup adb with no real previous experience with it. I am familiar with dos from years...

0 0
4

The problem is with "Disks" - gnome-disk-utility.

The user is presented with a goofy question: "Show in user interface":

A new user will look at that and think: That's a daft question. Of course I want it to show in user interface. But it's not doing what they think it's doing.

If you mount something under /media or in your home folder it creates a link to that mount point on the side panel of your file manager and depending on what desktop you use may also create a link to it on your desktop.

But Disks defaults to mounting things under /mnt which is where you traditionally mount partitions and where by default it does not automatically create links on the side panel or the desktop. "Show in user interface" among other things adds x-gvfs-show as an option and makes things mounted under /mnt display as if they were mounted under /media.

It's convoluted logic and the system can't handle it because it doesn't recognize the option. There's a lot of...

0 0
5

Hi, I have Debian and I have a drive that came off my Mac OS X. 10.5, I think anyway the disk on that machine has all my CD's that I put in itunes. I would like to recover this music as we had a flood and lost most of the CD's, so it's worth a little digging to recover them.

This drive is connected along with the other drives via the SATA interface within the computer. It is not plugged into some type of USB or other connection, so it's just like the rest of the drives on this computer.

When I try to go to the directory, it says I'm not the owner, so can't access the directory. If I go via an su terminal window and attempt a chmod, it says the file system is in 'read only' mode.

How to you change this? I understood that this (LInux) has the ability to read/write the Apple file system, so why is it mounted read only?

What is a 'special device'? Where in the docs do you find this information?

I tried

Code:

#chmod -v a=+rw jkwilborn...
0 0
6

I have messed up my sudoers file and I want to change the permission on it.

When I login in recovery mode, I cannot run the command chmod as it is read-only option.

I tried mount -o remount,rw / in recovery mode. Didn't work for me:

Err : Ext4-fs remount. Opts errors=remount-ro

How can I boot into recovery mode and with read-write option?

I did some web searching on "Recover Mode Read Only" and came across this post on LinuxQuestions.org website.

Shutdown the computer Boot into Recovery Mode --After BIOS load, hold down Shift key to access the grub menu --Once in grub menu, select the entry ending in "(recovery mode)" From the next menu selected option to enter Root Session At the root session, execute command mount -o rw,remount / to remount the filesystem as read-write

I always use following way to change into read/write mode

Login in Safe Mode From the Menu just go to Grub option, it will give a message like Updating grub will mount your...
0 0
7

I don’t have a specific use case for this, but I thought I’d experiment and see just how this can be done. I’ve recently changed over to encryption on my smartphone, because it came to my attention that it’s possible to use the Android debugger to get access to an Android device’s flash even if you don’t have the unlock pin. This of course requires physical access to the phone.

This procedure illustrates why it’s a damned good idea to encrypt your phone.

Go to this link and download the Android SDK and install it. Install to the default location. Since there’s a good chance you don’t have a 64-bit JDK installed too, go to this link and download the latest JDK for Windows x64. Install that too.

You’ll probably also have to create a JAVA_HOME environment variable. That’s described in the first link.

Run Android Studio as Administrator. Click Configure. Click SDK Manager. Click “Deselect All” then “Select Updates”. Now, tick “Android SDK Platform-tools”...

0 0
8

Without remount the root filesystem, it is not possible to edit or change system files when booting Linux into single-user maintenance mode.


As shown in the “silent” screencast (below), RHEL 5.2 cannot boot up properly and force me to enter maintenance mode. As soon as I open /etc/fstab file using vi editor, it shows the file is read-only only, then a W10 warning of changing readonly file, followed by E303 error that says “unable to open swap file for /etc/fstab, recovery impossible”. I can’t save the file changes even using

:wq!

because of “E212: can’t open file for writing”.

So, how to fix /etc/fstab error if I can’t save changes or corrections made to /etc/fstab file in maintenance mode? Well, the solution is simple. Just remount root filesystem (/) in read-write mode:

mount -o remount,rw /

Then, it is possible to edit or correct /etc/fstab file (or any system files in /etc directory) in Linux maintenance mode.



...

0 0
9

"My iPhone 6 is stuck in recovery mode loop after battery change".

"My iPhone 7 Plus got stuck on recovery mode after upgrade to iOS 11/10. And the iPhone won't restore. How to fix iPhone stuck in restore loo".
……

We have to face such frustrating situations sometimes. Although we think we update our iPhone X/8/8 Plus/7/6/6s/SE to the lateset iOS under the instruction step by step, but the recovery mode suddenly appeared. When facing such a problem, we usually do not know what to do and how to exit our iPhone from recovery mode.

Don't worry! This article is written to tell you what you can do when your iPhone stuck in recovery mode and how to recover lost data from iPhone when iPhone is stuck in recovery mode.

FonePaw iOS System Recovery is a powerful recovery mode loop fixer that can help you to exit your iPhone from recovery mode without iTunes. This software can also help to recover the data lost during the iOS 11/10 update. You can...

0 0
10

Summary – Many Android users are facing the problem “No Command” error in Recovery Mode on their Android devices. Since, I have found that this discussion has become one of the hot topics in many forums & community websites, I have decided to help those users by writing this helpful blog on how to fix “No Command” Error In Recovery Mode on Android. I will show how you can bypass this screen and when you successfully bypass through this screen you will then see the normal Android Recovery Menu for which you are looking for. This fix will work for any Android Phones and Tablets.

Additional Reading:

What Is Android No Command Screen?

The Android No Command is very troublesome screen that sometimes gets displayed when you try to reset Android device. Sometimes when you boot into recovery mode you may see the Resting Android Robot (icon) with its back or Exclamation Point in triangle saying “No command“. In most of the cases when users try to reset their...

0 0
11


Question:

I have messed up my sudoers file and I want to change the permission on it.

When I login in recovery mode, I cannot run the command chmod as it is read-only option.

I tried mount -o remount,rw / in recovery mode. Didn't work for me:

Err : Ext4-fs remount. Opts errors=remount-ro

How can I boot into recovery mode and with read-write option?


Solution:1

I did some web searching on "Recover Mode Read Only" and came across this post on LinuxQuestions.org website.

Shutdown the computer Boot into Recovery Mode --After BIOS load, hold down Shift key to access the grub menu --Once in grub menu, select the entry ending in "(recovery mode)" From the next menu selected option to enter Root Session At the root session, execute command mount -o rw,remount / to remount the filesystem as read-write


Solution:2

I always use following way to change into read/write mode

Login in Safe...
0 0
12

Question: I booted Ubuntu into recovery mode to fix a configuration file, but I noticed that the root filesystem is mounted as read-only. How can I remount a filesystem as "read-write" in Ubuntu recovery mode?

When you enter a recovery mode in Ubuntu, the root filesystem gets mounted as "ready-only" by default, not allowing you to update or recover any file in the root file system.

You can actually remount a filesystem as read-write on-the-fly by using mount command.

To remount the root filesystem as read-write:

# mount -o rw,remount /

Subscribe to Ask Xmodulo

Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.


Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support...

0 0
13

OpenOffice by Apache is an open-source alternative to the Microsoft Office software suite. The suite includes components for text documents, spreadsheets, images and databases. Depending on the permission or attribute settings of the documents that you open, you might find that you are unable to edit the content. To disable the read-only mode for documents, you either have to change the way the document is opened, remove the read-only attribute before opening the file or save the contents to a new file.

Disable Read-Only Mode When Opening File

When you open a document in OpenOffice from the Menu bar of the chosen module, you are given the opportunity to specify read-only mode. Read-only mode should be disabled by default when you open files from the Menu bar or with the "Ctrl-O" shortcut but if not, you can do so manually. Clear the "Read-only" check box above the file name input box on the Open window before clicking the "Open" button to turn off read-only mode....

0 0
14

Any hacker needs full access to the system files to play with the system. Andoid /system partition is read-only by default. Here is an HOWTO to mount it in read-write mode. It is assumed that you have installed android SDK in your workstation. We use adb tool in tools directory of SDK.

1. Identifying the /system partition device file: Follow the sample session.

C:\android-sdk-windows-1.1_r1\tools>adb shell

$ su

# mount
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/block/mtdblock3 /system yaffs2 ro 0 0
/dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block/mmcblk0p1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8 0...

0 0