/dev/root: No such file or directory
/***************************************************************************
* /dev/root: No such file or directory
* 说明:
* 在使用SD卡自动扩展功能的时候,发现/dev/root不存在,找一下原因。
*
* 2017-4-1 深圳 南山平山村 曾剑锋
**************************************************************************/ 一、参考文档:
. Find out what device /dev/root represents in Linux?
http://unix.stackexchange.com/questions/17563/find-out-what-device-dev-root-represents-in-linux
. Quota problem /dev/root not existing?
http://forum.directadmin.com/showthread.php?t=45746&p=234386#post234386
. Trouble with quota's
http://forum.directadmin.com/showthread.php?t=46424 二、cat /etc/fstab
# <file system> <mount pt> <type> <options> <dump> <pass>
rootfs / ext2 rw,noauto
proc /proc proc defaults
devpts /dev/pts devpts defaults,gid=,mode=
tmpfs /dev/shm tmpfs mode=
tmpfs /tmp tmpfs mode=
tmpfs /run tmpfs mode=,nosuid,nodev
sysfs /sys sysfs defaults 三、修改说明:
. 将/etc/fstab文件里<file system>字段的rootfs换成/dev/root;
. 修改如下:
# <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto
proc /proc proc defaults
devpts /dev/pts devpts defaults,gid=,mode=
tmpfs /dev/shm tmpfs mode=
tmpfs /tmp tmpfs mode=
tmpfs /run tmpfs mode=,nosuid,nodev
sysfs /sys sysfs defaults
. 其本质也就是一个软链接,直接建一个软链接也是可以的:
[zengjf@root /etc]# ls -al /dev/root
lrwxrwxrwx root root Jan : /dev/root -> mmcblk0p1
[zengjf@root /etc]#
/dev/root: No such file or directory的更多相关文章
- vmware:Could not open /dev/vmmon: No such file or directory.
Q: Could not open /dev/vmmon: No such file or directory. Please make sure that the kernel module `vm ...
- Linux格式化分区报错Could not start /dev/sda No such file or directory 解决办法
Linux查看已经分好的区[root@linuxidc ~]# fdisk -l /dev/sda Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 he ...
- 完美解决VMware Workstation : Could not open /dev/vmmon: No such file or directory
root@tiger:/usr/bin# cd /etc/init.d root@tiger:/usr/bin# sudo mv /usr/lib/vmware/modules/binary /usr ...
- Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
Try this : sudo modprobe vboxnetadp ref: https://github.com/gasolin/foxbox/issues/32
- linux下vmware could not open /dev/vmmon/no/such/file/or/directory问题
执行 sudo vmware-modconfig --console --install-all 详解这里
- Linux 格式化分区 报错Could not stat --- No such file or directory 和 partprobe 命令
分区的过程正常: [root@db1 /]# fdisk -l Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/tr ...
- 新增分区格式化时提示设备文件不存在:--- No such file or directory的处理方法
[原文链接]:http://blog.itpub.net/28874898/viewspace-774249/ 在系统中的空余空间添加新的分区: fdisk /dev/sda (第一块硬盘上) ...
- Unable to open log device '/dev/log/main': No such file or directory
在我们使用真机进行Android应用调试时,无法获得调试信息,错误提示如下:Unable to open log device '/dev/log/main': No such file or dir ...
- How to restrict root user to access or modify a file and directory in Linux
Now in this article I will show you steps to prevent or restrict access of root user to access certa ...
随机推荐
- 返回泛型集合的SqlDBHelper
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Entity; ...
- java.lang.IllegalStateException: availableProcessors is already set to [4], rejecting [4]
Links: 1.Getting availableProcessors is already set to [1], rejecting [1] IllegalStateException exce ...
- django-admin 设计User外键,设计model
设置外键 class profile_user(AbstractBaseUser, PermissionsMixin): company = models.ForeignKey(Company, de ...
- loadrunder脚本篇——文件读写操作
函数说明 函数原型: size_t fwrite( const void *buffer, size_t size, size_t count, FILE *file_pointer ); 参数说明 ...
- CentOS 6.5下Redmine的安装配置
首先引用百度介绍下redmine: Redmine是用Ruby开发的基于web的项目管理软件,是用ROR框架开发的一套跨平台项目管理系统,据说是源于Basecamp的ror版而来,支持多种数据库,有不 ...
- Linux基本常用命令
说到Linux,它就是基于POSIX和UNIX的多用户,多任务,支持多线程和多CPU的操作系统.它能运行主要的UNIX的工具软件,应用程序和网络协议.它支持32位和64位硬件.linux继承Unix以 ...
- jsp中的basePath和path(绝对路径 相对路径)
在JSP中的如果使用 "相对路径" 则有 可能会出现问题. 因为 网页中的 "相对路径" , 他是相对于 "URL请求的地址" 去寻找资源. ...
- 最短路径Dijkstra模板
算法思想:把所有的边分成两个集合A,B.集合A表示已经求出最短路径的点,不断扩展集合A,减少集合B.每一扩展就从结合B中找出到源点距离最短的点,加入到A. dis[i]数组代表从出发点到j的距离: m ...
- 笔记<c# 调用DLL解密密文>
using DTcms.Common; using System; using System.Collections.Generic; using System.Linq; using System. ...
- djang-分页
分页 views from django.shortcuts import render,HttpResponse # Create your views here. from app01.model ...