Мой ПК загружается в к чрезвычайному режиму: не удалось смонтировать/media/cdrom

Когда я включаю свой ПК, я получаю это сообщение об ошибке:

After logging in, type "journalctl -xb" to view system logs
'systemctl 1 reboot' to reboot, 'systemctl 1 default' 
or ^D to try again to boot into default mode.

Вывод journalctl -xb следующие

text including failed to mount /media/cdrom in red

Где это находится в красном цвете, я думаю, что это - причина для чрезвычайного режима.

Я плохо знаком с Ubuntu. Я использую Ubuntu 16.04.

Вывод cat /etc/fstab следующие:

fstab contents with syntax highlighting - appears to be vim, not output of cat file as stated

Когда я выполняю команду vim /etc/fstab Я получил это сообщение.

325: ATTENTION
Found a swap file by the name "/etc/.fstab.swp"
owned by: root   dated: Tue Sep 12 18:39:36 2017
file name: /etc/fstab
modified: YES
user name: root   host name: pavan-desktop
process ID: 4439
[not usable on this computer]

While opening file "/etc/fstab"
             dated: Mon Sep 11 19:21:36 2017


(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/fstab"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/.fstab.swp"
    to avoid this message.

Swap file "/etc/.fstab.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:

Swap file "/etc/.fstab.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:

Swap file "/etc/.fstab.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort: 
1
задан 30 September 2017 в 18:05

1 ответ

Это происходит, потому что Ваша система, по некоторым причинам, присоединила /dev/sr0 к /etc/fstab файл. Необходимо отключить эту запись.

  • Начальная загрузка Ваш компьютер режимом восстановления и переходят к корневой опции;
  • тип mount -o remount, rw / для разрешения полномочий записи / папка;
  • Редактирование /etc/fstab и строка комментария, что ссылки на /dev/sr0;
  • Сохранили этот файл и перезагружают Вашу систему.
2
ответ дан 7 December 2019 в 13:29

Другие вопросы по тегам:

Похожие вопросы: