- Question: Q: Where to use » sudo mount -uw / » to make HD read/write
- Helpful answers
- How to make root volume writeable in Big Sur?
- Answers
- Как включить Retina-разрешение на внешнем мониторе Mac
- Почему картинка на внешнем мониторе нечеткая
- Как отключить защиту SIP
- Как включить HiDPI на любом экране Mac
- Как обойтись без сторонних приложений
- How to Enable Write Access on Root Volume on macOS Big Sur and Later
- EliteMacx86
Question: Q: Where to use » sudo mount -uw / » to make HD read/write
Where and how to use » sudo mount -uw / » to make HD read/write in Catalina?
I asked a tech how to do this and was given. » sudo mount -uw / » . Problem is
I do not know where to enter the code to make the HD read/write. All I know is Terminal..
My goal is to be able to edit some of the plists and other files in Catalina for security reasons.
I would like to know how to use the command to unlock a «read only’ (external). as well as the
HD in Catalina. my current drive.
What I tried was disabling SIP and then going to Terminal > sudo mount -uw / > enter > typed in password > and then tried to edit a file from the usr/share/vim folder. No luck! I am needing to do this and I ask for the proper procedure. Same question applies to the data folder in Catalina as well.
Mac mini, macOS 10.15
Posted on Nov 7, 2019 2:20 AM
Last time I checked you definitely can. BUT YOU SHOULDNT.
That being said. Just disable SIP and try that same command again. That worked fine for me a few weeks ago.
Again. You really shouldn’t do this. The stuff protected in that area is not meant to be changed, but seeing as I stumbled across the question, figured I would answer it.
Posted on Nov 21, 2019 8:57 PM
Helpful answers
Catalina forces the operating system boot volume to be read-only. You can’t change it — it’s very integral to how Catalina works that the system is read-only — no if’s and’s or but’s.
But, only a portion of the files/folders in the boot volume are on this special read-only partition. Where exactly are the plist files you wish to change located?
By the way, the special «mount -uw /» command is something that could be done in single-user mode, but that is no longer valid for Catalina.
Источник
How to make root volume writeable in Big Sur?
In Catalina, the root volume could be mounted as read/write by disabling SIP and entering the following command:
This command doesn’t seem to be working under Big Sur:
What should I do now?
Answers
Why do you need to modify the root volume? Given the read-only system volume change we announced last year, and its further evolution this year, that’s something best avoided where possible.
My experience is that most of the common use cases for this are covered by synthetic symlinks (see the synthetic.conf man page).
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = «eskimo» + «1» + «@apple.com»
/etc/synthetic.conf . does not seem to work in Big Sur:
Any further thoughts?
For example i would like to edit /System/Library/LaunchDaemons/tftp.plist file and add -l so i can log tftp to syslog. How you can do it ?
Therefore, I usually use my custom display profile to enable HiDPI support at 2560×1080, which requires access to /System/Library/Displays/Contents/Resources/Overrides/ .
Thanks for the explanation.
Does the equivalent path in /Library work for this? If not, you should definitely file a bug about that. Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = «eskimo» + «1» + «@apple.com»
Try the directions below:
csrutil authenticated-root disable
sudo mount -uw /Volumes/Macintosh\ HD\ 1
sudo /System/Library/Filesystem/apfs.fs/Contents/Resources/apfssystemsnapshot -s «SnapshotName» -v /Volumes/Macintosh\ HD\ 1
sudo /System/Library/Filesystem/apfs.fs/Contents/Resources/apfssystemsnapshot -r «SnapshotName» -v /Volumes/Macintosh\ HD\ 1
Does the equivalent path in /Library work for this? If not, you should definitely file a bug about that. Please post your bug number, just for the record.
FYI, I found most enlightening.
@jichi_zhang, I’m still interested to know if switching to the /Library directory works.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = «eskimo» + «1» + «@apple.com»
I have the same problem as the OP. I got a 1440p screen, the LG 27GL850, on Big Sur Beta 4.
In Catalina, I solved the issue of small UI by using a tool on GitHub called one-key-hidpi. It
makes MacOS think a display is a Retina display, making the scaling settings the Retina monitors get show in the Display options System Preferences for my 1440p.
In Big Sur, the tool no longer works since it doesn’t have access to the root volume anymore.
Like everyone else here, I discovered that you have to as it is said in:
In the mounted directory, I placed necessary file at /System/Library/Displays/Contents/Resources/Overrides/ to add a display option.
By the way, I used this site: wacky.one/blog/macos-hi-dpi/#one-key to generate the file. The site is in Chinese but the file generation part is at the bottom.
When I rebooted the system, I used a tool called RDM (download link is at very bottom of site), which gives you more options for display settings to check if the changes took effect, they didn’t. However, I suspect it was fault on my part. Perhaps I made an error and put the file into the wrong Library. I will try this again tomorrow, I feel like this method is promising.
If anyone is also stuck, feel free to try this method and post your findings here, thanks.
I will also submit a feedback since I’m on the beta, but it likely won’t be addressed any time soon since people have been asking for lower resolution displays to have scaling setting for years now. For now, I will be doing the real work in Catalina.
Источник
Как включить Retina-разрешение на внешнем мониторе Mac
Мы уже рассказывали о проблемах, которые могут возникнуть при выборе внешнего монитора для Mac. При неподходящем разрешении картинка на экране будет нечеткая, шрифты могут быть смазанными, а границы элементов превратятся в “лесенку”.
Даже после покупки монитора с “правильным” разрешением для macOS картинка может быть хуже, чем на экране MacBook или iMac. Сейчас разберёмся, почему так происходит и как это исправить.
Почему картинка на внешнем мониторе нечеткая
Оригинальные мониторы на компьютерах Apple работают в HiDPI режиме, по сути система удваивает разрешение, чтобы добиться четкости шрифтов и границ элементов. Даже на правильно подобранном внешнем мониторе картинка будет не такая четкая, как на оригинальной матрице MacBook или экране iMac.
Не видите разницу? Включите увеличение экрана (Настройки – Универсальный доступ – Увеличение) и приблизьте картинку в 3-4 раза.
На экране Mac четкость не пропадет даже при большом увеличении, а на внешнем мониторе сразу же “поплывут” шрифты, а границы элементов интерфейса станут нечеткими.
Оказывается, есть способ заставить компьютеры Apple выводить изображение в HiDPI режиме и на внешний монитор.
Как отключить защиту SIP
Для работы с нестандартными разрешениями экрана потребуется модифицировать некоторые системные файлы. Еще в операционной системе El Capitan купертиновцы добавили специальную защиту SIP (System Integrity Protection), которая по умолчанию защищает важные данные от модификации.
На время настройки разрешения придется ее отключить. Для этого делаем следующее:
1. Перезагружаем Mac.
2. Во врем включения зажимаем клавиши Command + R для входа в режим восстановления.
Это нужно делать на оригинальной беспроводной или любой проводной клавиатуре. Сторонние беспроводные клавиатуры, скорее всего, подключаются к системе уже после начала загрузки системы и не успеют дать нужный сигнал.
3. После запуска в режиме восстановления в строке меню выбираем Утилиты – Терминал.
4. Вводим команду:
Подтверждаем действие паролем администратора.
5. Перезагружаем Mac в обычном режиме.
Теперь системные файлы можно модифицировать. После всех проделанных манипуляции настоятельно рекомендуем включить защиту обратно. Делается это аналогично, но с использованием команды “csrutil enable“.
Как включить HiDPI на любом экране Mac
Проще всего для этого использовать сторонние приложения вроде SwitchResX или QuickRes.
1. Вводим следующую команду в Терминале для активации режима HiDPI:
sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
2. Скачиваем подходящую программу с сайта разработчика и устанавливаем ее.
3. Запускаем приложение (на примере SwitchResX) и выбираем подходящее для монитора разрешение с пометкой HiDPI.
4. Если нужного разрешения в формате HiDPI нет, придется добавить его вручную. Для этого мы и отключали защиту SIP.
5. Переходим в параметры приложения и открываем вкладку своего внешнего монитора.
6. Открывшем раздел Настроенные разрешения и нажимаем “+”.
7. Включаем тип Масштабируемое разрешение.
8. Вводим удвоенные показатели пикселей для своего монитора.
Например, для монитора с разрешением 1920 х 1080 необходимо указать разрешение 3840 х 2160.
9. Нажимаем Файл – Сохранить настройки в строке меню.
10. Перезагружаем Mac.
Теперь в приложении можно выбрать добавленное разрешение с HiDPI. Можете сравнить картинку при увеличении масштаба.
Как обойтись без сторонних приложений
Держать сторонние приложения для активации всего одной фишки – не самая лучшая идея. Тем более, что обе описанные выше программы платные. Конечно, есть и бесплатные альтернативы, например, утилита RDM, но с ее помощью можно лишь изменить разрешение после того, как оно было добавлено в SwitchResX.
Есть способ обойтись без сторонних программ. Для этого придется немного повозиться в терминале. Всё как вы любите!
Внимание! Все описанные ниже действия вы делаете на свой страх и риск. Обязательно создайте резервную копию перед проведением описанных манипуляций.
1. Для начала активируем возможность использования режима HiDPI командой в Терминале:
sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
2. Идентифицируем свой дисплей при помощи команды:
ioreg -lw0 | grep IODisplayPrefsKey
3. Находим в полученном ответе идентификаторы производителя (DisplayVendorID) и модели (DisplayProductID).
Если вводите команду на MacBook с подключенным монитором, система выдаст информацию как о штатной матрице, так и о внешнем дисплее. Вам нужны данные из строки, в конце которой указано “AppleDisplay”, строка с отметкой “AppleBacklightDisplay” нам не нужна.
4. Переходим на сайт, который генерирует HiDPI настройки для любого монитора.
5. Вводим свои значения DisplayVendorID и DisplayProductID в соответствующие поля.
6. Ниже указываем желаемые параметры разрешения для своего монитора. Можете создать несколько параметров с разными разрешениями, включенной и отключенной опцией HiDPI.
Ненужные варианты разрешения можно удалить. Обратите внимание, что в самом низу страницы расположен калькулятор разрешения, который подскажет правильное количество пикселей при заданном соотношении сторон.
7. Когда все нужные варианты разрешения внесены, скачиваем сгенерированный файл настроек. Вкладку с сайтом при этом не закрываем, она нам еще понадобится.
8. В Терминале вводим команду:
Это необходимо, чтобы перемонтировать системный раздел в macOS Catalina с возможностью записи. Это еще одна защита данных в операционной системе Apple. Введенная команда будет действовать до первой перезагрузки, затем системный раздел снова будет доступен только для чтения.
9. В Finder переходим по пути /System/Library/Displays/Contents/Resources/Overrides, здесь нужно создать папку, чтобы получить правильный путь к файлу конфигурации. Он указан на сайте.
Если нужная папка (с вашим DisplayVendorID) существуют, пропускаем этот шаг. Если папки нет, создаём ее при помощи команды “sudo mkdir путь_который_указан_на_сайте“.
10. Остается лишь скопировать сохраненный файл конфигурации по нужному пути.
Для этого вводим такую команду:
sudo cp путь_к_загруженному_файлу_plist путь_к_созданной_папке
Вводить путь вручную необязательно. Достаточно ввести начало команды “sudo cp “, затем перетащить в окно Терминала файл *.plist и папку назначения. Пути при этом пропишутся автоматически.
11. После выполнения команды перезагружаем Mac.
Теперь система будет предлагать HiDPI разрешение для вашего монитора в стандартных настройках.
Источник
How to Enable Write Access on Root Volume on macOS Big Sur and Later
EliteMacx86
Administrator
How to Enable Write Access on Root Volume in macOS Big Sur
An EliteMacx86 Exclusive Guide — This guide covers mounting of system root volume on macOS Big Sur. By following this guide, you’ll be able to have write access onto the system’s root volume.
Overview
Recently, Apple announced their new macOS lineup i.e macOS Big Sur 11.0 which is Apple’s newest and most awaited OS. Catalina adding massive updates and improvements from its predecessor, Mojave.
Packed with new features and functionality, the most noticeable update can be seen and experienced is the new GUI. Featuring a much more «iOS» look and feel and as smooth as butter. Along with this, Apple has introduced some security protection which prevents the writing to system’s root volume. Since macOS Catalina, Apple has split the OS and user data into two volumes where the system volume is «read-only» by default which prevents modification of system root volume.
A very quick way to mount system volume was to use «sudo mount -uw /» in Terminal. However, with Big Sur, this doesn’t works and the command throws an error. If you’ve attempted to make the root volume as writable using the command which works on macOS Catalina, you might be familiar with the following error.
With macOS Big Sur, Apple added some more protection and unfortunately the system root volume cannot be mounted. The error is very normal on Big Sur and the above command will not allow you to mount the system’s root volume. In macOS Big Sur, the «System» directory has been completely sealed and it will not accept any changes. All the kexts which you used to install into S/L/E, now gets installed onto L/E instead. Even if you attempt to install Mojave or Catalina and you have some third party kexts on S/L/E and proceed with an update, the system will remove those kexts and you’ll have those kexts in a folder at your Desktop after the upgrade. However, installing the same kexts to L/E directory will work and will load too. But there are kexts which must be installed in S/L/E to be particular and as Big Sur doesn’t gives you the option, you’re out of luck.
Why writing to System’s Root Volume is Required?
The real question comes that why do you need to mount the system’s root volume and modify it when Apple doesn’t allows it? A simple answer is in some environments, this can be needed for some special purpose such as Hackintosh where you may have a need to modify the kexts in S/L/E directory or even for the real Mac users who are willing to run macOS Big Sur on their unsupported Macs.
Mounting System’s Root Volume
Interestingly, there is an actual workaround for mounting the system’s root volume and having write access to it. Where you can modify the files and make the changes. To enable write access onto your system’s volume, follow the steps outlined below.
WARNING:
Due to the update functionality in macOS Big Sur, changing the system volume can break OS updates. By using this guide, you understand all the risks involved and EliteMacx86 shall not be liable for any of the damages that might occur and takes no responsibility for any of your action. Please proceed with caution!
Creating Mount Point for the volume
The very first step is to create a mount point for the volume where the system’s root volume will be mounted. To create the mount point, execute the commands below.
1. Open Terminal.
2. Type:
Finding the required Disk Identifier
The next step is to find the target disk name for mounting. To find the disk name, follow the steps below.
1. Open Terminal.
2. Type:
3. This will list all the connected drives on the system. You’ll find something similar like the screenshot attached below. The disk name are hidden for the privacy reasons.
4. The /dev/disk2 is the actual disk and the capacity is 250GB. The APFS container has been created on disk2 as /dev/disk5 which is the system. A very quick way to determine the disk identifier is finding one with «synthesized» and look for the system’s volume name. In our case, it’s Macintosh HD, your’s could be different from ours. Once you locate the volume name, just check for the identifier. In our case, the volume name is «Macintosh HD» and the identifier is «disk5s5» and that’s the disk name we’re looking for.
Mounting Drive
The next step is to mount the drive into the directory «livemount» we created in the very first step. To mount the drive, follow the steps below.
1. Open Terminal.
2. Type:
3. You’ll be prompted for the password. Simply enter your system’s password and press enter.
Finding Mounted Volume
Now, as you have mounted the volume, you’ll need to open the mounted volume for write access. To open the mounted volume, there are two ways.
1. Open Finder.
2. Type:
The other way is to manually find the path. The path for the mounted volume is
Macintosh HD/Users/Yourusername/Macintosh HD
Notes:
- The Macintosh HD may differ from your actual system’s volume name.
- «Yourusername» is your user name.
Rebuilding Kernel Cache
If you have edited either S/L/Kernel, S/L/E directory, you’ll also need to rebuild a kernel cache
Creating Snapshot
Once you have finished editing the system volume, you’ll need to create a new snapshot. To create a new snapshot, follow the steps below.
Источник