/***************************************************************************
* /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的更多相关文章

  1. 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 ...

  2. 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 ...

  3. 完美解决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 ...

  4. 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

  5. linux下vmware could not open /dev/vmmon/no/such/file/or/directory问题

    执行 sudo vmware-modconfig --console --install-all 详解这里  

  6. 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 ...

  7. 新增分区格式化时提示设备文件不存在:--- No such file or directory的处理方法

    [原文链接]:http://blog.itpub.net/28874898/viewspace-774249/ 在系统中的空余空间添加新的分区:   fdisk   /dev/sda (第一块硬盘上) ...

  8. 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 ...

  9. 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 ...

随机推荐

  1. C语言转义字符的使用方法

    cppreference.com -> 转义字符 常量转义字符 以下的转义字符使普通字符表示不同的意义. 转义字符 描述 \' 单引号 \" 双引号 \\ 反斜杠 \0 空字符 \a ...

  2. 做测试时,启动SpringBoot出现警告,在ClassPath中一个类多次出现

    Found multiple occurrences of org.json.JSONObject on the class path: jar:file:/C:/Users/niaomingjian ...

  3. 在英文Windows操作系统上使用SQL Server Management Studio(SSMS)导入Excel 97-2003文件时报错:Failure creating file

    今天在公司服务器上使用SQL Server Management Studio(SSMS)导入Excel 97-2003文件(.xls)时报错: Failure creating file. (Mic ...

  4. document.documentElement和document.body区别以及获取浏览器的宽高

    原文:http://www.jb51.net/article/41410.htm 1.区别: body是DOM对象里的body子节点,即 <body> 标签: documentElemen ...

  5. linux eclipse的桌面快捷方式

    在桌面上创建一个eclipse.desktop [Desktop Entry] Encoding=UTF- Name=Eclipse Comment=Eclipse IDE Exec=/opt/Dev ...

  6. 无法处理文件 MainForm.resx,因为它位于 Internet 或受限区域中,或者文件上具有 Web 标记。要想处理这些文件,请删除 Web 标记

    无法处理文件 MainForm.resx,因为它位于 Internet 或受限区域中,或者文件上具有 Web 标记.要想处理这些文件,请删除 Web 标记 问题: 由于文件锁定,VS不能正常读取. 解 ...

  7. P4299 首都

    题目 P4299 首都 做法 这题是动态维护树的重心,连边后找到两棵树的重心拉一条链(性质:新重心在链上),然后暴力爬 要注意: 1.是找重心的过程中要先把旋转标记放下来,因为\(Splay(x)\) ...

  8. MongoDB命令语法小用

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using MongoDB; ...

  9. K8s ipvs mode kube-proxy

    IPVS vs. IPTABLES IPVS模式在Kubernetes 1.8中被引入,在1.9中进入beta测试. IPTABLES模式在1.1版本中被添加进来,在1.2开始就变成了默认的操作模式. ...

  10. codeforces Codeforces Round #318 div2 A. Bear and Elections 【优先队列】

    A. Bear and Elections time limit per test 1 second memory limit per test 256 megabytes input standar ...