Linux fstab solves the problem that a server has not been maintained for a long time recently. after the system is restarted, it enters the repairsystem mode. However, the/etc/fstab file is empty. Solution: 1. mount-oremountrw/solve Read-onlyfilesystem2, pass... linux fstab solves the problem that a server has not been maintained for a long time recently. after the system is restarted, the system enters the repair system mode. However, the/etc/fstab file is empty. Solution: 1. mount-o remount rw/solve Read-onlyfilesystem
2. view the current hard disk usage through df
/Dev/mapper/VolGroup00-LogVol00 73608360 13119504 56689408 19%/dev/hda1 101086 12950 82917 14%/boottmpfs 970612 0 970612 0%/dev/shm www.2cto.com 3, vi/etc/fstab will the following copy the content to the file./dev/VolGroup00/LogVol00/ext3 defaults 1 1 LABEL =/boot ext3 defaults 1 2 tmpfs/dev/shm tmpfs defaults 0 0 devpts/dev/pts devpts gid = 5, mode = 620 0 0 sysfs/sys sysfs defaults 0 0 proc/proc defaults 0 0 note that the red part must be consistent. 4. restart the system directly and start normally. Author: Diaoyu Islands
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service