Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The system cannot be started, mount-o remount,rw / modify fstab in single user mode

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

When our Linux system cannot be started, we usually need to go into single-user mode to modify some configuration files or adjust some parameters. But after entering single-user mode, our / file system is read-only and cannot be modified, so we need to use a command: mount-o remount,rw / this command to make our / path file system readable so that we can modify it freely.

For example:

Added / etc/mtab

/ dev/sdb1 / install ext3 rw 0 0

/ etc/fstab

LABEL=/install / install ext3 defaults 1 2

Then the system restarts: it won't get up, hint

Give root password for maintenance

(or type control-d to continue:)

After entering the root password, I entered the system and wanted to remove the added content. But the prompt is read-only. Do not allow modification

Use the following methods

Mount-o remount, rw /

Because root directory / is mounted inread only mode. Type follwing command, then you should be able to editrc.sysint script.

Now you can modify the / FSTAB file again. Finally, reboot, the system starts successfully.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report